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

; 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.MSwitch = type { %class.Unit, i8, i8, ptr, ptr, ptr, ptr, ptr, %"class.std::vector", ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, i32, i8, i8, i32, %class.MSwitchStats }
%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<DataPackage *, std::allocator<DataPackage *>>::_Vector_impl" }
%"struct.std::_Vector_base<DataPackage *, std::allocator<DataPackage *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DataPackage *, std::allocator<DataPackage *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DataPackage *, std::allocator<DataPackage *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.MSwitchStats = type { %class.Stats, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%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

declare noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120)) #2

declare noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MSwitch7forwardEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #3 align 2

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

declare noundef i32 @_ZN4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(120)) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MSwitch5cycleEv(ptr noundef nonnull align 8 dereferenceable(264) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  %17 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 29
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = add i32 %18, 1
  store i32 %19, ptr %17, align 8, !tbaa !9
  %20 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 30
  %21 = getelementptr inbounds %class.MSwitchStats, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 8, !tbaa !23
  %23 = add i32 %22, 1
  store i32 %23, ptr %21, align 8, !tbaa !23
  %24 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 28
  %25 = load i8, ptr %24, align 1, !tbaa !24, !range !25, !noundef !26
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %69

27:                                               ; preds = %1
  %28 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 10
  %29 = load ptr, ptr %28, align 8, !tbaa !27
  call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %29)
  %30 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !28
  %32 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %31)
  br i1 %32, label %68, label %33

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %34 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !28
  %36 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %35)
  store ptr %36, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %37 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = invoke noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %38)
          to label %40 unwind label %64

40:                                               ; preds = %33
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = invoke noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %41)
          to label %43 unwind label %64

43:                                               ; preds = %40
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = invoke noundef i32 @_ZNK11DataPackage10get_sourceEv(ptr noundef nonnull align 8 dereferenceable(64) %44)
          to label %46 unwind label %64

46:                                               ; preds = %43
  %47 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 20
  %48 = load i32, ptr %47, align 4, !tbaa !29
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = invoke noundef i32 @_ZNK11DataPackage18get_operation_modeEv(ptr noundef nonnull align 8 dereferenceable(64) %49)
          to label %51 unwind label %64

51:                                               ; preds = %46
  invoke void @_ZN11DataPackageC1Emf9operand_tjj16adderoperation_t(ptr noundef nonnull align 8 dereferenceable(64) %37, i64 noundef %39, float noundef %42, i32 noundef 3, i32 noundef %45, i32 noundef %48, i32 noundef %50)
          to label %52 unwind label %64

52:                                               ; preds = %51
  store ptr %37, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = icmp eq ptr %53, null
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %53) #7
  call void @_ZdlPvm(ptr noundef %53, i64 noundef 64) #9
  br label %56

56:                                               ; preds = %55, %52
  %57 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 7
  %58 = load ptr, ptr %57, align 8, !tbaa !30
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %58, ptr noundef %59)
  %60 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 30
  %61 = getelementptr inbounds %class.MSwitchStats, ptr %60, i32 0, i32 9
  %62 = load i32, ptr %61, align 8, !tbaa !31
  %63 = add i32 %62, 1
  store i32 %63, ptr %61, align 8, !tbaa !31
  call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %68

64:                                               ; preds = %51, %46, %43, %40, %33
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %5, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %37, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %266

68:                                               ; preds = %56, %27
  br label %265

69:                                               ; preds = %1
  %70 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 27
  %71 = load i8, ptr %70, align 4, !tbaa !32, !range !25, !noundef !26
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %130

73:                                               ; preds = %69
  %74 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %75 = load i32, ptr %74, align 8, !tbaa !33
  %76 = icmp ugt i32 %75, 0
  br i1 %76, label %77, label %130

77:                                               ; preds = %73
  %78 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 10
  %79 = load ptr, ptr %78, align 8, !tbaa !27
  call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %79)
  %80 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %81)
  br i1 %82, label %129, label %83

83:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %84 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 3
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  %86 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %85)
  store ptr %86, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %87 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = invoke noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %88)
          to label %90 unwind label %124

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

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

96:                                               ; preds = %93
  %97 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 20
  %98 = load i32, ptr %97, align 4, !tbaa !29
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = invoke noundef i32 @_ZNK11DataPackage18get_operation_modeEv(ptr noundef nonnull align 8 dereferenceable(64) %99)
          to label %101 unwind label %124

101:                                              ; preds = %96
  invoke void @_ZN11DataPackageC1Emf9operand_tjj16adderoperation_t(ptr noundef nonnull align 8 dereferenceable(64) %87, i64 noundef %89, float noundef %92, i32 noundef 3, i32 noundef %95, i32 noundef %98, i32 noundef %100)
          to label %102 unwind label %124

102:                                              ; preds = %101
  store ptr %87, ptr %8, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %103) #7
  call void @_ZdlPvm(ptr noundef %103, i64 noundef 64) #9
  br label %106

106:                                              ; preds = %105, %102
  %107 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 7
  %108 = load ptr, ptr %107, align 8, !tbaa !30
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %108, ptr noundef %109)
  %110 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 30
  %111 = getelementptr inbounds %class.MSwitchStats, ptr %110, i32 0, i32 9
  %112 = load i32, ptr %111, align 8, !tbaa !31
  %113 = add i32 %112, 1
  store i32 %113, ptr %111, align 8, !tbaa !31
  call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %16)
  %114 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %115 = load i32, ptr %114, align 8, !tbaa !33
  %116 = add i32 %115, 1
  store i32 %116, ptr %114, align 8, !tbaa !33
  %117 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %118 = load i32, ptr %117, align 8, !tbaa !33
  %119 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 24
  %120 = load i32, ptr %119, align 8, !tbaa !34
  %121 = icmp eq i32 %118, %120
  br i1 %121, label %122, label %128

122:                                              ; preds = %106
  %123 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  store i32 0, ptr %123, align 8, !tbaa !33
  br label %128

124:                                              ; preds = %101, %96, %93, %90, %83
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %266

128:                                              ; preds = %122, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %129

129:                                              ; preds = %128, %77
  br label %264

130:                                              ; preds = %73, %69
  %131 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 27
  %132 = load i8, ptr %131, align 4, !tbaa !32, !range !25, !noundef !26
  %133 = trunc i8 %132 to i1
  br i1 %133, label %134, label %161

134:                                              ; preds = %130
  %135 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %136 = load i32, ptr %135, align 8, !tbaa !33
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %161

138:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %139 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %140 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 20
  %141 = load i32, ptr %140, align 4, !tbaa !29
  invoke void @_ZN11DataPackageC1Emf9operand_tjj16adderoperation_t(ptr noundef nonnull align 8 dereferenceable(64) %139, i64 noundef 4, float noundef 0.000000e+00, i32 noundef 3, i32 noundef 0, i32 noundef %141, i32 noundef 0)
          to label %142 unwind label %156

142:                                              ; preds = %138
  store ptr %139, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 7
  %144 = load ptr, ptr %143, align 8, !tbaa !30
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %144, ptr noundef %145)
  call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %16)
  %146 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %147 = load i32, ptr %146, align 8, !tbaa !33
  %148 = add i32 %147, 1
  store i32 %148, ptr %146, align 8, !tbaa !33
  %149 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %150 = load i32, ptr %149, align 8, !tbaa !33
  %151 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 24
  %152 = load i32, ptr %151, align 8, !tbaa !34
  %153 = icmp eq i32 %150, %152
  br i1 %153, label %154, label %160

154:                                              ; preds = %142
  %155 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  store i32 0, ptr %155, align 8, !tbaa !33
  br label %160

156:                                              ; preds = %138
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %5, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %139, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %266

160:                                              ; preds = %154, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %263

161:                                              ; preds = %134, %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %162 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 10
  %163 = load ptr, ptr %162, align 8, !tbaa !27
  call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %163)
  %164 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 21
  %165 = load i8, ptr %164, align 8, !tbaa !35, !range !25, !noundef !26
  %166 = trunc i8 %165 to i1
  br i1 %166, label %167, label %170

167:                                              ; preds = %161
  %168 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 12
  %169 = load ptr, ptr %168, align 8, !tbaa !36
  call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %169)
  br label %170

170:                                              ; preds = %167, %161
  %171 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 3
  %172 = load ptr, ptr %171, align 8, !tbaa !28
  store ptr %172, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 21
  %174 = load i8, ptr %173, align 8, !tbaa !35, !range !25, !noundef !26
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %183

176:                                              ; preds = %170
  %177 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 25
  %178 = load i32, ptr %177, align 4, !tbaa !37
  %179 = icmp ugt i32 %178, 0
  br i1 %179, label %180, label %183

180:                                              ; preds = %176
  %181 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !38
  store ptr %182, ptr %10, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %180, %176, %170
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %184)
  br i1 %185, label %262, label %186

186:                                              ; preds = %183
  %187 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 6
  %188 = load ptr, ptr %187, align 8, !tbaa !39
  %189 = call noundef i32 @_ZN4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(120) %188)
  %190 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 24
  %191 = load i32, ptr %190, align 8, !tbaa !34
  %192 = icmp uge i32 %189, %191
  br i1 %192, label %193, label %262

193:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  %195 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %194)
  store ptr %195, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %196 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 6
  %197 = load ptr, ptr %196, align 8, !tbaa !39
  %198 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %197)
  store ptr %198, ptr %12, align 8, !tbaa !5
  %199 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 6
  %200 = load ptr, ptr %199, align 8, !tbaa !39
  %201 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %200, ptr noundef %201)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %202)
  store float %203, ptr %13, align 4, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = call noundef ptr @_ZN7MSwitch28perform_operation_2_operandsEP11DataPackageS1_(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %204, ptr noundef %205)
  store ptr %206, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 7
  %208 = load ptr, ptr %207, align 8, !tbaa !30
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %208, ptr noundef %209)
  call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %16)
  %210 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 25
  %211 = load i32, ptr %210, align 4, !tbaa !37
  %212 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 23
  %213 = load i32, ptr %212, align 4, !tbaa !42
  %214 = sub i32 %213, 1
  %215 = icmp ult i32 %211, %214
  br i1 %215, label %216, label %235

216:                                              ; preds = %193
  %217 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 22
  %218 = load i8, ptr %217, align 1, !tbaa !43, !range !25, !noundef !26
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %235

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %221 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64) %221, ptr noundef %222)
          to label %223 unwind label %231

223:                                              ; preds = %220
  store ptr %221, ptr %15, align 8, !tbaa !5
  %224 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 5
  %225 = load ptr, ptr %224, align 8, !tbaa !44
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %225, ptr noundef %226)
  %227 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 5
  %228 = load ptr, ptr %227, align 8, !tbaa !44
  %229 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %228)
  store ptr %229, ptr %15, align 8, !tbaa !5
  %230 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN7MSwitch7forwardEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %230)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %235

231:                                              ; preds = %220
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %5, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %221, i64 noundef 64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %266

235:                                              ; preds = %223, %216, %193
  %236 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %237 = load i32, ptr %236, align 8, !tbaa !33
  %238 = add i32 %237, 1
  store i32 %238, ptr %236, align 8, !tbaa !33
  %239 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  %240 = load i32, ptr %239, align 8, !tbaa !33
  %241 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 24
  %242 = load i32, ptr %241, align 8, !tbaa !34
  %243 = icmp eq i32 %240, %242
  br i1 %243, label %244, label %257

244:                                              ; preds = %235
  %245 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 25
  %246 = load i32, ptr %245, align 4, !tbaa !37
  %247 = add i32 %246, 1
  store i32 %247, ptr %245, align 4, !tbaa !37
  %248 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 26
  store i32 0, ptr %248, align 8, !tbaa !33
  %249 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 25
  %250 = load i32, ptr %249, align 4, !tbaa !37
  %251 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 23
  %252 = load i32, ptr %251, align 4, !tbaa !42
  %253 = icmp eq i32 %250, %252
  br i1 %253, label %254, label %256

254:                                              ; preds = %244
  %255 = getelementptr inbounds %class.MSwitch, ptr %16, i32 0, i32 25
  store i32 0, ptr %255, align 4, !tbaa !37
  br label %256

256:                                              ; preds = %254, %244
  br label %257

257:                                              ; preds = %256, %235
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = icmp eq ptr %258, null
  br i1 %259, label %261, label %260

260:                                              ; preds = %257
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %258) #7
  call void @_ZdlPvm(ptr noundef %258, i64 noundef 64) #9
  br label %261

261:                                              ; preds = %260, %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %262

262:                                              ; preds = %261, %186, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %263

263:                                              ; preds = %262, %160
  br label %264

264:                                              ; preds = %263, %129
  br label %265

265:                                              ; preds = %264, %68
  ret void

266:                                              ; preds = %231, %156, %124, %64
  %267 = load ptr, ptr %5, align 8
  %268 = load i32, ptr %6, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270
}

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

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

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

declare void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) unnamed_addr #2

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !12, i64 208}
!10 = !{!"_ZTS7MSwitch", !11, i64 0, !16, i64 48, !16, i64 49, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !17, i64 96, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !16, i64 184, !16, i64 185, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !16, i64 204, !16, i64 205, !12, i64 208, !21, i64 216}
!11 = !{!"_ZTS4Unit", !12, i64 8, !13, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIP11DataPackageSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP11DataPackageSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS12MSwitchStats", !22, 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}
!22 = !{!"_ZTS5Stats"}
!23 = !{!10, !12, i64 224}
!24 = !{!10, !16, i64 205}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !6, i64 128}
!28 = !{!10, !6, i64 56}
!29 = !{!10, !12, i64 180}
!30 = !{!10, !6, i64 88}
!31 = !{!10, !12, i64 256}
!32 = !{!10, !16, i64 204}
!33 = !{!10, !12, i64 200}
!34 = !{!10, !12, i64 192}
!35 = !{!10, !16, i64 184}
!36 = !{!10, !6, i64 144}
!37 = !{!10, !12, i64 196}
!38 = !{!10, !6, i64 64}
!39 = !{!10, !6, i64 80}
!40 = !{!41, !41, i64 0}
!41 = !{!"float", !7, i64 0}
!42 = !{!10, !12, i64 188}
!43 = !{!10, !16, i64 185}
!44 = !{!10, !6, i64 72}


; 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

declare noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2

declare noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MSwitch7forwardEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #3 align 2

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

declare noundef i32 @_ZN4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MSwitch5cycleEv(ptr noundef nonnull align 8 dereferenceable(264) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 208
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = add i32 %3, 1
  store i32 %4, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 224
  %6 = load i32, ptr %5, align 8, !tbaa !22
  %7 = add i32 %6, 1
  store i32 %7, ptr %5, align 8, !tbaa !22
  %8 = getelementptr inbounds i8, ptr %0, i64 205
  %9 = load i8, ptr %8, align 1, !tbaa !23, !range !24, !noundef !25
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %35

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  %13 = load ptr, ptr %12, align 8, !tbaa !26
  tail call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = load ptr, ptr %14, align 8, !tbaa !27
  %16 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %15)
  br i1 %16, label %148, label %17

17:                                               ; preds = %11
  %18 = load ptr, ptr %14, align 8, !tbaa !27
  %19 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %18)
  %20 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  %21 = tail call noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %19)
  %22 = tail call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %19)
  %23 = tail call noundef i32 @_ZNK11DataPackage10get_sourceEv(ptr noundef nonnull align 8 dereferenceable(64) %19)
  %24 = getelementptr inbounds i8, ptr %0, i64 180
  %25 = load i32, ptr %24, align 4, !tbaa !28
  %26 = tail call noundef i32 @_ZNK11DataPackage18get_operation_modeEv(ptr noundef nonnull align 8 dereferenceable(64) %19)
  invoke void @_ZN11DataPackageC1Emf9operand_tjj16adderoperation_t(ptr noundef nonnull align 8 dereferenceable(64) %20, i64 noundef %21, float noundef %22, i32 noundef 3, i32 noundef %23, i32 noundef %25, i32 noundef %26)
          to label %27 unwind label %33

27:                                               ; preds = %17
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %19) #7
  tail call void @_ZdlPvm(ptr noundef %19, i64 noundef 64) #8
  %28 = getelementptr inbounds i8, ptr %0, i64 88
  %29 = load ptr, ptr %28, align 8, !tbaa !29
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %29, ptr noundef nonnull %20)
  %30 = getelementptr inbounds i8, ptr %0, i64 256
  %31 = load i32, ptr %30, align 8, !tbaa !30
  %32 = add i32 %31, 1
  store i32 %32, ptr %30, align 8, !tbaa !30
  tail call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  br label %148

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %149

35:                                               ; preds = %1
  %36 = getelementptr inbounds i8, ptr %0, i64 204
  %37 = load i8, ptr %36, align 4, !tbaa !31, !range !24, !noundef !25
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %85

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %0, i64 200
  %41 = load i32, ptr %40, align 8, !tbaa !32
  %.not = icmp eq i32 %41, 0
  br i1 %.not, label %71, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 128
  %44 = load ptr, ptr %43, align 8, !tbaa !26
  tail call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %44)
  %45 = getelementptr inbounds i8, ptr %0, i64 56
  %46 = load ptr, ptr %45, align 8, !tbaa !27
  %47 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %46)
  br i1 %47, label %148, label %48

48:                                               ; preds = %42
  %49 = load ptr, ptr %45, align 8, !tbaa !27
  %50 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %49)
  %51 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  %52 = tail call noundef i64 @_ZNK11DataPackage16get_size_packageEv(ptr noundef nonnull align 8 dereferenceable(64) %50)
  %53 = tail call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %50)
  %54 = tail call noundef i32 @_ZNK11DataPackage10get_sourceEv(ptr noundef nonnull align 8 dereferenceable(64) %50)
  %55 = getelementptr inbounds i8, ptr %0, i64 180
  %56 = load i32, ptr %55, align 4, !tbaa !28
  %57 = tail call noundef i32 @_ZNK11DataPackage18get_operation_modeEv(ptr noundef nonnull align 8 dereferenceable(64) %50)
  invoke void @_ZN11DataPackageC1Emf9operand_tjj16adderoperation_t(ptr noundef nonnull align 8 dereferenceable(64) %51, i64 noundef %52, float noundef %53, i32 noundef 3, i32 noundef %54, i32 noundef %56, i32 noundef %57)
          to label %58 unwind label %69

58:                                               ; preds = %48
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %50) #7
  tail call void @_ZdlPvm(ptr noundef %50, i64 noundef 64) #8
  %59 = getelementptr inbounds i8, ptr %0, i64 88
  %60 = load ptr, ptr %59, align 8, !tbaa !29
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %60, ptr noundef nonnull %51)
  %61 = getelementptr inbounds i8, ptr %0, i64 256
  %62 = load i32, ptr %61, align 8, !tbaa !30
  %63 = add i32 %62, 1
  store i32 %63, ptr %61, align 8, !tbaa !30
  tail call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %64 = load i32, ptr %40, align 8, !tbaa !32
  %65 = add i32 %64, 1
  %66 = getelementptr inbounds i8, ptr %0, i64 192
  %67 = load i32, ptr %66, align 8, !tbaa !33
  %68 = icmp eq i32 %65, %67
  %spec.store.select33 = select i1 %68, i32 0, i32 %65
  store i32 %spec.store.select33, ptr %40, align 8
  br label %148

69:                                               ; preds = %48
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %149

71:                                               ; preds = %39
  %72 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  %73 = getelementptr inbounds i8, ptr %0, i64 180
  %74 = load i32, ptr %73, align 4, !tbaa !28
  invoke void @_ZN11DataPackageC1Emf9operand_tjj16adderoperation_t(ptr noundef nonnull align 8 dereferenceable(64) %72, i64 noundef 4, float noundef 0.000000e+00, i32 noundef 3, i32 noundef 0, i32 noundef %74, i32 noundef 0)
          to label %75 unwind label %83

75:                                               ; preds = %71
  %76 = getelementptr inbounds i8, ptr %0, i64 88
  %77 = load ptr, ptr %76, align 8, !tbaa !29
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %77, ptr noundef nonnull %72)
  tail call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %78 = load i32, ptr %40, align 8, !tbaa !32
  %79 = add i32 %78, 1
  %80 = getelementptr inbounds i8, ptr %0, i64 192
  %81 = load i32, ptr %80, align 8, !tbaa !33
  %82 = icmp eq i32 %79, %81
  %spec.store.select = select i1 %82, i32 0, i32 %79
  store i32 %spec.store.select, ptr %40, align 8
  br label %148

83:                                               ; preds = %71
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %149

85:                                               ; preds = %35
  %86 = getelementptr inbounds i8, ptr %0, i64 128
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  tail call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %87)
  %88 = getelementptr inbounds i8, ptr %0, i64 184
  %89 = load i8, ptr %88, align 8, !tbaa !34, !range !24, !noundef !25
  %90 = trunc nuw i8 %89 to i1
  br i1 %90, label %91, label %94

91:                                               ; preds = %85
  %92 = getelementptr inbounds i8, ptr %0, i64 144
  %93 = load ptr, ptr %92, align 8, !tbaa !35
  tail call void @_ZN7MSwitch7receiveEP10Connection(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %93)
  %.pre = load i8, ptr %88, align 8, !tbaa !34, !range !24
  %.pre34 = trunc nuw i8 %.pre to i1
  br label %94

94:                                               ; preds = %91, %85
  %.pre-phi = phi i1 [ %.pre34, %91 ], [ false, %85 ]
  %95 = getelementptr inbounds i8, ptr %0, i64 56
  %96 = load ptr, ptr %95, align 8, !tbaa !27
  %97 = getelementptr inbounds i8, ptr %0, i64 196
  %98 = load i32, ptr %97, align 4
  %.not28 = icmp ne i32 %98, 0
  %or.cond.not = select i1 %.pre-phi, i1 %.not28, i1 false
  %99 = getelementptr inbounds i8, ptr %0, i64 64
  %100 = load ptr, ptr %99, align 8
  %.027 = select i1 %or.cond.not, ptr %100, ptr %96
  %101 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %.027)
  br i1 %101, label %148, label %102

102:                                              ; preds = %94
  %103 = getelementptr inbounds i8, ptr %0, i64 80
  %104 = load ptr, ptr %103, align 8, !tbaa !36
  %105 = tail call noundef i32 @_ZN4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(120) %104)
  %106 = getelementptr inbounds i8, ptr %0, i64 192
  %107 = load i32, ptr %106, align 8, !tbaa !33
  %.not29 = icmp ult i32 %105, %107
  br i1 %.not29, label %148, label %108

108:                                              ; preds = %102
  %109 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %.027)
  %110 = load ptr, ptr %103, align 8, !tbaa !36
  %111 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %110)
  %112 = load ptr, ptr %103, align 8, !tbaa !36
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %112, ptr noundef %111)
  %113 = tail call noundef float @_ZNK11DataPackage8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %109)
  %114 = tail call noundef ptr @_ZN7MSwitch28perform_operation_2_operandsEP11DataPackageS1_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef nonnull %109, ptr noundef %111)
  %115 = getelementptr inbounds i8, ptr %0, i64 88
  %116 = load ptr, ptr %115, align 8, !tbaa !29
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %116, ptr noundef %114)
  tail call void @_ZN7MSwitch4sendEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %117 = load i32, ptr %97, align 4, !tbaa !37
  %118 = getelementptr inbounds i8, ptr %0, i64 188
  %119 = load i32, ptr %118, align 4, !tbaa !38
  %120 = add i32 %119, -1
  %121 = icmp ult i32 %117, %120
  br i1 %121, label %122, label %135

122:                                              ; preds = %108
  %123 = getelementptr inbounds i8, ptr %0, i64 185
  %124 = load i8, ptr %123, align 1, !tbaa !39, !range !24, !noundef !25
  %125 = trunc nuw i8 %124 to i1
  br i1 %125, label %126, label %135

126:                                              ; preds = %122
  %127 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  invoke void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64) %127, ptr noundef nonnull %109)
          to label %128 unwind label %133

128:                                              ; preds = %126
  %129 = getelementptr inbounds i8, ptr %0, i64 72
  %130 = load ptr, ptr %129, align 8, !tbaa !40
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %130, ptr noundef nonnull %127)
  %131 = load ptr, ptr %129, align 8, !tbaa !40
  %132 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %131)
  tail call void @_ZN7MSwitch7forwardEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %132)
  br label %135

133:                                              ; preds = %126
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %149

135:                                              ; preds = %128, %122, %108
  %136 = getelementptr inbounds i8, ptr %0, i64 200
  %137 = load i32, ptr %136, align 8, !tbaa !32
  %138 = add i32 %137, 1
  store i32 %138, ptr %136, align 8, !tbaa !32
  %139 = load i32, ptr %106, align 8, !tbaa !33
  %140 = icmp eq i32 %138, %139
  br i1 %140, label %141, label %147

141:                                              ; preds = %135
  %142 = load i32, ptr %97, align 4, !tbaa !37
  %143 = add i32 %142, 1
  store i32 %143, ptr %97, align 4, !tbaa !37
  store i32 0, ptr %136, align 8, !tbaa !32
  %144 = load i32, ptr %118, align 4, !tbaa !38
  %145 = icmp eq i32 %143, %144
  br i1 %145, label %146, label %147

146:                                              ; preds = %141
  store i32 0, ptr %97, align 4, !tbaa !37
  br label %147

147:                                              ; preds = %135, %146, %141
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %109) #7
  tail call void @_ZdlPvm(ptr noundef %109, i64 noundef 64) #8
  br label %148

148:                                              ; preds = %58, %94, %102, %147, %42, %75, %11, %27
  ret void

149:                                              ; preds = %133, %83, %69, %33
  %.sink = phi ptr [ %127, %133 ], [ %72, %83 ], [ %51, %69 ], [ %20, %33 ]
  %.pn = phi { ptr, i32 } [ %134, %133 ], [ %84, %83 ], [ %70, %69 ], [ %34, %33 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 64) #8
  resume { ptr, i32 } %.pn
}

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

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

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

declare void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) unnamed_addr #2

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !8, i64 208}
!6 = !{!"_ZTS7MSwitch", !7, i64 0, !15, i64 48, !15, i64 49, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !16, i64 96, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !8, i64 152, !8, i64 156, !8, i64 160, !8, i64 164, !8, i64 168, !8, i64 172, !8, i64 176, !8, i64 180, !15, i64 184, !15, i64 185, !8, i64 188, !8, i64 192, !8, i64 196, !8, i64 200, !15, i64 204, !15, i64 205, !8, i64 208, !20, i64 216}
!7 = !{!"_ZTS4Unit", !8, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !9, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!"bool", !9, i64 0}
!16 = !{!"_ZTSSt6vectorIP11DataPackageSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP11DataPackageSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!20 = !{!"_ZTS12MSwitchStats", !21, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44}
!21 = !{!"_ZTS5Stats"}
!22 = !{!6, !8, i64 224}
!23 = !{!6, !15, i64 205}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !13, i64 128}
!27 = !{!6, !13, i64 56}
!28 = !{!6, !8, i64 180}
!29 = !{!6, !13, i64 88}
!30 = !{!6, !8, i64 256}
!31 = !{!6, !15, i64 204}
!32 = !{!6, !8, i64 200}
!33 = !{!6, !8, i64 192}
!34 = !{!6, !15, i64 184}
!35 = !{!6, !13, i64 144}
!36 = !{!6, !13, i64 80}
!37 = !{!6, !8, i64 196}
!38 = !{!6, !8, i64 188}
!39 = !{!6, !15, i64 185}
!40 = !{!6, !13, i64 72}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass