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

; 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.ASwitch = type { %class.Unit, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, %"class.std::vector", i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i8, i32, i32, i8, i8, i8, i32, [4 x i8], %class.ASwitchStats }
%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.ASwitchStats = type <{ %class.Stats, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%class.Stats = type { ptr }

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN7ASwitch16route_2_1_configEv = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1

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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7ASwitch28perform_operation_2_operandsEP11DataPackageS1_(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef, ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ASwitch16route_2_1_configEv(ptr noundef nonnull align 8 dereferenceable(288) %0) #5 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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  %13 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 12
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %14)
  br i1 %15, label %52, label %16

16:                                               ; preds = %1
  %17 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 13
  %18 = load ptr, ptr %17, align 8, !tbaa !26
  %19 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %18)
  br i1 %19, label %20, label %52

20:                                               ; preds = %16
  %21 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 30
  %22 = load i8, ptr %21, align 1, !tbaa !27, !range !28, !noundef !29
  %23 = trunc i8 %22 to i1
  br i1 %23, label %51, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %25 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 12
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %26)
  store ptr %27, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %28 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64) %28, ptr noundef %29)
          to label %30 unwind label %42

30:                                               ; preds = %24
  store ptr %28, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %31) #7
  call void @_ZdlPvm(ptr noundef %31, i64 noundef 64) #9
  br label %34

34:                                               ; preds = %33, %30
  %35 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 26
  %36 = load i8, ptr %35, align 8, !tbaa !30, !range !28, !noundef !29
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %46

38:                                               ; preds = %34
  %39 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 16
  %40 = load ptr, ptr %39, align 8, !tbaa !31
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %40, ptr noundef %41)
  br label %50

42:                                               ; preds = %24
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %28, 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 %145

46:                                               ; preds = %34
  %47 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 15
  %48 = load ptr, ptr %47, align 8, !tbaa !32
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %48, ptr noundef %49)
  br label %50

50:                                               ; preds = %46, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %51

51:                                               ; preds = %50, %20
  br label %52

52:                                               ; preds = %51, %16, %1
  %53 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 13
  %54 = load ptr, ptr %53, align 8, !tbaa !26
  %55 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %54)
  br i1 %55, label %92, label %56

56:                                               ; preds = %52
  %57 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 12
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %58)
  br i1 %59, label %60, label %92

60:                                               ; preds = %56
  %61 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 29
  %62 = load i8, ptr %61, align 4, !tbaa !33, !range !28, !noundef !29
  %63 = trunc i8 %62 to i1
  br i1 %63, label %91, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %65 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 13
  %66 = load ptr, ptr %65, align 8, !tbaa !26
  %67 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %66)
  store ptr %67, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %68 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64) %68, ptr noundef %69)
          to label %70 unwind label %82

70:                                               ; preds = %64
  store ptr %68, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %71) #7
  call void @_ZdlPvm(ptr noundef %71, i64 noundef 64) #9
  br label %74

74:                                               ; preds = %73, %70
  %75 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 26
  %76 = load i8, ptr %75, align 8, !tbaa !30, !range !28, !noundef !29
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %86

78:                                               ; preds = %74
  %79 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 16
  %80 = load ptr, ptr %79, align 8, !tbaa !31
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %80, ptr noundef %81)
  br label %90

82:                                               ; preds = %64
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %5, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %68, 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 %145

86:                                               ; preds = %74
  %87 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 15
  %88 = load ptr, ptr %87, align 8, !tbaa !32
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %88, ptr noundef %89)
  br label %90

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

91:                                               ; preds = %90, %60
  br label %92

92:                                               ; preds = %91, %56, %52
  %93 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 12
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %94)
  br i1 %95, label %144, label %96

96:                                               ; preds = %92
  %97 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 13
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %98)
  br i1 %99, label %144, label %100

100:                                              ; preds = %96
  %101 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 29
  %102 = load i8, ptr %101, align 4, !tbaa !33, !range !28, !noundef !29
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %105

104:                                              ; preds = %100
  br label %107

105:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 420, ptr noundef @__PRETTY_FUNCTION__._ZN7ASwitch16route_2_1_configEv) #10
  unreachable

106:                                              ; No predecessors!
  br label %107

107:                                              ; preds = %106, %104
  %108 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 30
  %109 = load i8, ptr %108, align 1, !tbaa !27, !range !28, !noundef !29
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  br label %114

112:                                              ; preds = %107
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 421, ptr noundef @__PRETTY_FUNCTION__._ZN7ASwitch16route_2_1_configEv) #10
  unreachable

113:                                              ; No predecessors!
  br label %114

114:                                              ; preds = %113, %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %115 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 12
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %116)
  store ptr %117, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %118 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 13
  %119 = load ptr, ptr %118, align 8, !tbaa !26
  %120 = call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %119)
  store ptr %120, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = call noundef ptr @_ZN7ASwitch28perform_operation_2_operandsEP11DataPackageS1_(ptr noundef nonnull align 8 dereferenceable(288) %12, ptr noundef %121, ptr noundef %122)
  store ptr %123, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 26
  %125 = load i8, ptr %124, align 8, !tbaa !30, !range !28, !noundef !29
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %131

127:                                              ; preds = %114
  %128 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 16
  %129 = load ptr, ptr %128, align 8, !tbaa !31
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %129, ptr noundef %130)
  br label %135

131:                                              ; preds = %114
  %132 = getelementptr inbounds %class.ASwitch, ptr %12, i32 0, i32 15
  %133 = load ptr, ptr %132, align 8, !tbaa !32
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %133, ptr noundef %134)
  br label %135

135:                                              ; preds = %131, %127
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = icmp eq ptr %136, null
  br i1 %137, label %139, label %138

138:                                              ; preds = %135
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %136) #7
  call void @_ZdlPvm(ptr noundef %136, i64 noundef 64) #9
  br label %139

139:                                              ; preds = %138, %135
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = icmp eq ptr %140, null
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %140) #7
  call void @_ZdlPvm(ptr noundef %140, i64 noundef 64) #9
  br label %143

143:                                              ; preds = %142, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %144

144:                                              ; preds = %143, %96, %92
  ret void

145:                                              ; preds = %82, %42
  %146 = load ptr, ptr %5, align 8
  %147 = load i32, ptr %6, align 4
  %148 = insertvalue { ptr, i32 } poison, ptr %146, 0
  %149 = insertvalue { ptr, i32 } %148, i32 %147, 1
  resume { ptr, i32 } %149
}

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

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

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 = { noreturn 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #10 = { noreturn 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, !6, i64 96}
!10 = !{!"_ZTS7ASwitch", !11, i64 0, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !16, i64 136, !12, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !12, i64 208, !20, i64 212, !21, i64 216, !22, i64 220, !23, i64 224, !21, i64 228, !21, i64 229, !21, i64 230, !12, i64 232, !24, i64 240}
!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 = !{!"_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", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTS4fl_t", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTS13adderconfig_t", !7, i64 0}
!23 = !{!"_ZTS16adderoperation_t", !7, i64 0}
!24 = !{!"_ZTS12ASwitchStats", !25, 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}
!25 = !{!"_ZTS5Stats"}
!26 = !{!10, !6, i64 104}
!27 = !{!10, !21, i64 229}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!10, !21, i64 216}
!31 = !{!10, !6, i64 128}
!32 = !{!10, !6, i64 120}
!33 = !{!10, !21, i64 228}


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

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN7ASwitch16route_2_1_configEv = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1

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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ASwitch16route_2_1_configEv(ptr noundef nonnull align 8 dereferenceable(288) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 96
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
  br i1 %4, label %27, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  %7 = load ptr, ptr %6, align 8, !tbaa !25
  %8 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %7)
  br i1 %8, label %9, label %27

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 229
  %11 = load i8, ptr %10, align 1, !tbaa !26, !range !27, !noundef !28
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %27, label %13

13:                                               ; preds = %9
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %14)
  %16 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  invoke void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef %15)
          to label %17 unwind label %25

17:                                               ; preds = %13
  %18 = icmp eq ptr %15, null
  br i1 %18, label %.sink.split, label %19

19:                                               ; preds = %17
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %15, i64 noundef 64) #8
  br label %.sink.split

.sink.split:                                      ; preds = %19, %17
  %20 = getelementptr inbounds i8, ptr %0, i64 216
  %21 = load i8, ptr %20, align 8, !tbaa !29, !range !27, !noundef !28
  %22 = trunc nuw i8 %21 to i1
  %. = select i1 %22, i64 128, i64 120
  %23 = getelementptr inbounds i8, ptr %0, i64 %.
  %24 = load ptr, ptr %23, align 8, !tbaa !30
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %24, ptr noundef nonnull %16)
  br label %27

25:                                               ; preds = %13
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %85

27:                                               ; preds = %.sink.split, %9, %5, %1
  %28 = getelementptr inbounds i8, ptr %0, i64 104
  %29 = load ptr, ptr %28, align 8, !tbaa !25
  %30 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %29)
  br i1 %30, label %52, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %32)
  br i1 %33, label %34, label %52

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %0, i64 228
  %36 = load i8, ptr %35, align 4, !tbaa !31, !range !27, !noundef !28
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %52, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr %28, align 8, !tbaa !25
  %40 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %39)
  %41 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
  invoke void @_ZN11DataPackageC1EPS_(ptr noundef nonnull align 8 dereferenceable(64) %41, ptr noundef %40)
          to label %42 unwind label %50

42:                                               ; preds = %38
  %43 = icmp eq ptr %40, null
  br i1 %43, label %.sink.split23, label %44

44:                                               ; preds = %42
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %40) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %40, i64 noundef 64) #8
  br label %.sink.split23

.sink.split23:                                    ; preds = %44, %42
  %45 = getelementptr inbounds i8, ptr %0, i64 216
  %46 = load i8, ptr %45, align 8, !tbaa !29, !range !27, !noundef !28
  %47 = trunc nuw i8 %46 to i1
  %.31 = select i1 %47, i64 128, i64 120
  %48 = getelementptr inbounds i8, ptr %0, i64 %.31
  %49 = load ptr, ptr %48, align 8, !tbaa !30
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %49, ptr noundef nonnull %41)
  br label %52

50:                                               ; preds = %38
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %85

52:                                               ; preds = %.sink.split23, %34, %31, %27
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %53)
  br i1 %54, label %84, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr %28, align 8, !tbaa !25
  %57 = tail call noundef zeroext i1 @_ZN4Fifo7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(120) %56)
  br i1 %57, label %84, label %58

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %0, i64 228
  %60 = load i8, ptr %59, align 4, !tbaa !31, !range !27, !noundef !28
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 420, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7ASwitch16route_2_1_configEv) #9
  unreachable

63:                                               ; preds = %58
  %64 = getelementptr inbounds i8, ptr %0, i64 229
  %65 = load i8, ptr %64, align 1, !tbaa !26, !range !27, !noundef !28
  %66 = trunc nuw i8 %65 to i1
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 421, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7ASwitch16route_2_1_configEv) #9
  unreachable

68:                                               ; preds = %63
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %69)
  %71 = load ptr, ptr %28, align 8, !tbaa !25
  %72 = tail call noundef ptr @_ZN4Fifo3popEv(ptr noundef nonnull align 8 dereferenceable(120) %71)
  %73 = tail call noundef ptr @_ZN7ASwitch28perform_operation_2_operandsEP11DataPackageS1_(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef %70, ptr noundef %72)
  %74 = getelementptr inbounds i8, ptr %0, i64 216
  %75 = load i8, ptr %74, align 8, !tbaa !29, !range !27, !noundef !28
  %76 = trunc nuw i8 %75 to i1
  %.32 = select i1 %76, i64 128, i64 120
  %77 = getelementptr inbounds i8, ptr %0, i64 %.32
  %78 = load ptr, ptr %77, align 8, !tbaa !30
  tail call void @_ZN4Fifo4pushEP11DataPackage(ptr noundef nonnull align 8 dereferenceable(120) %78, ptr noundef %73)
  %79 = icmp eq ptr %70, null
  br i1 %79, label %81, label %80

80:                                               ; preds = %68
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %70) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %70, i64 noundef 64) #8
  br label %81

81:                                               ; preds = %80, %68
  %82 = icmp eq ptr %72, null
  br i1 %82, label %84, label %83

83:                                               ; preds = %81
  tail call void @_ZN11DataPackageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %72) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %72, i64 noundef 64) #8
  br label %84

84:                                               ; preds = %81, %83, %55, %52
  ret void

85:                                               ; preds = %50, %25
  %.sink30 = phi ptr [ %41, %50 ], [ %16, %25 ]
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %26, %25 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink30, i64 noundef 64) #8
  resume { ptr, i32 } %.pn
}

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

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

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 = { noreturn 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 #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 }
attributes #9 = { noreturn 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, !13, i64 96}
!6 = !{!"_ZTS7ASwitch", !7, i64 0, !8, i64 48, !8, i64 52, !8, i64 56, !8, i64 60, !8, i64 64, !8, i64 68, !8, i64 72, !8, i64 76, !8, i64 80, !8, i64 84, !8, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !15, i64 136, !8, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !8, i64 208, !19, i64 212, !20, i64 216, !21, i64 220, !22, i64 224, !20, i64 228, !20, i64 229, !20, i64 230, !8, i64 232, !23, i64 240}
!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 = !{!"_ZTSSt6vectorIP11DataPackageSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIP11DataPackageSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!19 = !{!"_ZTS4fl_t", !9, i64 0}
!20 = !{!"bool", !9, i64 0}
!21 = !{!"_ZTS13adderconfig_t", !9, i64 0}
!22 = !{!"_ZTS16adderoperation_t", !9, i64 0}
!23 = !{!"_ZTS12ASwitchStats", !24, 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}
!24 = !{!"_ZTS5Stats"}
!25 = !{!6, !13, i64 104}
!26 = !{!6, !20, i64 229}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!6, !20, i64 216}
!30 = !{!13, !13, i64 0}
!31 = !{!6, !20, i64 228}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass