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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Config = type { i32, %class.DSNetworkConfig, %class.DSwitchConfig, %class.MSNetworkConfig, %class.MSwitchConfig, %class.ASNetworkConfig, %class.ASwitchConfig, %class.LookUpTableConfig, %class.SDMemoryConfig }
%class.DSNetworkConfig = type { i32 }
%class.DSwitchConfig = type { i32, i32, i32, i32 }
%class.MSNetworkConfig = type { i32, i32, i32, i32 }
%class.MSwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.ASNetworkConfig = type { i32, i32 }
%class.ASwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.LookUpTableConfig = type { i32, i32 }
%class.SDMemoryConfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.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::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 }

@_ZTV7MSwitch = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MSwitchC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi6Config(ptr noundef nonnull align 8 dereferenceable(264) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef byval(%class.Config) align 8 %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %13 = load ptr, ptr %6, align 8
  %14 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @_ZN4UnitC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef %14, ptr noundef %10)
          to label %15 unwind label %85

15:                                               ; preds = %5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTV7MSwitch, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !11
  %16 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 8
  call void @_ZNSt6vectorIP11DataPackageSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %17 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 30
  invoke void @_ZN12MSwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %18 unwind label %89

18:                                               ; preds = %15
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 14
  store i32 %19, ptr %20, align 4, !tbaa !13
  %21 = getelementptr inbounds %class.Config, ptr %4, i32 0, i32 4
  %22 = getelementptr inbounds %class.MSwitchConfig, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !26
  %24 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 13
  store i32 %23, ptr %24, align 8, !tbaa !40
  %25 = getelementptr inbounds %class.Config, ptr %4, i32 0, i32 4
  %26 = getelementptr inbounds %class.MSwitchConfig, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !41
  %28 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 15
  store i32 %27, ptr %28, align 8, !tbaa !42
  %29 = getelementptr inbounds %class.Config, ptr %4, i32 0, i32 4
  %30 = getelementptr inbounds %class.MSwitchConfig, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !43
  %32 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 16
  store i32 %31, ptr %32, align 4, !tbaa !44
  %33 = getelementptr inbounds %class.Config, ptr %4, i32 0, i32 4
  %34 = getelementptr inbounds %class.MSwitchConfig, ptr %33, i32 0, i32 3
  %35 = load i32, ptr %34, align 4, !tbaa !45
  %36 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 17
  store i32 %35, ptr %36, align 8, !tbaa !46
  %37 = getelementptr inbounds %class.Config, ptr %4, i32 0, i32 4
  %38 = getelementptr inbounds %class.MSwitchConfig, ptr %37, i32 0, i32 5
  %39 = load i32, ptr %38, align 4, !tbaa !47
  %40 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 18
  store i32 %39, ptr %40, align 4, !tbaa !48
  %41 = getelementptr inbounds %class.Config, ptr %4, i32 0, i32 4
  %42 = getelementptr inbounds %class.MSwitchConfig, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !49
  %44 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 19
  store i32 %43, ptr %44, align 8, !tbaa !50
  %45 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %46 unwind label %89

46:                                               ; preds = %18
  %47 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 18
  %48 = load i32, ptr %47, align 4, !tbaa !48
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %45, i32 noundef %48)
          to label %49 unwind label %93

49:                                               ; preds = %46
  %50 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 3
  store ptr %45, ptr %50, align 8, !tbaa !51
  %51 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %52 unwind label %89

52:                                               ; preds = %49
  %53 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 18
  %54 = load i32, ptr %53, align 4, !tbaa !48
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %51, i32 noundef %54)
          to label %55 unwind label %97

55:                                               ; preds = %52
  %56 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 5
  store ptr %51, ptr %56, align 8, !tbaa !52
  %57 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %58 unwind label %89

58:                                               ; preds = %55
  %59 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 18
  %60 = load i32, ptr %59, align 4, !tbaa !48
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %57, i32 noundef %60)
          to label %61 unwind label %101

61:                                               ; preds = %58
  %62 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 4
  store ptr %57, ptr %62, align 8, !tbaa !53
  %63 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %64 unwind label %89

64:                                               ; preds = %61
  %65 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 18
  %66 = load i32, ptr %65, align 4, !tbaa !48
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %63, i32 noundef %66)
          to label %67 unwind label %105

67:                                               ; preds = %64
  %68 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 6
  store ptr %63, ptr %68, align 8, !tbaa !54
  %69 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %70 unwind label %89

70:                                               ; preds = %67
  %71 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 18
  %72 = load i32, ptr %71, align 4, !tbaa !48
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %69, i32 noundef %72)
          to label %73 unwind label %109

73:                                               ; preds = %70
  %74 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 7
  store ptr %69, ptr %74, align 8, !tbaa !55
  %75 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 21
  store i8 0, ptr %75, align 8, !tbaa !56
  %76 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 22
  store i8 0, ptr %76, align 1, !tbaa !57
  %77 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 25
  store i32 0, ptr %77, align 4, !tbaa !58
  %78 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 26
  store i32 0, ptr %78, align 8, !tbaa !59
  %79 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 27
  store i8 0, ptr %79, align 4, !tbaa !60
  %80 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 28
  store i8 0, ptr %80, align 1, !tbaa !61
  %81 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 29
  store i32 0, ptr %81, align 8, !tbaa !62
  %82 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 23
  store i32 0, ptr %82, align 4, !tbaa !63
  %83 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 24
  store i32 0, ptr %83, align 8, !tbaa !64
  %84 = getelementptr inbounds %class.MSwitch, ptr %13, i32 0, i32 20
  store i32 -1, ptr %84, align 4, !tbaa !65
  ret void

85:                                               ; preds = %5
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %11, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %114

89:                                               ; preds = %67, %61, %55, %49, %18, %15
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %11, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %12, align 4
  br label %113

93:                                               ; preds = %46
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %11, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %45, i64 noundef 120) #8
  br label %113

97:                                               ; preds = %52
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %11, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %51, i64 noundef 120) #8
  br label %113

101:                                              ; preds = %58
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %11, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %57, i64 noundef 120) #8
  br label %113

105:                                              ; preds = %64
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %11, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %63, i64 noundef 120) #8
  br label %113

109:                                              ; preds = %70
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %11, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %69, i64 noundef 120) #8
  br label %113

113:                                              ; preds = %109, %105, %101, %97, %93, %89
  call void @_ZNSt6vectorIP11DataPackageSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #6
  br label %114

114:                                              ; preds = %113, %85
  %115 = load ptr, ptr %11, align 8
  %116 = load i32, ptr %12, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN12MSwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 156}
!14 = !{!"_ZTS7MSwitch", !15, i64 0, !19, i64 48, !19, i64 49, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !20, i64 96, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !19, i64 184, !19, i64 185, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !19, i64 204, !19, i64 205, !10, i64 208, !24, i64 216}
!15 = !{!"_ZTS4Unit", !10, i64 8, !16, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIP11DataPackageSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP11DataPackageSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS12MSwitchStats", !25, 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}
!25 = !{!"_ZTS5Stats"}
!26 = !{!27, !10, i64 40}
!27 = !{!"_ZTS6Config", !10, i64 0, !28, i64 4, !29, i64 8, !30, i64 24, !32, i64 40, !33, i64 64, !35, i64 72, !36, i64 96, !37, i64 104}
!28 = !{!"_ZTS15DSNetworkConfig", !10, i64 0}
!29 = !{!"_ZTS13DSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!30 = !{!"_ZTS15MSNetworkConfig", !31, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!31 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!32 = !{!"_ZTS13MSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!33 = !{!"_ZTS15ASNetworkConfig", !34, i64 0, !10, i64 4}
!34 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!35 = !{!"_ZTS13ASwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!36 = !{!"_ZTS17LookUpTableConfig", !10, i64 0, !10, i64 4}
!37 = !{!"_ZTS14SDMemoryConfig", !38, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !39, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!38 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!39 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!40 = !{!14, !10, i64 152}
!41 = !{!27, !10, i64 44}
!42 = !{!14, !10, i64 160}
!43 = !{!27, !10, i64 48}
!44 = !{!14, !10, i64 164}
!45 = !{!27, !10, i64 52}
!46 = !{!14, !10, i64 168}
!47 = !{!27, !10, i64 60}
!48 = !{!14, !10, i64 172}
!49 = !{!27, !10, i64 56}
!50 = !{!14, !10, i64 176}
!51 = !{!14, !6, i64 56}
!52 = !{!14, !6, i64 72}
!53 = !{!14, !6, i64 64}
!54 = !{!14, !6, i64 80}
!55 = !{!14, !6, i64 88}
!56 = !{!14, !19, i64 184}
!57 = !{!14, !19, i64 185}
!58 = !{!14, !10, i64 196}
!59 = !{!14, !10, i64 200}
!60 = !{!14, !19, i64 204}
!61 = !{!14, !19, i64 205}
!62 = !{!14, !10, i64 208}
!63 = !{!14, !10, i64 188}
!64 = !{!14, !10, i64 192}
!65 = !{!14, !10, i64 180}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Config = type { i32, %class.DSNetworkConfig, %class.DSwitchConfig, %class.MSNetworkConfig, %class.MSwitchConfig, %class.ASNetworkConfig, %class.ASwitchConfig, %class.LookUpTableConfig, %class.SDMemoryConfig }
%class.DSNetworkConfig = type { i32 }
%class.DSwitchConfig = type { i32, i32, i32, i32 }
%class.MSNetworkConfig = type { i32, i32, i32, i32 }
%class.MSwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.ASNetworkConfig = type { i32, i32 }
%class.ASwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.LookUpTableConfig = type { i32, i32 }
%class.SDMemoryConfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZTV7MSwitch = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MSwitchC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi6Config(ptr noundef nonnull align 8 dereferenceable(264) %0, i32 noundef %1, ptr noundef nonnull %2, i32 noundef %3, ptr nocapture noundef readonly byval(%class.Config) align 8 %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @_ZN4UnitC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1, ptr noundef nonnull %6)
          to label %7 unwind label %53

7:                                                ; preds = %5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTV7MSwitch, i64 16), ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZNSt6vectorIP11DataPackageSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %9 = getelementptr inbounds i8, ptr %0, i64 216
  invoke void @_ZN12MSwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %10 unwind label %55

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 156
  store i32 %3, ptr %11, align 4, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %4, i64 40
  %13 = load i32, ptr %12, align 8, !tbaa !24
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  store i32 %13, ptr %14, align 8, !tbaa !38
  %15 = getelementptr inbounds i8, ptr %4, i64 44
  %16 = load i32, ptr %15, align 4, !tbaa !39
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  store i32 %16, ptr %17, align 8, !tbaa !40
  %18 = getelementptr inbounds i8, ptr %4, i64 48
  %19 = getelementptr inbounds i8, ptr %0, i64 164
  %20 = getelementptr inbounds i8, ptr %0, i64 172
  %21 = load <4 x i32>, ptr %18, align 8, !tbaa !41
  %22 = shufflevector <4 x i32> %21, <4 x i32> poison, <4 x i32> <i32 0, i32 1, i32 3, i32 2>
  store <4 x i32> %22, ptr %19, align 4, !tbaa !41
  %23 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %24 unwind label %55

24:                                               ; preds = %10
  %25 = extractelement <4 x i32> %21, i64 3
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %23, i32 noundef %25)
          to label %26 unwind label %57

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %23, ptr %27, align 8, !tbaa !42
  %28 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %29 unwind label %55

29:                                               ; preds = %26
  %30 = load i32, ptr %20, align 4, !tbaa !43
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %28, i32 noundef %30)
          to label %31 unwind label %59

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %28, ptr %32, align 8, !tbaa !44
  %33 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %34 unwind label %55

34:                                               ; preds = %31
  %35 = load i32, ptr %20, align 4, !tbaa !43
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %33, i32 noundef %35)
          to label %36 unwind label %61

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %33, ptr %37, align 8, !tbaa !45
  %38 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %39 unwind label %55

39:                                               ; preds = %36
  %40 = load i32, ptr %20, align 4, !tbaa !43
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %38, i32 noundef %40)
          to label %41 unwind label %63

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %38, ptr %42, align 8, !tbaa !46
  %43 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %44 unwind label %55

44:                                               ; preds = %41
  %45 = load i32, ptr %20, align 4, !tbaa !43
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %43, i32 noundef %45)
          to label %46 unwind label %65

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %43, ptr %47, align 8, !tbaa !47
  %48 = getelementptr inbounds i8, ptr %0, i64 184
  store i8 0, ptr %48, align 8, !tbaa !48
  %49 = getelementptr inbounds i8, ptr %0, i64 185
  store i8 0, ptr %49, align 1, !tbaa !49
  %50 = getelementptr inbounds i8, ptr %0, i64 208
  store i32 0, ptr %50, align 8, !tbaa !50
  %51 = getelementptr inbounds i8, ptr %0, i64 188
  %52 = getelementptr inbounds i8, ptr %0, i64 180
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(18) %51, i8 0, i64 18, i1 false)
  store i32 -1, ptr %52, align 4, !tbaa !51
  ret void

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

55:                                               ; preds = %41, %36, %31, %26, %10, %7
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %67

57:                                               ; preds = %24
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 120) #9
  br label %67

59:                                               ; preds = %29
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 120) #9
  br label %67

61:                                               ; preds = %34
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 120) #9
  br label %67

63:                                               ; preds = %39
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %38, i64 noundef 120) #9
  br label %67

65:                                               ; preds = %44
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %43, i64 noundef 120) #9
  br label %67

67:                                               ; preds = %65, %63, %61, %59, %57, %55
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %56, %55 ], [ %64, %63 ], [ %62, %61 ], [ %60, %59 ], [ %58, %57 ]
  call void @_ZNSt6vectorIP11DataPackageSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %68

68:                                               ; preds = %67, %53
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %54, %53 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN12MSwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 156}
!9 = !{!"_ZTS7MSwitch", !10, i64 0, !17, i64 48, !17, i64 49, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !18, i64 96, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !17, i64 184, !17, i64 185, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !17, i64 204, !17, i64 205, !11, i64 208, !22, i64 216}
!10 = !{!"_ZTS4Unit", !11, i64 8, !13, i64 16}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !12, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !12, i64 0}
!16 = !{!"long", !12, i64 0}
!17 = !{!"bool", !12, i64 0}
!18 = !{!"_ZTSSt6vectorIP11DataPackageSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP11DataPackageSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP11DataPackageSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!22 = !{!"_ZTS12MSwitchStats", !23, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!23 = !{!"_ZTS5Stats"}
!24 = !{!25, !11, i64 40}
!25 = !{!"_ZTS6Config", !11, i64 0, !26, i64 4, !27, i64 8, !28, i64 24, !30, i64 40, !31, i64 64, !33, i64 72, !34, i64 96, !35, i64 104}
!26 = !{!"_ZTS15DSNetworkConfig", !11, i64 0}
!27 = !{!"_ZTS13DSwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!28 = !{!"_ZTS15MSNetworkConfig", !29, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!29 = !{!"_ZTS19MultiplierNetwork_t", !12, i64 0}
!30 = !{!"_ZTS13MSwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!31 = !{!"_ZTS15ASNetworkConfig", !32, i64 0, !11, i64 4}
!32 = !{!"_ZTS15ReduceNetwork_t", !12, i64 0}
!33 = !{!"_ZTS13ASwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!34 = !{!"_ZTS17LookUpTableConfig", !11, i64 0, !11, i64 4}
!35 = !{!"_ZTS14SDMemoryConfig", !36, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !37, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!36 = !{!"_ZTS18MemoryController_t", !12, i64 0}
!37 = !{!"_ZTS17MemoryHierarchy_t", !12, i64 0}
!38 = !{!9, !11, i64 152}
!39 = !{!25, !11, i64 44}
!40 = !{!9, !11, i64 160}
!41 = !{!11, !11, i64 0}
!42 = !{!9, !15, i64 56}
!43 = !{!9, !11, i64 172}
!44 = !{!9, !15, i64 72}
!45 = !{!9, !15, i64 64}
!46 = !{!9, !15, i64 80}
!47 = !{!9, !15, i64 88}
!48 = !{!9, !17, i64 184}
!49 = !{!9, !17, i64 185}
!50 = !{!9, !11, i64 208}
!51 = !{!9, !11, i64 180}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass