; LLVM IR from gem5/gem5 :: ext/mcpat/noc.ll (ZN13OnChipNetwork11init_routerEv)

; 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.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }
%class.OnChipNetwork = type { %class.McPATComponent, ptr, ptr, %class.Component, i32, %class.InputParameter, double, double, double, double, %class.OnChipNetworkParameters, %class.OnChipNetworkStatistics, %class.uca_org_t, %class.statsDef, i8, i8, %"class.std::__cxx11::basic_string" }
%class.McPATComponent = type { ptr, %class.Component, ptr, %class.InputParameter, %"class.std::__cxx11::basic_string", double, %"class.std::vector", %class.McPATOutput, %class.statsDef, %class.statsDef, %class.powerDef, %class.powerDef }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl" }
%"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl" = type { %"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.McPATOutput = type { double, double, double, double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%class.InputParameter = type { i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i8, i8, i32, i32, i8, double, double, i8, i32, i32, i8 }
%class.OnChipNetworkParameters = type { double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i8, i8, double, double, double, i32 }
%class.OnChipNetworkStatistics = type { double, double }
%class.uca_org_t = type { ptr, ptr, double, double, double, double, %class.powerDef, double, double, double, [100 x i8], double, i8, %struct.results_mem_array, %struct.results_mem_array }
%struct.results_mem_array = type { i32, i32, double, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%class.statsDef = type { %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents }
%class.statsComponents = type { double, double, double }
%"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.Router = type { %class.Component, %class.Component, %class.Component, %class.Component, double, double, double, double, double, ptr, double, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

@g_tp = external global %class.TechnologyParameter, align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13OnChipNetwork11init_routerEv(ptr noundef nonnull align 8 dereferenceable(10600) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1320) #7
  %8 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %9 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %8, i32 0, i32 1
  %10 = load i32, ptr %9, align 8, !tbaa !9
  %11 = sitofp i32 %10 to double
  %12 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %13 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %12, i32 0, i32 6
  %14 = load i32, ptr %13, align 4, !tbaa !35
  %15 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %16 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %15, i32 0, i32 7
  %17 = load i32, ptr %16, align 8, !tbaa !36
  %18 = mul nsw i32 %14, %17
  %19 = sitofp i32 %18 to double
  %20 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %21 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %21, align 4, !tbaa !35
  %23 = sitofp i32 %22 to double
  %24 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %25 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 4, !tbaa !37
  %27 = sitofp i32 %26 to double
  %28 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %29 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %28, i32 0, i32 3
  %30 = load i32, ptr %29, align 8, !tbaa !38
  %31 = sitofp i32 %30 to double
  %32 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %33 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %32, i32 0, i32 17
  %34 = load double, ptr %33, align 8, !tbaa !39
  invoke void @_ZN6RouterC1EdddPN19TechnologyParameter10DeviceTypeEddd(ptr noundef nonnull align 8 dereferenceable(1320) %7, double noundef %11, double noundef %19, double noundef %23, ptr noundef getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), double noundef %27, double noundef %31, double noundef %34)
          to label %35 unwind label %111

35:                                               ; preds = %1
  %36 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  store ptr %7, ptr %36, align 8, !tbaa !40
  %37 = getelementptr inbounds i8, ptr %6, i64 8
  %38 = getelementptr inbounds %class.Component, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = getelementptr inbounds %class.Component, ptr %39, i32 0, i32 0
  %41 = call noundef double @_ZNK4Area8get_areaEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !40
  %44 = getelementptr inbounds %class.Component, ptr %43, i32 0, i32 0
  %45 = call noundef double @_ZNK4Area8get_areaEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  %46 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 10
  %47 = getelementptr inbounds %class.OnChipNetworkParameters, ptr %46, i32 0, i32 10
  %48 = load i32, ptr %47, align 4, !tbaa !41
  %49 = sitofp i32 %48 to double
  %50 = call double @llvm.fmuladd.f64(double %45, double %49, double %41)
  call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %38, double noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %51 = call noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 1, i32 noundef 1)
  store double %51, ptr %5, align 8, !tbaa !42
  %52 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !40
  %54 = getelementptr inbounds %class.Component, ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds %class.powerDef, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %class.powerComponents, ptr %55, i32 0, i32 1
  %57 = load double, ptr %56, align 8, !tbaa !43
  %58 = load double, ptr %5, align 8, !tbaa !42
  %59 = fmul double %57, %58
  %60 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !40
  %62 = getelementptr inbounds %class.Component, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %class.powerDef, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %class.powerComponents, ptr %63, i32 0, i32 4
  store double %59, ptr %64, align 8, !tbaa !44
  %65 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !40
  %67 = getelementptr inbounds %class.Router, ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds %class.Component, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds %class.powerDef, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %class.powerComponents, ptr %69, i32 0, i32 1
  %71 = load double, ptr %70, align 8, !tbaa !45
  %72 = load double, ptr %5, align 8, !tbaa !42
  %73 = fmul double %71, %72
  %74 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !40
  %76 = getelementptr inbounds %class.Router, ptr %75, i32 0, i32 3
  %77 = getelementptr inbounds %class.Component, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %class.powerDef, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %class.powerComponents, ptr %78, i32 0, i32 4
  store double %73, ptr %79, align 8, !tbaa !48
  %80 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !40
  %82 = getelementptr inbounds %class.Router, ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %class.Component, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds %class.powerDef, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %class.powerComponents, ptr %84, i32 0, i32 1
  %86 = load double, ptr %85, align 8, !tbaa !49
  %87 = load double, ptr %5, align 8, !tbaa !42
  %88 = fmul double %86, %87
  %89 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !40
  %91 = getelementptr inbounds %class.Router, ptr %90, i32 0, i32 2
  %92 = getelementptr inbounds %class.Component, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %class.powerDef, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %class.powerComponents, ptr %93, i32 0, i32 4
  store double %88, ptr %94, align 8, !tbaa !50
  %95 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !40
  %97 = getelementptr inbounds %class.Router, ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds %class.Component, ptr %97, i32 0, i32 1
  %99 = getelementptr inbounds %class.powerDef, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %class.powerComponents, ptr %99, i32 0, i32 1
  %101 = load double, ptr %100, align 8, !tbaa !51
  %102 = load double, ptr %5, align 8, !tbaa !42
  %103 = fmul double %101, %102
  %104 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !40
  %106 = getelementptr inbounds %class.Router, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds %class.Component, ptr %106, i32 0, i32 1
  %108 = getelementptr inbounds %class.powerDef, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %class.powerComponents, ptr %108, i32 0, i32 4
  store double %103, ptr %109, align 8, !tbaa !52
  %110 = getelementptr inbounds %class.OnChipNetwork, ptr %6, i32 0, i32 15
  store i8 1, ptr %110, align 1, !tbaa !53
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret void

111:                                              ; preds = %1
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %3, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %7, i64 noundef 1320) #9
  br label %115

115:                                              ; preds = %111
  %116 = load ptr, ptr %3, align 8
  %117 = load i32, ptr %4, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

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

declare void @_ZN6RouterC1EdddPN19TechnologyParameter10DeviceTypeEddd(ptr noundef nonnull align 8 dereferenceable(1320), double noundef, double noundef, double noundef, ptr noundef, double noundef, double noundef, double noundef) unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4Area8get_areaEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

declare noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 2064}
!10 = !{!"_ZTS13OnChipNetwork", !11, i64 0, !6, i64 1352, !6, i64 1360, !12, i64 1368, !18, i64 1648, !17, i64 1656, !14, i64 2024, !14, i64 2032, !14, i64 2040, !14, i64 2048, !31, i64 2056, !32, i64 2176, !33, i64 2192, !29, i64 10392, !19, i64 10560, !19, i64 10561, !21, i64 10568}
!11 = !{!"_ZTS14McPATComponent", !12, i64 8, !6, i64 288, !17, i64 296, !21, i64 664, !14, i64 696, !24, i64 704, !28, i64 728, !29, i64 776, !29, i64 944, !15, i64 1112, !15, i64 1232}
!12 = !{!"_ZTS9Component", !13, i64 0, !15, i64 24, !15, i64 144, !14, i64 264, !14, i64 272}
!13 = !{!"_ZTS4Area", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTS8powerDef", !16, i64 0, !16, i64 40, !16, i64 80}
!16 = !{!"_ZTS15powerComponents", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!17 = !{!"_ZTS14InputParameter", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !19, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !14, i64 48, !14, i64 56, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !18, i64 80, !19, i64 84, !19, i64 85, !19, i64 86, !19, i64 87, !19, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !20, i64 152, !18, i64 156, !19, i64 160, !18, i64 164, !18, i64 168, !18, i64 172, !18, i64 176, !18, i64 180, !18, i64 184, !18, i64 188, !19, i64 192, !18, i64 196, !18, i64 200, !18, i64 204, !18, i64 208, !18, i64 212, !18, i64 216, !18, i64 220, !18, i64 224, !18, i64 228, !18, i64 232, !18, i64 236, !18, i64 240, !18, i64 244, !18, i64 248, !18, i64 252, !18, i64 256, !18, i64 260, !18, i64 264, !18, i64 268, !18, i64 272, !18, i64 276, !18, i64 280, !18, i64 284, !18, i64 288, !18, i64 292, !18, i64 296, !19, i64 300, !18, i64 304, !18, i64 308, !18, i64 312, !19, i64 316, !19, i64 317, !18, i64 320, !18, i64 324, !19, i64 328, !14, i64 336, !14, i64 344, !19, i64 352, !18, i64 356, !18, i64 360, !19, i64 364}
!18 = !{!"int", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTS9Wire_type", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTS11McPATOutput", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40}
!29 = !{!"_ZTS8statsDef", !30, i64 0, !30, i64 24, !30, i64 48, !30, i64 72, !30, i64 96, !30, i64 120, !30, i64 144}
!30 = !{!"_ZTS15statsComponents", !14, i64 0, !14, i64 8, !14, i64 16}
!31 = !{!"_ZTS23OnChipNetworkParameters", !14, i64 0, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !19, i64 80, !19, i64 81, !14, i64 88, !14, i64 96, !14, i64 104, !18, i64 112}
!32 = !{!"_ZTS23OnChipNetworkStatistics", !14, i64 0, !14, i64 8}
!33 = !{!"_ZTS9uca_org_t", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !15, i64 48, !14, i64 168, !14, i64 176, !14, i64 184, !7, i64 192, !14, i64 296, !19, i64 304, !34, i64 312, !34, i64 4256}
!34 = !{!"_ZTS17results_mem_array", !18, i64 0, !18, i64 4, !14, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !15, i64 272, !15, i64 392, !15, i64 512, !15, i64 632, !15, i64 752, !15, i64 872, !15, i64 992, !15, i64 1112, !15, i64 1232, !15, i64 1352, !15, i64 1472, !15, i64 1592, !15, i64 1712, !15, i64 1832, !15, i64 1952, !15, i64 2072, !15, i64 2192, !15, i64 2312, !15, i64 2432, !15, i64 2552, !15, i64 2672, !15, i64 2792, !15, i64 2912, !15, i64 3032, !15, i64 3152, !15, i64 3272, !15, i64 3392, !15, i64 3512, !15, i64 3632, !14, i64 3752, !14, i64 3760, !14, i64 3768, !14, i64 3776, !14, i64 3784, !14, i64 3792, !14, i64 3800, !14, i64 3808, !14, i64 3816, !14, i64 3824, !14, i64 3832, !14, i64 3840, !14, i64 3848, !14, i64 3856, !14, i64 3864, !14, i64 3872, !14, i64 3880, !14, i64 3888, !14, i64 3896, !14, i64 3904, !14, i64 3912, !14, i64 3920, !14, i64 3928, !14, i64 3936}
!35 = !{!10, !18, i64 2084}
!36 = !{!10, !18, i64 2088}
!37 = !{!10, !18, i64 2068}
!38 = !{!10, !18, i64 2072}
!39 = !{!10, !14, i64 2144}
!40 = !{!10, !6, i64 1352}
!41 = !{!10, !18, i64 2100}
!42 = !{!14, !14, i64 0}
!43 = !{!12, !14, i64 32}
!44 = !{!12, !14, i64 56}
!45 = !{!46, !14, i64 872}
!46 = !{!"_ZTS6Router", !12, i64 0, !12, i64 280, !12, i64 560, !12, i64 840, !14, i64 1120, !14, i64 1128, !14, i64 1136, !14, i64 1144, !14, i64 1152, !6, i64 1160, !14, i64 1168, !20, i64 1176, !47, i64 1180, !14, i64 1184, !14, i64 1192, !14, i64 1200, !14, i64 1208, !14, i64 1216, !14, i64 1224, !14, i64 1232, !14, i64 1240, !14, i64 1248, !14, i64 1256, !14, i64 1264, !14, i64 1272, !14, i64 1280, !14, i64 1288, !14, i64 1296, !14, i64 1304, !14, i64 1312}
!47 = !{!"_ZTS14Wire_placement", !7, i64 0}
!48 = !{!46, !14, i64 896}
!49 = !{!46, !14, i64 592}
!50 = !{!46, !14, i64 616}
!51 = !{!46, !14, i64 312}
!52 = !{!46, !14, i64 336}
!53 = !{!10, !19, i64 10561}


; 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.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }

@g_tp = external global %class.TechnologyParameter, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13OnChipNetwork11init_routerEv(ptr noundef nonnull align 8 dereferenceable(10600) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = tail call noalias noundef nonnull dereferenceable(1320) ptr @_Znwm(i64 noundef 1320) #6
  %3 = getelementptr inbounds i8, ptr %0, i64 2064
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = sitofp i32 %4 to double
  %6 = getelementptr inbounds i8, ptr %0, i64 2084
  %7 = load i32, ptr %6, align 4, !tbaa !34
  %8 = getelementptr inbounds i8, ptr %0, i64 2088
  %9 = load i32, ptr %8, align 8, !tbaa !35
  %10 = mul nsw i32 %9, %7
  %11 = sitofp i32 %10 to double
  %12 = sitofp i32 %7 to double
  %13 = getelementptr inbounds i8, ptr %0, i64 2068
  %14 = load i32, ptr %13, align 4, !tbaa !36
  %15 = sitofp i32 %14 to double
  %16 = getelementptr inbounds i8, ptr %0, i64 2072
  %17 = load i32, ptr %16, align 8, !tbaa !37
  %18 = sitofp i32 %17 to double
  %19 = getelementptr inbounds i8, ptr %0, i64 2144
  %20 = load double, ptr %19, align 8, !tbaa !38
  invoke void @_ZN6RouterC1EdddPN19TechnologyParameter10DeviceTypeEddd(ptr noundef nonnull align 8 dereferenceable(1320) %2, double noundef %5, double noundef %11, double noundef %12, ptr noundef nonnull getelementptr inbounds (i8, ptr @g_tp, i64 864), double noundef %15, double noundef %18, double noundef %20)
          to label %21 unwind label %50

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 1352
  store ptr %2, ptr %22, align 8, !tbaa !39
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = tail call noundef double @_ZNK4Area8get_areaEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %25 = load ptr, ptr %22, align 8, !tbaa !39
  %26 = tail call noundef double @_ZNK4Area8get_areaEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  %27 = getelementptr inbounds i8, ptr %0, i64 2100
  %28 = load i32, ptr %27, align 4, !tbaa !40
  %29 = sitofp i32 %28 to double
  %30 = tail call double @llvm.fmuladd.f64(double %26, double %29, double %24)
  tail call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %23, double noundef %30)
  %31 = tail call noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 1, i32 noundef 1)
  %32 = load ptr, ptr %22, align 8, !tbaa !39
  %33 = getelementptr inbounds i8, ptr %32, i64 32
  %34 = load double, ptr %33, align 8, !tbaa !41
  %35 = fmul double %31, %34
  %36 = getelementptr inbounds i8, ptr %32, i64 56
  store double %35, ptr %36, align 8, !tbaa !42
  %37 = getelementptr inbounds i8, ptr %32, i64 872
  %38 = load double, ptr %37, align 8, !tbaa !43
  %39 = fmul double %31, %38
  %40 = getelementptr inbounds i8, ptr %32, i64 896
  store double %39, ptr %40, align 8, !tbaa !46
  %41 = getelementptr inbounds i8, ptr %32, i64 592
  %42 = load double, ptr %41, align 8, !tbaa !47
  %43 = fmul double %31, %42
  %44 = getelementptr inbounds i8, ptr %32, i64 616
  store double %43, ptr %44, align 8, !tbaa !48
  %45 = getelementptr inbounds i8, ptr %32, i64 312
  %46 = load double, ptr %45, align 8, !tbaa !49
  %47 = fmul double %31, %46
  %48 = getelementptr inbounds i8, ptr %32, i64 336
  store double %47, ptr %48, align 8, !tbaa !50
  %49 = getelementptr inbounds i8, ptr %0, i64 10561
  store i8 1, ptr %49, align 1, !tbaa !51
  ret void

50:                                               ; preds = %1
  %51 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %2, i64 noundef 1320) #7
  resume { ptr, i32 } %51
}

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

declare void @_ZN6RouterC1EdddPN19TechnologyParameter10DeviceTypeEddd(ptr noundef nonnull align 8 dereferenceable(1320), double noundef, double noundef, double noundef, ptr noundef, double noundef, double noundef, double noundef) unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4Area8get_areaEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

declare noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef, i32 noundef) local_unnamed_addr #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 = { 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 #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 nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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, !17, i64 2064}
!6 = !{!"_ZTS13OnChipNetwork", !7, i64 0, !15, i64 1352, !15, i64 1360, !8, i64 1368, !17, i64 1648, !16, i64 1656, !10, i64 2024, !10, i64 2032, !10, i64 2040, !10, i64 2048, !30, i64 2056, !31, i64 2176, !32, i64 2192, !28, i64 10392, !18, i64 10560, !18, i64 10561, !20, i64 10568}
!7 = !{!"_ZTS14McPATComponent", !8, i64 8, !15, i64 288, !16, i64 296, !20, i64 664, !10, i64 696, !23, i64 704, !27, i64 728, !28, i64 776, !28, i64 944, !13, i64 1112, !13, i64 1232}
!8 = !{!"_ZTS9Component", !9, i64 0, !13, i64 24, !13, i64 144, !10, i64 264, !10, i64 272}
!9 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!10 = !{!"double", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTS8powerDef", !14, i64 0, !14, i64 40, !14, i64 80}
!14 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!15 = !{!"any pointer", !11, i64 0}
!16 = !{!"_ZTS14InputParameter", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !18, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !10, i64 48, !10, i64 56, !17, i64 64, !17, i64 68, !17, i64 72, !17, i64 76, !17, i64 80, !18, i64 84, !18, i64 85, !18, i64 86, !18, i64 87, !18, i64 88, !17, i64 92, !17, i64 96, !17, i64 100, !17, i64 104, !17, i64 108, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136, !17, i64 140, !17, i64 144, !17, i64 148, !19, i64 152, !17, i64 156, !18, i64 160, !17, i64 164, !17, i64 168, !17, i64 172, !17, i64 176, !17, i64 180, !17, i64 184, !17, i64 188, !18, i64 192, !17, i64 196, !17, i64 200, !17, i64 204, !17, i64 208, !17, i64 212, !17, i64 216, !17, i64 220, !17, i64 224, !17, i64 228, !17, i64 232, !17, i64 236, !17, i64 240, !17, i64 244, !17, i64 248, !17, i64 252, !17, i64 256, !17, i64 260, !17, i64 264, !17, i64 268, !17, i64 272, !17, i64 276, !17, i64 280, !17, i64 284, !17, i64 288, !17, i64 292, !17, i64 296, !18, i64 300, !17, i64 304, !17, i64 308, !17, i64 312, !18, i64 316, !18, i64 317, !17, i64 320, !17, i64 324, !18, i64 328, !10, i64 336, !10, i64 344, !18, i64 352, !17, i64 356, !17, i64 360, !18, i64 364}
!17 = !{!"int", !11, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTS9Wire_type", !11, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !11, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!22 = !{!"long", !11, i64 0}
!23 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!27 = !{!"_ZTS11McPATOutput", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!28 = !{!"_ZTS8statsDef", !29, i64 0, !29, i64 24, !29, i64 48, !29, i64 72, !29, i64 96, !29, i64 120, !29, i64 144}
!29 = !{!"_ZTS15statsComponents", !10, i64 0, !10, i64 8, !10, i64 16}
!30 = !{!"_ZTS23OnChipNetworkParameters", !10, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !18, i64 80, !18, i64 81, !10, i64 88, !10, i64 96, !10, i64 104, !17, i64 112}
!31 = !{!"_ZTS23OnChipNetworkStatistics", !10, i64 0, !10, i64 8}
!32 = !{!"_ZTS9uca_org_t", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !10, i64 168, !10, i64 176, !10, i64 184, !11, i64 192, !10, i64 296, !18, i64 304, !33, i64 312, !33, i64 4256}
!33 = !{!"_ZTS17results_mem_array", !17, i64 0, !17, i64 4, !10, i64 8, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !13, i64 272, !13, i64 392, !13, i64 512, !13, i64 632, !13, i64 752, !13, i64 872, !13, i64 992, !13, i64 1112, !13, i64 1232, !13, i64 1352, !13, i64 1472, !13, i64 1592, !13, i64 1712, !13, i64 1832, !13, i64 1952, !13, i64 2072, !13, i64 2192, !13, i64 2312, !13, i64 2432, !13, i64 2552, !13, i64 2672, !13, i64 2792, !13, i64 2912, !13, i64 3032, !13, i64 3152, !13, i64 3272, !13, i64 3392, !13, i64 3512, !13, i64 3632, !10, i64 3752, !10, i64 3760, !10, i64 3768, !10, i64 3776, !10, i64 3784, !10, i64 3792, !10, i64 3800, !10, i64 3808, !10, i64 3816, !10, i64 3824, !10, i64 3832, !10, i64 3840, !10, i64 3848, !10, i64 3856, !10, i64 3864, !10, i64 3872, !10, i64 3880, !10, i64 3888, !10, i64 3896, !10, i64 3904, !10, i64 3912, !10, i64 3920, !10, i64 3928, !10, i64 3936}
!34 = !{!6, !17, i64 2084}
!35 = !{!6, !17, i64 2088}
!36 = !{!6, !17, i64 2068}
!37 = !{!6, !17, i64 2072}
!38 = !{!6, !10, i64 2144}
!39 = !{!6, !15, i64 1352}
!40 = !{!6, !17, i64 2100}
!41 = !{!8, !10, i64 32}
!42 = !{!8, !10, i64 56}
!43 = !{!44, !10, i64 872}
!44 = !{!"_ZTS6Router", !8, i64 0, !8, i64 280, !8, i64 560, !8, i64 840, !10, i64 1120, !10, i64 1128, !10, i64 1136, !10, i64 1144, !10, i64 1152, !15, i64 1160, !10, i64 1168, !19, i64 1176, !45, i64 1180, !10, i64 1184, !10, i64 1192, !10, i64 1200, !10, i64 1208, !10, i64 1216, !10, i64 1224, !10, i64 1232, !10, i64 1240, !10, i64 1248, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !10, i64 1288, !10, i64 1296, !10, i64 1304, !10, i64 1312}
!45 = !{!"_ZTS14Wire_placement", !11, i64 0}
!46 = !{!44, !10, i64 896}
!47 = !{!44, !10, i64 592}
!48 = !{!44, !10, i64 616}
!49 = !{!44, !10, i64 312}
!50 = !{!44, !10, i64 336}
!51 = !{!6, !18, i64 10561}


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