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

; 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.MultiplierOS = type <{ %class.Unit, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %class.MultiplierOSStats, i32, i8, i8, [2 x i8] }>
%class.Unit = type { ptr, i32, %"class.std::__cxx11::basic_string" }
%class.MultiplierOSStats = type <{ %class.Stats, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%class.Stats = type { ptr }

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

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

17:                                               ; preds = %6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTV12MultiplierOS, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %18 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 23
  invoke void @_ZN17MultiplierOSStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %19 unwind label %105

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

59:                                               ; preds = %19
  %60 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 18
  %61 = load i32, ptr %60, align 4, !tbaa !47
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %58, i32 noundef %61)
          to label %62 unwind label %109

62:                                               ; preds = %59
  %63 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 1
  store ptr %58, ptr %63, align 8, !tbaa !54
  %64 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %65 unwind label %105

65:                                               ; preds = %62
  %66 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 18
  %67 = load i32, ptr %66, align 4, !tbaa !47
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %64, i32 noundef %67)
          to label %68 unwind label %113

68:                                               ; preds = %65
  %69 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 4
  store ptr %64, ptr %69, align 8, !tbaa !55
  %70 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %71 unwind label %105

71:                                               ; preds = %68
  %72 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 18
  %73 = load i32, ptr %72, align 4, !tbaa !47
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %70, i32 noundef %73)
          to label %74 unwind label %117

74:                                               ; preds = %71
  %75 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 3
  store ptr %70, ptr %75, align 8, !tbaa !56
  %76 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %77 unwind label %105

77:                                               ; preds = %74
  %78 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 18
  %79 = load i32, ptr %78, align 4, !tbaa !47
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %76, i32 noundef %79)
          to label %80 unwind label %121

80:                                               ; preds = %77
  %81 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 2
  store ptr %76, ptr %81, align 8, !tbaa !57
  %82 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #7
          to label %83 unwind label %105

83:                                               ; preds = %80
  %84 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 18
  %85 = load i32, ptr %84, align 4, !tbaa !47
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %82, i32 noundef %85)
          to label %86 unwind label %125

86:                                               ; preds = %83
  %87 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 5
  store ptr %82, ptr %87, align 8, !tbaa !58
  %88 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 22
  store i32 0, ptr %88, align 4, !tbaa !59
  %89 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 25
  store i8 0, ptr %89, align 4, !tbaa !13
  %90 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 26
  store i8 0, ptr %90, align 1, !tbaa !22
  %91 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 24
  store i32 0, ptr %91, align 8, !tbaa !60
  %92 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 12
  %93 = load i32, ptr %92, align 4, !tbaa !23
  %94 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 21
  %95 = load i32, ptr %94, align 8, !tbaa !53
  %96 = mul i32 %93, %95
  %97 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 13
  %98 = load i32, ptr %97, align 8, !tbaa !24
  %99 = add i32 %96, %98
  %100 = getelementptr inbounds %class.MultiplierOS, ptr %15, i32 0, i32 14
  store i32 %99, ptr %100, align 4, !tbaa !61
  ret void

101:                                              ; preds = %6
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %13, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %130

105:                                              ; preds = %80, %74, %68, %62, %19, %17
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  br label %129

109:                                              ; preds = %59
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %13, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %58, i64 noundef 120) #8
  br label %129

113:                                              ; preds = %65
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %13, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %64, i64 noundef 120) #8
  br label %129

117:                                              ; preds = %71
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %13, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %70, i64 noundef 120) #8
  br label %129

121:                                              ; preds = %77
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %13, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %76, i64 noundef 120) #8
  br label %129

125:                                              ; preds = %83
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %13, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %82, i64 noundef 120) #8
  br label %129

129:                                              ; preds = %125, %121, %117, %113, %109, %105
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  br label %130

130:                                              ; preds = %129, %101
  %131 = load ptr, ptr %13, align 8
  %132 = load i32, ptr %14, align 4
  %133 = insertvalue { ptr, i32 } poison, ptr %131, 0
  %134 = insertvalue { ptr, i32 } %133, i32 %132, 1
  resume { ptr, i32 } %134
}

; 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

declare void @_ZN17MultiplierOSStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36)) 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: 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, !21, i64 220}
!14 = !{!"_ZTS12MultiplierOS", !15, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !19, i64 176, !10, i64 216, !21, i64 220, !21, i64 221}
!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 = !{!"_ZTS17MultiplierOSStats", !20, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!20 = !{!"_ZTS5Stats"}
!21 = !{!"bool", !7, i64 0}
!22 = !{!14, !21, i64 221}
!23 = !{!14, !10, i64 132}
!24 = !{!14, !10, i64 136}
!25 = !{!26, !10, i64 40}
!26 = !{!"_ZTS6Config", !10, i64 0, !27, i64 4, !28, i64 8, !29, i64 24, !31, i64 40, !32, i64 64, !34, i64 72, !35, i64 96, !36, i64 104}
!27 = !{!"_ZTS15DSNetworkConfig", !10, i64 0}
!28 = !{!"_ZTS13DSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!29 = !{!"_ZTS15MSNetworkConfig", !30, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!30 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!31 = !{!"_ZTS13MSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!32 = !{!"_ZTS15ASNetworkConfig", !33, i64 0, !10, i64 4}
!33 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!34 = !{!"_ZTS13ASwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!35 = !{!"_ZTS17LookUpTableConfig", !10, i64 0, !10, i64 4}
!36 = !{!"_ZTS14SDMemoryConfig", !37, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !38, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!37 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!38 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!39 = !{!14, !10, i64 128}
!40 = !{!26, !10, i64 44}
!41 = !{!14, !10, i64 144}
!42 = !{!26, !10, i64 48}
!43 = !{!14, !10, i64 148}
!44 = !{!26, !10, i64 52}
!45 = !{!14, !10, i64 152}
!46 = !{!26, !10, i64 60}
!47 = !{!14, !10, i64 156}
!48 = !{!26, !10, i64 56}
!49 = !{!14, !10, i64 160}
!50 = !{!26, !10, i64 32}
!51 = !{!14, !10, i64 164}
!52 = !{!26, !10, i64 36}
!53 = !{!14, !10, i64 168}
!54 = !{!14, !6, i64 48}
!55 = !{!14, !6, i64 72}
!56 = !{!14, !6, i64 64}
!57 = !{!14, !6, i64 56}
!58 = !{!14, !6, i64 80}
!59 = !{!14, !10, i64 172}
!60 = !{!14, !10, i64 216}
!61 = !{!14, !10, i64 140}


; 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] }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12MultiplierOSC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii6Config(ptr noundef nonnull align 8 dereferenceable(222) %0, i32 noundef %1, ptr noundef nonnull %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef readonly byval(%class.Config) align 8 %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, 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 %7)
          to label %8 unwind label %63

8:                                                ; preds = %6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTV12MultiplierOS, i64 16), ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  invoke void @_ZN17MultiplierOSStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %10 unwind label %65

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 220
  store i8 0, ptr %11, align 4, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 221
  store i8 0, ptr %12, align 1, !tbaa !20
  %13 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %3, ptr %13, align 4, !tbaa !21
  %14 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %4, ptr %14, align 8, !tbaa !22
  %15 = getelementptr inbounds i8, ptr %5, i64 40
  %16 = load i32, ptr %15, align 8, !tbaa !23
  %17 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %16, ptr %17, align 8, !tbaa !37
  %18 = getelementptr inbounds i8, ptr %5, i64 44
  %19 = load i32, ptr %18, align 4, !tbaa !38
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %19, ptr %20, align 8, !tbaa !39
  %21 = getelementptr inbounds i8, ptr %5, i64 48
  %22 = getelementptr inbounds i8, ptr %0, i64 148
  %23 = getelementptr inbounds i8, ptr %0, i64 156
  %24 = load <4 x i32>, ptr %21, align 8, !tbaa !40
  %25 = shufflevector <4 x i32> %24, <4 x i32> poison, <4 x i32> <i32 0, i32 1, i32 3, i32 2>
  store <4 x i32> %25, ptr %22, align 4, !tbaa !40
  %26 = getelementptr inbounds i8, ptr %5, i64 32
  %27 = getelementptr inbounds i8, ptr %0, i64 164
  %28 = load <2 x i32>, ptr %26, align 8, !tbaa !40
  store <2 x i32> %28, ptr %27, align 4, !tbaa !40
  %29 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #7
          to label %30 unwind label %65

30:                                               ; preds = %10
  %31 = extractelement <4 x i32> %24, i64 3
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %29, i32 noundef %31)
          to label %32 unwind label %67

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %29, ptr %33, align 8, !tbaa !41
  %34 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #7
          to label %35 unwind label %65

35:                                               ; preds = %32
  %36 = load i32, ptr %23, align 4, !tbaa !42
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %34, i32 noundef %36)
          to label %37 unwind label %69

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %34, ptr %38, align 8, !tbaa !43
  %39 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #7
          to label %40 unwind label %65

40:                                               ; preds = %37
  %41 = load i32, ptr %23, align 4, !tbaa !42
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %39, i32 noundef %41)
          to label %42 unwind label %71

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %39, ptr %43, align 8, !tbaa !44
  %44 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #7
          to label %45 unwind label %65

45:                                               ; preds = %42
  %46 = load i32, ptr %23, align 4, !tbaa !42
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %44, i32 noundef %46)
          to label %47 unwind label %73

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %44, ptr %48, align 8, !tbaa !45
  %49 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #7
          to label %50 unwind label %65

50:                                               ; preds = %47
  %51 = load i32, ptr %23, align 4, !tbaa !42
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %49, i32 noundef %51)
          to label %52 unwind label %75

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %0, i64 168
  %54 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %49, ptr %54, align 8, !tbaa !46
  %55 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 0, ptr %55, align 4, !tbaa !47
  store i8 0, ptr %11, align 4, !tbaa !8
  store i8 0, ptr %12, align 1, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %0, i64 216
  store i32 0, ptr %56, align 8, !tbaa !48
  %57 = load i32, ptr %13, align 4, !tbaa !21
  %58 = load i32, ptr %53, align 8, !tbaa !49
  %59 = mul i32 %58, %57
  %60 = load i32, ptr %14, align 8, !tbaa !22
  %61 = add i32 %59, %60
  %62 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %61, ptr %62, align 4, !tbaa !50
  ret void

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

65:                                               ; preds = %47, %42, %37, %32, %10, %8
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %77

67:                                               ; preds = %30
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 120) #8
  br label %77

69:                                               ; preds = %35
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 120) #8
  br label %77

71:                                               ; preds = %40
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %39, i64 noundef 120) #8
  br label %77

73:                                               ; preds = %45
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %44, i64 noundef 120) #8
  br label %77

75:                                               ; preds = %50
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %49, i64 noundef 120) #8
  br label %77

77:                                               ; preds = %75, %73, %71, %69, %67, %65
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %66, %65 ], [ %74, %73 ], [ %72, %71 ], [ %70, %69 ], [ %68, %67 ]
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %78

78:                                               ; preds = %77, %63
  %.pn.pn = phi { ptr, i32 } [ %.pn, %77 ], [ %64, %63 ]
  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

declare void @_ZN17MultiplierOSStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36)) 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: 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !19, i64 220}
!9 = !{!"_ZTS12MultiplierOS", !10, i64 0, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !17, i64 176, !11, i64 216, !19, i64 220, !19, i64 221}
!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 = !{!"_ZTS17MultiplierOSStats", !18, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!18 = !{!"_ZTS5Stats"}
!19 = !{!"bool", !12, i64 0}
!20 = !{!9, !19, i64 221}
!21 = !{!9, !11, i64 132}
!22 = !{!9, !11, i64 136}
!23 = !{!24, !11, i64 40}
!24 = !{!"_ZTS6Config", !11, i64 0, !25, i64 4, !26, i64 8, !27, i64 24, !29, i64 40, !30, i64 64, !32, i64 72, !33, i64 96, !34, i64 104}
!25 = !{!"_ZTS15DSNetworkConfig", !11, i64 0}
!26 = !{!"_ZTS13DSwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!27 = !{!"_ZTS15MSNetworkConfig", !28, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!28 = !{!"_ZTS19MultiplierNetwork_t", !12, i64 0}
!29 = !{!"_ZTS13MSwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!30 = !{!"_ZTS15ASNetworkConfig", !31, i64 0, !11, i64 4}
!31 = !{!"_ZTS15ReduceNetwork_t", !12, i64 0}
!32 = !{!"_ZTS13ASwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!33 = !{!"_ZTS17LookUpTableConfig", !11, i64 0, !11, i64 4}
!34 = !{!"_ZTS14SDMemoryConfig", !35, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !36, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!35 = !{!"_ZTS18MemoryController_t", !12, i64 0}
!36 = !{!"_ZTS17MemoryHierarchy_t", !12, i64 0}
!37 = !{!9, !11, i64 128}
!38 = !{!24, !11, i64 44}
!39 = !{!9, !11, i64 144}
!40 = !{!11, !11, i64 0}
!41 = !{!9, !15, i64 48}
!42 = !{!9, !11, i64 156}
!43 = !{!9, !15, i64 72}
!44 = !{!9, !15, i64 64}
!45 = !{!9, !15, i64 56}
!46 = !{!9, !15, i64 80}
!47 = !{!9, !11, i64 172}
!48 = !{!9, !11, i64 216}
!49 = !{!9, !11, i64 168}
!50 = !{!9, !11, i64 140}


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