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

; 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.OSMeshSDMemory = type { %class.MemoryController, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %"class.std::vector.13", %"class.std::vector.13", ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, %"class.std::vector.8", i32, %class.SDMemoryStats }
%class.MemoryController = 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl" }
%"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl" = type { %"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3" }
%class.Stats = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN11DataPackageC1Emf9operand_tj9traffic_tj(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, float noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14OSMeshSDMemory23sendPackageToInputFifosEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(552) %0, ptr noundef %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef zeroext i1 @_ZNK11DataPackage11isBroadcastEv(ptr noundef nonnull align 8 dereferenceable(64) %22)
  br i1 %23, label %24, label %73

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %69, %24
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 16
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = icmp ult i32 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %72

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %32 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = invoke noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %33)
          to label %35 unwind label %54

35:                                               ; preds = %31
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = invoke noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %36)
          to label %38 unwind label %54

38:                                               ; preds = %35
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = invoke noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %39)
          to label %41 unwind label %54

41:                                               ; preds = %38
  %42 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN11DataPackageC1Emf9operand_tj9traffic_t(ptr noundef nonnull align 8 dereferenceable(64) %32, i64 noundef %34, float noundef %37, i32 noundef %40, i32 noundef %42, i32 noundef 0)
          to label %43 unwind label %54

43:                                               ; preds = %41
  store ptr %32, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %44)
  %46 = icmp eq i32 %45, 3
  br i1 %46, label %47, label %58

47:                                               ; preds = %43
  %48 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 25
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #7
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %52, ptr noundef %53)
  br label %68

54:                                               ; preds = %41, %38, %35, %31
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %32, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %236

58:                                               ; preds = %43
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call noundef i32 @_ZNK11DataPackage13getIterationKEv(ptr noundef nonnull align 8 dereferenceable(64) %60)
  call void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64) %59, i32 noundef %61)
  %62 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 24
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #7
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %66, ptr noundef %67)
  br label %68

68:                                               ; preds = %58, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %5, align 4, !tbaa !9
  br label %25, !llvm.loop !39

72:                                               ; preds = %30
  br label %231

73:                                               ; preds = %2
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZNK11DataPackage9isUnicastEv(ptr noundef nonnull align 8 dereferenceable(64) %74)
  br i1 %75, label %76, label %125

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call noundef i32 @_ZNK11DataPackage16get_unicast_destEv(ptr noundef nonnull align 8 dereferenceable(64) %77)
  store i32 %78, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 22
  %81 = load i32, ptr %80, align 8, !tbaa !41
  %82 = udiv i32 %79, %81
  store i32 %82, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 22
  %85 = load i32, ptr %84, align 8, !tbaa !41
  %86 = urem i32 %83, %85
  store i32 %86, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %87 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = invoke noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %88)
          to label %90 unwind label %110

90:                                               ; preds = %76
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = invoke noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %91)
          to label %93 unwind label %110

93:                                               ; preds = %90
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = invoke noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %94)
          to label %96 unwind label %110

96:                                               ; preds = %93
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN11DataPackageC1Emf9operand_tj9traffic_tj(ptr noundef nonnull align 8 dereferenceable(64) %87, i64 noundef %89, float noundef %92, i32 noundef %95, i32 noundef %97, i32 noundef 2, i32 noundef %98)
          to label %99 unwind label %110

99:                                               ; preds = %96
  store ptr %87, ptr %12, align 8, !tbaa !5
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %100)
  %102 = icmp eq i32 %101, 3
  br i1 %102, label %103, label %114

103:                                              ; preds = %99
  %104 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 25
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %106) #7
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %108, ptr noundef %109)
  br label %124

110:                                              ; preds = %96, %93, %90, %76
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %236

114:                                              ; preds = %99
  %115 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 24
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #7
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %119, ptr noundef %120)
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = call noundef i32 @_ZNK11DataPackage13getIterationKEv(ptr noundef nonnull align 8 dereferenceable(64) %122)
  call void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64) %121, i32 noundef %123)
  br label %124

124:                                              ; preds = %114, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %230

125:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = call noundef ptr @_ZNK11DataPackage9get_destsEv(ptr noundef nonnull align 8 dereferenceable(64) %126)
  store ptr %127, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %226, %125
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 16
  %131 = load i32, ptr %130, align 8, !tbaa !11
  %132 = icmp ult i32 %129, %131
  br i1 %132, label %134, label %133

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

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 22
  %137 = load i32, ptr %136, align 8, !tbaa !41
  %138 = mul i32 %135, %137
  store i32 %138, ptr %17, align 4, !tbaa !9
  store i8 0, ptr %14, align 1, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %139 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 22
  %140 = load i32, ptr %139, align 8, !tbaa !41
  %141 = zext i32 %140 to i64
  %142 = call noalias noundef nonnull ptr @_Znam(i64 noundef %141) #8
  store ptr %142, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %173, %134
  %144 = load i32, ptr %19, align 4, !tbaa !9
  %145 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 22
  %146 = load i32, ptr %145, align 8, !tbaa !41
  %147 = icmp ult i32 %144, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %143
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %176

149:                                              ; preds = %143
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = add i32 %151, %152
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i8, ptr %150, i64 %154
  %156 = load i8, ptr %155, align 1, !tbaa !42, !range !43, !noundef !44
  %157 = trunc i8 %156 to i1
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i8, ptr %158, i64 %160
  %162 = zext i1 %157 to i8
  store i8 %162, ptr %161, align 1, !tbaa !42
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  %164 = load i32, ptr %19, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %163, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !42, !range !43, !noundef !44
  %168 = trunc i8 %167 to i1
  %169 = zext i1 %168 to i32
  %170 = icmp eq i32 %169, 1
  br i1 %170, label %171, label %172

171:                                              ; preds = %149
  store i8 1, ptr %14, align 1, !tbaa !42
  br label %172

172:                                              ; preds = %171, %149
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %19, align 4, !tbaa !9
  br label %143, !llvm.loop !45

176:                                              ; preds = %148
  %177 = load i8, ptr %14, align 1, !tbaa !42, !range !43, !noundef !44
  %178 = trunc i8 %177 to i1
  br i1 %178, label %179, label %220

179:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %180 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = invoke noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %181)
          to label %183 unwind label %205

183:                                              ; preds = %179
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = invoke noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %184)
          to label %186 unwind label %205

186:                                              ; preds = %183
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = invoke noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %187)
          to label %189 unwind label %205

189:                                              ; preds = %186
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  %192 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 22
  %193 = load i32, ptr %192, align 8, !tbaa !41
  invoke void @_ZN11DataPackageC1Emf9operand_tj9traffic_tPbj(ptr noundef nonnull align 8 dereferenceable(64) %180, i64 noundef %182, float noundef %185, i32 noundef %188, i32 noundef %190, i32 noundef 1, ptr noundef %191, i32 noundef %193)
          to label %194 unwind label %205

194:                                              ; preds = %189
  store ptr %180, ptr %20, align 8, !tbaa !5
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %195)
  %197 = icmp eq i32 %196, 3
  br i1 %197, label %198, label %209

198:                                              ; preds = %194
  %199 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 25
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #7
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %203, ptr noundef %204)
  br label %219

205:                                              ; preds = %189, %186, %183, %179
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %180, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %236

209:                                              ; preds = %194
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = call noundef i32 @_ZNK11DataPackage13getIterationKEv(ptr noundef nonnull align 8 dereferenceable(64) %211)
  call void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64) %210, i32 noundef %212)
  %213 = getelementptr inbounds %class.OSMeshSDMemory, ptr %21, i32 0, i32 24
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %215) #7
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %217, ptr noundef %218)
  br label %219

219:                                              ; preds = %209, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %225

220:                                              ; preds = %176
  %221 = load ptr, ptr %18, align 8, !tbaa !5
  %222 = icmp eq ptr %221, null
  br i1 %222, label %224, label %223

223:                                              ; preds = %220
  call void @_ZdaPv(ptr noundef %221) #9
  br label %224

224:                                              ; preds = %223, %220
  br label %225

225:                                              ; preds = %224, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %15, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %15, align 4, !tbaa !9
  br label %128, !llvm.loop !46

229:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %230

230:                                              ; preds = %229, %124
  br label %231

231:                                              ; preds = %230, %72
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = icmp eq ptr %232, null
  br i1 %233, label %235, label %234

234:                                              ; preds = %231
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %232) #7
  call void @_ZdlPvm(ptr noundef %232, i64 noundef 64) #9
  br label %235

235:                                              ; preds = %234, %231
  ret void

236:                                              ; preds = %205, %110, %54
  %237 = load ptr, ptr %7, align 8
  %238 = load i32, ptr %8, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

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

; Function Attrs: nounwind
declare void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6

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

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

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

declare void @_ZN11DataPackageC1Emf9operand_tj9traffic_t(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, float noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) #4

declare void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #4

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

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

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

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

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

declare void @_ZN11DataPackageC1Emf9operand_tj9traffic_tPbj(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, float noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { 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 #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, !10, i64 192}
!12 = !{!"_ZTS14OSMeshSDMemory", !13, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !18, i64 104, !19, i64 112, !23, i64 136, !27, i64 160, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !6, i64 224, !31, i64 232, !31, i64 256, !6, i64 280, !6, i64 288, !6, i64 296, !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, !35, i64 340, !35, i64 341, !35, i64 342, !35, i64 343, !35, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !27, i64 368, !10, i64 392, !36, i64 400}
!13 = !{!"_ZTS16MemoryController", !14, i64 0}
!14 = !{!"_ZTS4Unit", !10, i64 8, !15, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS21OSMeshControllerState", !7, i64 0}
!19 = !{!"_ZTSSt6vectorI8SparseVNSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseI8SparseVNSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIjSaIjEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIP4FifoSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIP4FifoSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTS13SDMemoryStats", !37, 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, !38, i64 48, !23, i64 56, !23, i64 80, !23, i64 104, !23, i64 128}
!37 = !{!"_ZTS5Stats"}
!38 = !{!"_ZTS8Dataflow", !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !10, i64 216}
!42 = !{!35, !35, i64 0}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = distinct !{!45, !40}
!46 = distinct !{!46, !40}


; 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"

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN11DataPackageC1Emf9operand_tj9traffic_tj(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, float noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14OSMeshSDMemory23sendPackageToInputFifosEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(552) %0, ptr noundef nonnull %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = tail call noundef zeroext i1 @_ZNK11DataPackage11isBroadcastEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  br i1 %3, label %.preheader, label %27

.preheader:                                       ; preds = %2
  %4 = getelementptr inbounds i8, ptr %0, i64 192
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %.not76 = icmp eq i32 %5, 0
  br i1 %.not76, label %.loopexit, label %.lr.ph74

.lr.ph74:                                         ; preds = %.preheader
  %6 = getelementptr inbounds i8, ptr %0, i64 232
  %7 = getelementptr inbounds i8, ptr %0, i64 256
  br label %8

8:                                                ; preds = %.lr.ph74, %21
  %indvars.iv83 = phi i64 [ 0, %.lr.ph74 ], [ %indvars.iv.next84, %21 ]
  %9 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  %10 = tail call noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %11 = tail call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %12 = tail call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %13 = trunc nuw nsw i64 %indvars.iv83 to i32
  invoke void @_ZN11DataPackageC1Emf9operand_tj9traffic_t(ptr noundef nonnull align 8 dereferenceable(64) %9, i64 noundef %10, float noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef 0)
          to label %14 unwind label %17

14:                                               ; preds = %8
  %15 = tail call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %16 = icmp eq i32 %15, 3
  br i1 %16, label %21, label %19

17:                                               ; preds = %8
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %128

19:                                               ; preds = %14
  %20 = tail call noundef i32 @_ZNK11DataPackage13getIterationKEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  tail call void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64) %9, i32 noundef %20)
  br label %21

21:                                               ; preds = %14, %19
  %.sink = phi ptr [ %6, %19 ], [ %7, %14 ]
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.sink, i64 noundef %indvars.iv83) #7
  %23 = load ptr, ptr %22, align 8, !tbaa !37
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %23, ptr noundef nonnull %9)
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %24 = load i32, ptr %4, align 8, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = icmp ult i64 %indvars.iv.next84, %25
  br i1 %26, label %8, label %.loopexit, !llvm.loop !38

27:                                               ; preds = %2
  %28 = tail call noundef zeroext i1 @_ZNK11DataPackage9isUnicastEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  br i1 %28, label %29, label %54

29:                                               ; preds = %27
  %30 = tail call noundef i32 @_ZNK11DataPackage16get_unicast_destEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %31 = getelementptr inbounds i8, ptr %0, i64 216
  %32 = load i32, ptr %31, align 8, !tbaa !40
  %33 = udiv i32 %30, %32
  %34 = urem i32 %30, %32
  %35 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  %36 = tail call noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %37 = tail call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %38 = tail call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  invoke void @_ZN11DataPackageC1Emf9operand_tj9traffic_tj(ptr noundef nonnull align 8 dereferenceable(64) %35, i64 noundef %36, float noundef %37, i32 noundef %38, i32 noundef %33, i32 noundef 2, i32 noundef %34)
          to label %39 unwind label %47

39:                                               ; preds = %29
  %40 = tail call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %41 = icmp eq i32 %40, 3
  %42 = zext i32 %33 to i64
  br i1 %41, label %43, label %49

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %0, i64 256
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %42) #7
  %46 = load ptr, ptr %45, align 8, !tbaa !37
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %46, ptr noundef nonnull %35)
  br label %.loopexit

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

49:                                               ; preds = %39
  %50 = getelementptr inbounds i8, ptr %0, i64 232
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %42) #7
  %52 = load ptr, ptr %51, align 8, !tbaa !37
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %52, ptr noundef nonnull %35)
  %53 = tail call noundef i32 @_ZNK11DataPackage13getIterationKEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  tail call void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64) %35, i32 noundef %53)
  br label %.loopexit

54:                                               ; preds = %27
  %55 = tail call noundef ptr @_ZNK11DataPackage9get_destsEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %56 = getelementptr inbounds i8, ptr %0, i64 192
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %.not = icmp eq i32 %57, 0
  br i1 %.not, label %.loopexit, label %.lr.ph72

.lr.ph72:                                         ; preds = %54
  %58 = getelementptr inbounds i8, ptr %0, i64 216
  %59 = getelementptr inbounds i8, ptr %0, i64 232
  %60 = getelementptr inbounds i8, ptr %0, i64 256
  br label %61

61:                                               ; preds = %.lr.ph72, %124
  %indvars.iv80 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next81, %124 ]
  %62 = load i32, ptr %58, align 8, !tbaa !40
  %63 = trunc nuw nsw i64 %indvars.iv80 to i32
  %64 = mul i32 %62, %63
  %65 = zext i32 %62 to i64
  %66 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %65) #6
  %.not75 = icmp eq i32 %62, 0
  br i1 %.not75, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %61
  %xtraiter = and i64 %65, 3
  %67 = icmp ult i32 %62, 4
  br i1 %67, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %65, 4294967292
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %spec.select.lcssa.ph = phi i1 [ poison, %.lr.ph.preheader ], [ %spec.select.3, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.06468.unr = phi i1 [ false, %.lr.ph.preheader ], [ %spec.select.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %.06468.epil = phi i1 [ %spec.select.epil, %.lr.ph.epil ], [ %.06468.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %68 = trunc nuw nsw i64 %indvars.iv.epil to i32
  %69 = add i32 %64, %68
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %55, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !41, !range !42, !noundef !43
  %73 = trunc nuw i8 %72 to i1
  %74 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv.epil
  store i8 %72, ptr %74, align 1, !tbaa !41
  %spec.select.epil = select i1 %73, i1 true, i1 %.06468.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !44

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %spec.select.lcssa = phi i1 [ %spec.select.lcssa.ph, %._crit_edge.unr-lcssa ], [ %spec.select.epil, %.lr.ph.epil ]
  br i1 %spec.select.lcssa, label %106, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.06468 = phi i1 [ false, %.lr.ph.preheader.new ], [ %spec.select.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %75 = trunc nuw nsw i64 %indvars.iv to i32
  %76 = add i32 %64, %75
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %55, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !41, !range !42, !noundef !43
  %80 = trunc nuw i8 %79 to i1
  %81 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv
  store i8 %79, ptr %81, align 1, !tbaa !41
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %82 = trunc nuw nsw i64 %indvars.iv.next to i32
  %83 = add i32 %64, %82
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %55, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !41, !range !42, !noundef !43
  %87 = trunc nuw i8 %86 to i1
  %88 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv.next
  store i8 %86, ptr %88, align 1, !tbaa !41
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %89 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  %90 = add i32 %64, %89
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %55, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !41, !range !42, !noundef !43
  %94 = trunc nuw i8 %93 to i1
  %95 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv.next.1
  store i8 %93, ptr %95, align 1, !tbaa !41
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %96 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  %97 = add i32 %64, %96
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %55, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !41, !range !42, !noundef !43
  %101 = trunc nuw i8 %100 to i1
  %102 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv.next.2
  store i8 %100, ptr %102, align 1, !tbaa !41
  %103 = select i1 %101, i1 true, i1 %94
  %104 = select i1 %103, i1 true, i1 %87
  %105 = select i1 %104, i1 true, i1 %80
  %spec.select.3 = select i1 %105, i1 true, i1 %.06468
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !46

106:                                              ; preds = %._crit_edge
  %107 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  %108 = tail call noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %109 = tail call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %110 = tail call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %111 = load i32, ptr %58, align 8, !tbaa !40
  invoke void @_ZN11DataPackageC1Emf9operand_tj9traffic_tPbj(ptr noundef nonnull align 8 dereferenceable(64) %107, i64 noundef %108, float noundef %109, i32 noundef %110, i32 noundef %63, i32 noundef 1, ptr noundef nonnull %66, i32 noundef %111)
          to label %112 unwind label %118

112:                                              ; preds = %106
  %113 = tail call noundef i32 @_ZNK11DataPackage13get_data_typeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %114 = icmp eq i32 %113, 3
  br i1 %114, label %115, label %120

115:                                              ; preds = %112
  %116 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %indvars.iv80) #7
  %117 = load ptr, ptr %116, align 8, !tbaa !37
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %117, ptr noundef nonnull %107)
  br label %124

118:                                              ; preds = %106
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %128

120:                                              ; preds = %112
  %121 = tail call noundef i32 @_ZNK11DataPackage13getIterationKEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  tail call void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64) %107, i32 noundef %121)
  %122 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4FifoSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %indvars.iv80) #7
  %123 = load ptr, ptr %122, align 8, !tbaa !37
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %123, ptr noundef nonnull %107)
  br label %124

.critedge:                                        ; preds = %61, %._crit_edge
  tail call void @_ZdaPv(ptr noundef nonnull %66) #8
  br label %124

124:                                              ; preds = %115, %120, %.critedge
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %125 = load i32, ptr %56, align 8, !tbaa !5
  %126 = zext i32 %125 to i64
  %127 = icmp ult i64 %indvars.iv.next81, %126
  br i1 %127, label %61, label %.loopexit, !llvm.loop !47

.loopexit:                                        ; preds = %124, %21, %54, %.preheader, %49, %43
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %1) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %1, i64 noundef 64) #8
  ret void

128:                                              ; preds = %118, %47, %17
  %.lcssa88.sink = phi ptr [ %107, %118 ], [ %35, %47 ], [ %9, %17 ]
  %.pn = phi { ptr, i32 } [ %119, %118 ], [ %48, %47 ], [ %18, %17 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.lcssa88.sink, i64 noundef 64) #8
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nounwind
declare void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #5

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

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

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

declare void @_ZN11DataPackageC1Emf9operand_tj9traffic_t(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, float noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3

declare void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) local_unnamed_addr #3

declare void @_ZN11DataPackage13setIterationKEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #3

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

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

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

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

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

declare void @_ZN11DataPackageC1Emf9operand_tj9traffic_tPbj(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, float noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { 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, !9, i64 192}
!6 = !{!"_ZTS14OSMeshSDMemory", !7, i64 0, !14, i64 48, !14, i64 56, !14, i64 64, !9, i64 72, !9, i64 76, !9, i64 80, !9, i64 84, !9, i64 88, !14, i64 96, !16, i64 104, !17, i64 112, !21, i64 136, !25, i64 160, !9, i64 184, !9, i64 188, !9, i64 192, !9, i64 196, !9, i64 200, !9, i64 204, !9, i64 208, !9, i64 212, !9, i64 216, !14, i64 224, !29, i64 232, !29, i64 256, !14, i64 280, !14, i64 288, !14, i64 296, !9, i64 304, !9, i64 308, !9, i64 312, !9, i64 316, !9, i64 320, !9, i64 324, !9, i64 328, !9, i64 332, !9, i64 336, !33, i64 340, !33, i64 341, !33, i64 342, !33, i64 343, !33, i64 344, !9, i64 348, !9, i64 352, !9, i64 356, !9, i64 360, !9, i64 364, !25, i64 368, !9, i64 392, !34, i64 400}
!7 = !{!"_ZTS16MemoryController", !8, i64 0}
!8 = !{!"_ZTS4Unit", !9, i64 8, !12, i64 16}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !15, i64 8, !10, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTS21OSMeshControllerState", !10, i64 0}
!17 = !{!"_ZTSSt6vectorI8SparseVNSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI8SparseVNSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!"_ZTSSt6vectorIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!25 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!29 = !{!"_ZTSSt6vectorIP4FifoSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP4FifoSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!33 = !{!"bool", !10, i64 0}
!34 = !{!"_ZTS13SDMemoryStats", !35, i64 0, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !9, i64 24, !9, i64 28, !9, i64 32, !9, i64 36, !9, i64 40, !9, i64 44, !36, i64 48, !21, i64 56, !21, i64 80, !21, i64 104, !21, i64 128}
!35 = !{!"_ZTS5Stats"}
!36 = !{!"_ZTS8Dataflow", !10, i64 0}
!37 = !{!14, !14, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!6, !9, i64 216}
!41 = !{!33, !33, i64 0}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.unroll.disable"}
!46 = distinct !{!46, !39}
!47 = distinct !{!47, !39}


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