; LLVM IR from stonne-simulator/omega :: omega-code/stonne/src (SDMemory)

; 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.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 }
%"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.SDMemory = type { %class.MemoryController, ptr, ptr, ptr, ptr, ptr, %"class.std::vector", i32, i32, i32, i32, i32, i32, ptr, %"class.std::vector.3", %"class.std::vector.3", ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %"class.std::__cxx11::list", %"class.std::vector", ptr, i32, %class.SDMemoryStats }
%class.MemoryController = type { %class.Unit }
%class.Unit = type { ptr, i32, %"class.std::__cxx11::basic_string" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl" }
%"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<DataPackage *, std::allocator<DataPackage *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<DataPackage *, std::allocator<DataPackage *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.SDMemoryStats = type { %class.Stats, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::vector.11", %"class.std::vector.11", %"class.std::vector.11", %"class.std::vector.11" }
%class.Stats = type { ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTV8SDMemory = external dso_local unnamed_addr constant { [18 x ptr] }, align 8

; 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
define dso_local void @_ZN8SDMemoryC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE6ConfigP10Connection(ptr noundef nonnull align 8 dereferenceable(568) %0, i32 noundef %1, ptr noundef %2, ptr noundef byval(%class.Config) align 8 %3, ptr noundef %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %4, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8
  %22 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @_ZN16MemoryControllerC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %21, i32 noundef %22, ptr noundef %10)
          to label %23 unwind label %71

23:                                               ; preds = %5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  store ptr getelementptr inbounds inrange(-16, 128) ({ [18 x ptr] }, ptr @_ZTV8SDMemory, i32 0, i32 0, i32 2), ptr %21, align 8, !tbaa !11
  %24 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 6
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %25 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 14
  call void @_ZNSt6vectorIP4FifoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %26 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 15
  call void @_ZNSt6vectorIP4FifoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  %27 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 55
  call void @_ZNSt7__cxx114listIP11DataPackageSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %28 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 56
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %29 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 59
  invoke void @_ZN13SDMemoryStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %29)
          to label %30 unwind label %75

30:                                               ; preds = %23
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 5
  store ptr %31, ptr %32, align 8, !tbaa !13
  %33 = getelementptr inbounds %class.Config, ptr %3, i32 0, i32 3
  %34 = getelementptr inbounds %class.MSNetworkConfig, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !41
  %36 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 7
  store i32 %35, ptr %36, align 8, !tbaa !55
  %37 = getelementptr inbounds %class.Config, ptr %3, i32 0, i32 8
  %38 = getelementptr inbounds %class.SDMemoryConfig, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !56
  %40 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 8
  store i32 %39, ptr %40, align 4, !tbaa !57
  %41 = getelementptr inbounds %class.Config, ptr %3, i32 0, i32 8
  %42 = getelementptr inbounds %class.SDMemoryConfig, ptr %41, i32 0, i32 3
  %43 = load i32, ptr %42, align 4, !tbaa !58
  %44 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 9
  store i32 %43, ptr %44, align 8, !tbaa !59
  %45 = getelementptr inbounds %class.Config, ptr %3, i32 0, i32 8
  %46 = getelementptr inbounds %class.SDMemoryConfig, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !60
  %48 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 10
  store i32 %47, ptr %48, align 4, !tbaa !61
  %49 = getelementptr inbounds %class.Config, ptr %3, i32 0, i32 8
  %50 = getelementptr inbounds %class.SDMemoryConfig, ptr %49, i32 0, i32 4
  %51 = load i32, ptr %50, align 8, !tbaa !62
  %52 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 11
  store i32 %51, ptr %52, align 8, !tbaa !63
  %53 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 7
  %54 = load i32, ptr %53, align 8, !tbaa !55
  %55 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 8
  %56 = load i32, ptr %55, align 4, !tbaa !57
  %57 = udiv i32 %54, %56
  %58 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 12
  store i32 %57, ptr %58, align 4, !tbaa !64
  %59 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #8
          to label %60 unwind label %79

60:                                               ; preds = %30
  %61 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 10
  %62 = load i32, ptr %61, align 4, !tbaa !61
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %59, i32 noundef %62)
          to label %63 unwind label %83

63:                                               ; preds = %60
  %64 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 13
  store ptr %59, ptr %64, align 8, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %111, %63
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 8
  %68 = load i32, ptr %67, align 4, !tbaa !57
  %69 = icmp ult i32 %66, %68
  br i1 %69, label %87, label %70

70:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %144

71:                                               ; preds = %5
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %173

75:                                               ; preds = %23
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %11, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %12, align 4
  br label %172

79:                                               ; preds = %30
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %11, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %12, align 4
  br label %171

83:                                               ; preds = %60
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %59, i64 noundef 120) #9
  br label %171

87:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %88 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #8
          to label %89 unwind label %114

89:                                               ; preds = %87
  %90 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 10
  %91 = load i32, ptr %90, align 4, !tbaa !61
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %88, i32 noundef %91)
          to label %92 unwind label %118

92:                                               ; preds = %89
  store ptr %88, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %93 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #8
          to label %94 unwind label %122

94:                                               ; preds = %92
  %95 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 10
  %96 = load i32, ptr %95, align 4, !tbaa !61
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %93, i32 noundef %96)
          to label %97 unwind label %126

97:                                               ; preds = %94
  store ptr %93, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 14
  invoke void @_ZNSt6vectorIP4FifoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %99 unwind label %122

99:                                               ; preds = %97
  %100 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 15
  invoke void @_ZNSt6vectorIP4FifoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %100, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %101 unwind label %122

101:                                              ; preds = %99
  %102 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 59
  %103 = getelementptr inbounds %class.SDMemoryStats, ptr %102, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %104 unwind label %130

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %105 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 59
  %106 = getelementptr inbounds %class.SDMemoryStats, ptr %105, i32 0, i32 13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %106, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %107 unwind label %134

107:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %108 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 59
  %109 = getelementptr inbounds %class.SDMemoryStats, ptr %108, i32 0, i32 14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %110 unwind label %138

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %13, align 4, !tbaa !9
  br label %65, !llvm.loop !66

114:                                              ; preds = %87
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  br label %143

118:                                              ; preds = %89
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %11, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %88, i64 noundef 120) #9
  br label %143

122:                                              ; preds = %99, %97, %92
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %11, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %12, align 4
  br label %142

126:                                              ; preds = %94
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %93, i64 noundef 120) #9
  br label %142

130:                                              ; preds = %101
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %142

134:                                              ; preds = %104
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %11, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %142

138:                                              ; preds = %107
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %11, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %142

142:                                              ; preds = %138, %134, %130, %126, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %143

143:                                              ; preds = %142, %118, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %171

144:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %155, %144
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 9
  %148 = load i32, ptr %147, align 8, !tbaa !59
  %149 = icmp ult i32 %146, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %162

151:                                              ; preds = %145
  %152 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 59
  %153 = getelementptr inbounds %class.SDMemoryStats, ptr %152, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %153, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %154 unwind label %158

154:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %19, align 4, !tbaa !9
  br label %145, !llvm.loop !68

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %11, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %171

162:                                              ; preds = %150
  %163 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 19
  store i8 0, ptr %163, align 8, !tbaa !69
  %164 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 20
  store i8 0, ptr %164, align 1, !tbaa !70
  %165 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 21
  store i8 0, ptr %165, align 2, !tbaa !71
  %166 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 22
  store i8 0, ptr %166, align 1, !tbaa !72
  %167 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 23
  store i8 0, ptr %167, align 4, !tbaa !73
  %168 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 24
  store i8 0, ptr %168, align 1, !tbaa !74
  %169 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 41
  store i32 0, ptr %169, align 8, !tbaa !75
  %170 = getelementptr inbounds %class.SDMemory, ptr %21, i32 0, i32 58
  store i32 0, ptr %170, align 8, !tbaa !76
  ret void

171:                                              ; preds = %158, %143, %83, %79
  call void @_ZN13SDMemoryStatsD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %29) #7
  br label %172

172:                                              ; preds = %171, %75
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @_ZNSt7__cxx1110_List_baseIP11DataPackageSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @_ZNSt6vectorIP4FifoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  call void @_ZNSt6vectorIP4FifoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br label %173

173:                                              ; preds = %172, %71
  %174 = load ptr, ptr %11, align 8
  %175 = load i32, ptr %12, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN13SDMemoryStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #3

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

declare void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef) unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13SDMemoryStatsD2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 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 = { "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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 80}
!14 = !{!"_ZTS8SDMemory", !15, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !20, i64 88, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !6, i64 136, !24, i64 144, !24, i64 168, !6, i64 192, !6, i64 200, !6, i64 208, !28, i64 216, !28, i64 217, !28, i64 218, !28, i64 219, !28, i64 220, !28, i64 221, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !6, i64 344, !29, i64 352, !20, i64 376, !6, i64 400, !10, i64 408, !34, i64 416}
!15 = !{!"_ZTS16MemoryController", !16, i64 0}
!16 = !{!"_ZTS4Unit", !10, i64 8, !17, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIP4FifoSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIP4FifoSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSNSt7__cxx114listIP11DataPackageSaIS2_EEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIP11DataPackageSaIS2_EEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseIP11DataPackageSaIS2_EE10_List_implE", !32, i64 0}
!32 = !{!"_ZTSNSt8__detail17_List_node_headerE", !33, i64 0, !19, i64 16}
!33 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!34 = !{!"_ZTS13SDMemoryStats", !35, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !36, i64 48, !37, i64 56, !37, i64 80, !37, i64 104, !37, i64 128}
!35 = !{!"_ZTS5Stats"}
!36 = !{!"_ZTS8Dataflow", !7, i64 0}
!37 = !{!"_ZTSSt6vectorIjSaIjEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!42, !10, i64 28}
!42 = !{!"_ZTS6Config", !10, i64 0, !43, i64 4, !44, i64 8, !45, i64 24, !47, i64 40, !48, i64 64, !50, i64 72, !51, i64 96, !52, i64 104}
!43 = !{!"_ZTS15DSNetworkConfig", !10, i64 0}
!44 = !{!"_ZTS13DSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!45 = !{!"_ZTS15MSNetworkConfig", !46, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!46 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!47 = !{!"_ZTS13MSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!48 = !{!"_ZTS15ASNetworkConfig", !49, i64 0, !10, i64 4}
!49 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!50 = !{!"_ZTS13ASwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!51 = !{!"_ZTS17LookUpTableConfig", !10, i64 0, !10, i64 4}
!52 = !{!"_ZTS14SDMemoryConfig", !53, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !54, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!53 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!54 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!55 = !{!14, !10, i64 112}
!56 = !{!42, !10, i64 112}
!57 = !{!14, !10, i64 116}
!58 = !{!42, !10, i64 116}
!59 = !{!14, !10, i64 120}
!60 = !{!42, !10, i64 108}
!61 = !{!14, !10, i64 124}
!62 = !{!42, !10, i64 120}
!63 = !{!14, !10, i64 128}
!64 = !{!14, !10, i64 132}
!65 = !{!14, !6, i64 136}
!66 = distinct !{!66, !67}
!67 = !{!"llvm.loop.mustprogress"}
!68 = distinct !{!68, !67}
!69 = !{!14, !28, i64 216}
!70 = !{!14, !28, i64 217}
!71 = !{!14, !28, i64 218}
!72 = !{!14, !28, i64 219}
!73 = !{!14, !28, i64 220}
!74 = !{!14, !28, i64 221}
!75 = !{!14, !10, i64 288}
!76 = !{!14, !10, i64 408}


; 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.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 }
%"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] }

@_ZTV8SDMemory = external dso_local unnamed_addr constant { [18 x ptr] }, align 8

; 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
define dso_local void @_ZN8SDMemoryC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE6ConfigP10Connection(ptr noundef nonnull align 8 dereferenceable(568) %0, i32 noundef %1, ptr noundef nonnull %2, ptr nocapture noundef readonly byval(%class.Config) align 8 %3, ptr noundef %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @_ZN16MemoryControllerC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1, ptr noundef nonnull %6)
          to label %13 unwind label %45

13:                                               ; preds = %5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  store ptr getelementptr inbounds inrange(-16, 128) (i8, ptr @_ZTV8SDMemory, i64 16), ptr %0, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 144
  call void @_ZNSt6vectorIP4FifoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %16 = getelementptr inbounds i8, ptr %0, i64 168
  call void @_ZNSt6vectorIP4FifoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %17 = getelementptr inbounds i8, ptr %0, i64 352
  call void @_ZNSt7__cxx114listIP11DataPackageSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %18 = getelementptr inbounds i8, ptr %0, i64 376
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %19 = getelementptr inbounds i8, ptr %0, i64 416
  invoke void @_ZN13SDMemoryStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %19)
          to label %20 unwind label %47

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %4, ptr %21, align 8, !tbaa !8
  %22 = getelementptr inbounds i8, ptr %3, i64 28
  %23 = load i32, ptr %22, align 4, !tbaa !39
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %23, ptr %24, align 8, !tbaa !53
  %25 = getelementptr inbounds i8, ptr %0, i64 116
  %26 = getelementptr inbounds i8, ptr %0, i64 120
  %27 = getelementptr inbounds i8, ptr %3, i64 108
  %28 = getelementptr inbounds i8, ptr %0, i64 124
  %29 = load <4 x i32>, ptr %27, align 4, !tbaa !54
  %30 = shufflevector <4 x i32> %29, <4 x i32> poison, <4 x i32> <i32 1, i32 2, i32 0, i32 3>
  store <4 x i32> %30, ptr %25, align 4, !tbaa !54
  %31 = extractelement <4 x i32> %29, i64 1
  %32 = udiv i32 %23, %31
  %33 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %32, ptr %33, align 4, !tbaa !55
  %34 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #9
          to label %35 unwind label %49

35:                                               ; preds = %20
  %36 = extractelement <4 x i32> %29, i64 0
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %34, i32 noundef %36)
          to label %37 unwind label %51

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %34, ptr %38, align 8, !tbaa !56
  %39 = load i32, ptr %25, align 4, !tbaa !57
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %37
  %40 = getelementptr inbounds i8, ptr %0, i64 472
  %41 = getelementptr inbounds i8, ptr %0, i64 496
  %42 = getelementptr inbounds i8, ptr %0, i64 520
  br label %53

.preheader:                                       ; preds = %66, %37
  %43 = load i32, ptr %26, align 8, !tbaa !58
  %.not32 = icmp eq i32 %43, 0
  br i1 %.not32, label %._crit_edge, label %.lr.ph31

.lr.ph31:                                         ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %0, i64 544
  br label %89

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

47:                                               ; preds = %13
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %97

49:                                               ; preds = %20
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %96

51:                                               ; preds = %35
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 120) #10
  br label %96

53:                                               ; preds = %.lr.ph, %66
  %.0829 = phi i32 [ 0, %.lr.ph ], [ %67, %66 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %54 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #9
          to label %55 unwind label %70

55:                                               ; preds = %53
  %56 = load i32, ptr %28, align 4, !tbaa !59
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %54, i32 noundef %56)
          to label %57 unwind label %72

57:                                               ; preds = %55
  store ptr %54, ptr %7, align 8, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %58 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #9
          to label %59 unwind label %74

59:                                               ; preds = %57
  %60 = load i32, ptr %28, align 4, !tbaa !59
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %58, i32 noundef %60)
          to label %61 unwind label %76

61:                                               ; preds = %59
  store ptr %58, ptr %8, align 8, !tbaa !60
  invoke void @_ZNSt6vectorIP4FifoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %62 unwind label %74

62:                                               ; preds = %61
  invoke void @_ZNSt6vectorIP4FifoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %63 unwind label %74

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 0, ptr %9, align 4, !tbaa !54
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %64 unwind label %78

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 0, ptr %10, align 4, !tbaa !54
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %65 unwind label %80

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  store i32 0, ptr %11, align 4, !tbaa !54
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %66 unwind label %82

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %67 = add nuw nsw i32 %.0829, 1
  %68 = load i32, ptr %25, align 4, !tbaa !57
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %53, label %.preheader, !llvm.loop !61

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %85

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %54, i64 noundef 120) #10
  br label %85

74:                                               ; preds = %62, %61, %57
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %84

76:                                               ; preds = %59
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %58, i64 noundef 120) #10
  br label %84

78:                                               ; preds = %63
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %84

80:                                               ; preds = %64
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %84

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

84:                                               ; preds = %82, %80, %78, %76, %74
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ], [ %79, %78 ], [ %75, %74 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %85

85:                                               ; preds = %84, %72, %70
  %.pn.pn = phi { ptr, i32 } [ %.pn, %84 ], [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %96

._crit_edge:                                      ; preds = %90, %.preheader
  %86 = getelementptr inbounds i8, ptr %0, i64 216
  %87 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 0, ptr %87, align 8, !tbaa !63
  %88 = getelementptr inbounds i8, ptr %0, i64 408
  store i32 0, ptr %88, align 8, !tbaa !64
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(6) %86, i8 0, i64 6, i1 false)
  ret void

89:                                               ; preds = %.lr.ph31, %90
  %.030 = phi i32 [ 0, %.lr.ph31 ], [ %91, %90 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  store i32 0, ptr %12, align 4, !tbaa !54
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %90 unwind label %94

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %91 = add nuw nsw i32 %.030, 1
  %92 = load i32, ptr %26, align 8, !tbaa !58
  %93 = icmp ult i32 %91, %92
  br i1 %93, label %89, label %._crit_edge, !llvm.loop !65

94:                                               ; preds = %89
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %96

96:                                               ; preds = %94, %85, %51, %49
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %85 ], [ %95, %94 ], [ %52, %51 ], [ %50, %49 ]
  call void @_ZN13SDMemoryStatsD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %19) #8
  br label %97

97:                                               ; preds = %96, %47
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %96 ], [ %48, %47 ]
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZNSt7__cxx1110_List_baseIP11DataPackageSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @_ZNSt6vectorIP4FifoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @_ZNSt6vectorIP4FifoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  br label %98

98:                                               ; preds = %97, %45
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %97 ], [ %46, %45 ]
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN13SDMemoryStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #3

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

declare void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef) unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13SDMemoryStatsD2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #6 align 2

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !16, i64 80}
!9 = !{!"_ZTS8SDMemory", !10, i64 0, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !18, i64 88, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !16, i64 136, !22, i64 144, !22, i64 168, !16, i64 192, !16, i64 200, !16, i64 208, !26, i64 216, !26, i64 217, !26, i64 218, !26, i64 219, !26, i64 220, !26, i64 221, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324, !12, i64 328, !12, i64 332, !12, i64 336, !16, i64 344, !27, i64 352, !18, i64 376, !16, i64 400, !12, i64 408, !32, i64 416}
!10 = !{!"_ZTS16MemoryController", !11, i64 0}
!11 = !{!"_ZTS4Unit", !12, i64 8, !14, i64 16}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !17, i64 8, !13, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !13, i64 0}
!17 = !{!"long", !13, i64 0}
!18 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!22 = !{!"_ZTSSt6vectorIP4FifoSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIP4FifoSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!26 = !{!"bool", !13, i64 0}
!27 = !{!"_ZTSNSt7__cxx114listIP11DataPackageSaIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSNSt7__cxx1110_List_baseIP11DataPackageSaIS2_EEE", !29, i64 0}
!29 = !{!"_ZTSNSt7__cxx1110_List_baseIP11DataPackageSaIS2_EE10_List_implE", !30, i64 0}
!30 = !{!"_ZTSNSt8__detail17_List_node_headerE", !31, i64 0, !17, i64 16}
!31 = !{!"_ZTSNSt8__detail15_List_node_baseE", !16, i64 0, !16, i64 8}
!32 = !{!"_ZTS13SDMemoryStats", !33, 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, !12, i64 44, !34, i64 48, !35, i64 56, !35, i64 80, !35, i64 104, !35, i64 128}
!33 = !{!"_ZTS5Stats"}
!34 = !{!"_ZTS8Dataflow", !13, i64 0}
!35 = !{!"_ZTSSt6vectorIjSaIjEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!39 = !{!40, !12, i64 28}
!40 = !{!"_ZTS6Config", !12, i64 0, !41, i64 4, !42, i64 8, !43, i64 24, !45, i64 40, !46, i64 64, !48, i64 72, !49, i64 96, !50, i64 104}
!41 = !{!"_ZTS15DSNetworkConfig", !12, i64 0}
!42 = !{!"_ZTS13DSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!43 = !{!"_ZTS15MSNetworkConfig", !44, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!44 = !{!"_ZTS19MultiplierNetwork_t", !13, i64 0}
!45 = !{!"_ZTS13MSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!46 = !{!"_ZTS15ASNetworkConfig", !47, i64 0, !12, i64 4}
!47 = !{!"_ZTS15ReduceNetwork_t", !13, i64 0}
!48 = !{!"_ZTS13ASwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!49 = !{!"_ZTS17LookUpTableConfig", !12, i64 0, !12, i64 4}
!50 = !{!"_ZTS14SDMemoryConfig", !51, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !52, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!51 = !{!"_ZTS18MemoryController_t", !13, i64 0}
!52 = !{!"_ZTS17MemoryHierarchy_t", !13, i64 0}
!53 = !{!9, !12, i64 112}
!54 = !{!12, !12, i64 0}
!55 = !{!9, !12, i64 132}
!56 = !{!9, !16, i64 136}
!57 = !{!9, !12, i64 116}
!58 = !{!9, !12, i64 120}
!59 = !{!9, !12, i64 124}
!60 = !{!16, !16, i64 0}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!9, !12, i64 288}
!64 = !{!9, !12, i64 408}
!65 = distinct !{!65, !62}


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