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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AccumulatorC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE6Configj(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, ptr noundef %2, ptr noundef byval(%class.Config) align 8 %3, i32 noundef %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 %4, 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 %61

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 @_ZTV11Accumulator, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !11
  %16 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 15
  invoke void @_ZN12ASwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(44) %16)
          to label %17 unwind label %65

17:                                               ; preds = %15
  %18 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 21
  invoke void @_ZN16AccumulatorStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %19 unwind label %65

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

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

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

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

55:                                               ; preds = %52
  %56 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 8
  store ptr %51, ptr %56, align 8, !tbaa !50
  %57 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 14
  store i32 0, ptr %57, align 4, !tbaa !51
  %58 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 18
  store i32 0, ptr %58, align 4, !tbaa !52
  %59 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 17
  store i32 0, ptr %59, align 8, !tbaa !53
  %60 = getelementptr inbounds %class.Accumulator, ptr %13, i32 0, i32 9
  store i32 0, ptr %60, align 8, !tbaa !54
  ret void

61:                                               ; preds = %5
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %78

65:                                               ; preds = %49, %19, %17, %15
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  br label %77

69:                                               ; preds = %46
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %45, i64 noundef 120) #8
  br label %77

73:                                               ; preds = %52
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %51, i64 noundef 120) #8
  br label %77

77:                                               ; preds = %73, %69, %65
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #6
  br label %78

78:                                               ; preds = %77, %61
  %79 = load ptr, ptr %11, align 8
  %80 = load i32, ptr %12, align 4
  %81 = insertvalue { ptr, i32 } poison, ptr %79, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %80, 1
  resume { ptr, i32 } %82
}

; 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 @_ZN12ASwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #2

declare void @_ZN16AccumulatorStatsC1Ev(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, !10, i64 184}
!14 = !{!"_ZTS11Accumulator", !15, i64 0, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !6, i64 72, !6, i64 80, !19, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !20, i64 120, !6, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !22, i64 192}
!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 = !{!"_ZTS16adderoperation_t", !7, i64 0}
!20 = !{!"_ZTS12ASwitchStats", !21, 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}
!21 = !{!"_ZTS5Stats"}
!22 = !{!"_ZTS16AccumulatorStats", !21, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!23 = !{!24, !10, i64 76}
!24 = !{!"_ZTS6Config", !10, 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", !10, i64 0}
!26 = !{!"_ZTS13DSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!27 = !{!"_ZTS15MSNetworkConfig", !28, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!28 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!29 = !{!"_ZTS13MSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!30 = !{!"_ZTS15ASNetworkConfig", !31, i64 0, !10, i64 4}
!31 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!32 = !{!"_ZTS13ASwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!33 = !{!"_ZTS17LookUpTableConfig", !10, i64 0, !10, i64 4}
!34 = !{!"_ZTS14SDMemoryConfig", !35, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !36, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!35 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!36 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!37 = !{!14, !10, i64 48}
!38 = !{!24, !10, i64 80}
!39 = !{!14, !10, i64 52}
!40 = !{!24, !10, i64 72}
!41 = !{!14, !10, i64 56}
!42 = !{!24, !10, i64 88}
!43 = !{!14, !10, i64 60}
!44 = !{!24, !10, i64 92}
!45 = !{!14, !10, i64 112}
!46 = !{!14, !10, i64 92}
!47 = !{!14, !6, i64 96}
!48 = !{!14, !6, i64 104}
!49 = !{!14, !6, i64 72}
!50 = !{!14, !6, i64 80}
!51 = !{!14, !10, i64 116}
!52 = !{!14, !10, i64 180}
!53 = !{!14, !10, i64 176}
!54 = !{!14, !19, i64 88}


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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11AccumulatorC2EjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE6Configj(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, ptr noundef nonnull %2, ptr nocapture noundef readonly byval(%class.Config) align 8 %3, i32 noundef %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 %39

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 @_ZTV11Accumulator, i64 16), ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 120
  invoke void @_ZN12ASwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(44) %8)
          to label %9 unwind label %41

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 192
  invoke void @_ZN16AccumulatorStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(36) %10)
          to label %11 unwind label %41

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 %4, ptr %12, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %3, i64 72
  %14 = getelementptr inbounds i8, ptr %3, i64 76
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = load <2 x i32>, ptr %14, align 4, !tbaa !21
  store <2 x i32> %16, ptr %15, align 8, !tbaa !21
  %17 = load i32, ptr %13, align 8, !tbaa !22
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %17, ptr %18, align 8, !tbaa !36
  %19 = getelementptr inbounds i8, ptr %3, i64 88
  %20 = load i32, ptr %19, align 8, !tbaa !37
  %21 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %20, ptr %21, align 4, !tbaa !38
  %22 = getelementptr inbounds i8, ptr %3, i64 92
  %23 = load i32, ptr %22, align 4, !tbaa !39
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %23, ptr %24, align 8, !tbaa !40
  %25 = getelementptr inbounds i8, ptr %0, i64 92
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %25, i8 0, i64 20, i1 false)
  %26 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %27 unwind label %41

27:                                               ; preds = %11
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %26, i32 noundef %17)
          to label %28 unwind label %43

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %26, ptr %29, align 8, !tbaa !41
  %30 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %31 unwind label %41

31:                                               ; preds = %28
  %32 = load i32, ptr %18, align 8, !tbaa !36
  invoke void @_ZN4FifoC1Ej(ptr noundef nonnull align 8 dereferenceable(120) %30, i32 noundef %32)
          to label %33 unwind label %45

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %30, ptr %34, align 8, !tbaa !42
  %35 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 0, ptr %35, align 4, !tbaa !43
  %36 = getelementptr inbounds i8, ptr %0, i64 180
  store i32 0, ptr %36, align 4, !tbaa !44
  %37 = getelementptr inbounds i8, ptr %0, i64 176
  store i32 0, ptr %37, align 8, !tbaa !45
  %38 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 0, ptr %38, align 8, !tbaa !46
  ret void

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

41:                                               ; preds = %28, %11, %9, %7
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %47

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

45:                                               ; preds = %31
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %30, i64 noundef 120) #9
  br label %47

47:                                               ; preds = %45, %43, %41
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %42, %41 ], [ %44, %43 ]
  call void @_ZN4UnitD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %48

48:                                               ; preds = %47, %39
  %.pn.pn = phi { ptr, i32 } [ %.pn, %47 ], [ %40, %39 ]
  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 @_ZN12ASwitchStatsC1Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #2

declare void @_ZN16AccumulatorStatsC1Ev(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

; 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 184}
!9 = !{!"_ZTS11Accumulator", !10, i64 0, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !15, i64 72, !15, i64 80, !17, i64 88, !11, i64 92, !15, i64 96, !15, i64 104, !11, i64 112, !11, i64 116, !18, i64 120, !15, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !20, i64 192}
!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 = !{!"_ZTS16adderoperation_t", !12, i64 0}
!18 = !{!"_ZTS12ASwitchStats", !19, 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}
!19 = !{!"_ZTS5Stats"}
!20 = !{!"_ZTS16AccumulatorStats", !19, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !11, i64 72}
!23 = !{!"_ZTS6Config", !11, i64 0, !24, i64 4, !25, i64 8, !26, i64 24, !28, i64 40, !29, i64 64, !31, i64 72, !32, i64 96, !33, i64 104}
!24 = !{!"_ZTS15DSNetworkConfig", !11, i64 0}
!25 = !{!"_ZTS13DSwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!26 = !{!"_ZTS15MSNetworkConfig", !27, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!27 = !{!"_ZTS19MultiplierNetwork_t", !12, i64 0}
!28 = !{!"_ZTS13MSwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!29 = !{!"_ZTS15ASNetworkConfig", !30, i64 0, !11, i64 4}
!30 = !{!"_ZTS15ReduceNetwork_t", !12, i64 0}
!31 = !{!"_ZTS13ASwitchConfig", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!32 = !{!"_ZTS17LookUpTableConfig", !11, i64 0, !11, i64 4}
!33 = !{!"_ZTS14SDMemoryConfig", !34, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !35, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!34 = !{!"_ZTS18MemoryController_t", !12, i64 0}
!35 = !{!"_ZTS17MemoryHierarchy_t", !12, i64 0}
!36 = !{!9, !11, i64 56}
!37 = !{!23, !11, i64 88}
!38 = !{!9, !11, i64 60}
!39 = !{!23, !11, i64 92}
!40 = !{!9, !11, i64 112}
!41 = !{!9, !15, i64 72}
!42 = !{!9, !15, i64 80}
!43 = !{!9, !11, i64 116}
!44 = !{!9, !11, i64 180}
!45 = !{!9, !11, i64 176}
!46 = !{!9, !17, i64 88}


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