; LLVM IR from gem5/gem5 :: ext/mcpat/interconnect.ll (ZN12Interconnect13computeEnergyEv)

; 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.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%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.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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<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.statsDef = type { %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents }
%class.statsComponents = type { double, double, double }
%class.Interconnect = type { %class.McPATComponent, i32, double, double, %class.InputParameter, %class.uca_org_t, %class.Area, double, %class.powerDef, double, double, double, double, i32, i32, double, double, i32, double, double, double, double, double, i8, i8, double, double, i8, i32, i8, double, i32, ptr, %class.InterconnectParameters, %class.InterconnectStatistics }
%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.InterconnectParameters = type { double }
%class.InterconnectStatistics = type { double, double }

@__const._ZN12Interconnect13computeEnergyEv.pppm_t = external hidden unnamed_addr constant [4 x double], align 16

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12Interconnect13computeEnergyEv(ptr noundef nonnull align 8 dereferenceable(10288) %0) unnamed_addr #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [4 x double], align 16
  %4 = alloca %class.powerDef, align 8
  %5 = alloca %class.powerDef, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const._ZN12Interconnect13computeEnergyEv.pppm_t, i64 32, i1 false)
  %7 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 10
  call void @_ZN8powerDef5resetEv(ptr noundef nonnull align 8 dereferenceable(120) %7)
  %8 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
  %9 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 33
  %10 = getelementptr inbounds %class.InterconnectParameters, ptr %9, i32 0, i32 0
  %11 = load double, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 34
  %13 = getelementptr inbounds %class.InterconnectStatistics, ptr %12, i32 0, i32 0
  %14 = load double, ptr %13, align 8, !tbaa !37
  %15 = fmul double %11, %14
  %16 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 33
  %17 = getelementptr inbounds %class.InterconnectParameters, ptr %16, i32 0, i32 0
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 33
  %20 = getelementptr inbounds %class.InterconnectParameters, ptr %19, i32 0, i32 0
  %21 = load double, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 33
  %23 = getelementptr inbounds %class.InterconnectParameters, ptr %22, i32 0, i32 0
  %24 = load double, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 34
  %26 = getelementptr inbounds %class.InterconnectStatistics, ptr %25, i32 0, i32 0
  %27 = load double, ptr %26, align 8, !tbaa !37
  %28 = fmul double %24, %27
  call void @_Z8set_pppmPddddd(ptr noundef %8, double noundef %15, double noundef %18, double noundef %21, double noundef %28)
  call void @llvm.lifetime.start.p0(i64 120, ptr %4) #5
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  %30 = getelementptr inbounds %class.Component, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
  call void @_ZmlRK8powerDefPKd(ptr dead_on_unwind writable sret(%class.powerDef) align 8 %4, ptr noundef nonnull align 8 dereferenceable(120) %30, ptr noundef %31)
  %32 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 10
  %33 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN8powerDefaSEOS_(ptr noundef nonnull align 8 dereferenceable(120) %32, ptr noundef nonnull align 8 dereferenceable(120) %4)
  call void @llvm.lifetime.end.p0(i64 120, ptr %4) #5
  %34 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 11
  call void @_ZN8powerDef5resetEv(ptr noundef nonnull align 8 dereferenceable(120) %34)
  %35 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
  %36 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 34
  %37 = getelementptr inbounds %class.InterconnectStatistics, ptr %36, i32 0, i32 1
  %38 = load double, ptr %37, align 8, !tbaa !38
  %39 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 33
  %40 = getelementptr inbounds %class.InterconnectParameters, ptr %39, i32 0, i32 0
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 33
  %43 = getelementptr inbounds %class.InterconnectParameters, ptr %42, i32 0, i32 0
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds %class.Interconnect, ptr %6, i32 0, i32 34
  %46 = getelementptr inbounds %class.InterconnectStatistics, ptr %45, i32 0, i32 1
  %47 = load double, ptr %46, align 8, !tbaa !38
  call void @_Z8set_pppmPddddd(ptr noundef %35, double noundef %38, double noundef %41, double noundef %44, double noundef %47)
  call void @llvm.lifetime.start.p0(i64 120, ptr %5) #5
  %48 = getelementptr inbounds i8, ptr %6, i64 8
  %49 = getelementptr inbounds %class.Component, ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
  call void @_ZmlRK8powerDefPKd(ptr dead_on_unwind writable sret(%class.powerDef) align 8 %5, ptr noundef nonnull align 8 dereferenceable(120) %49, ptr noundef %50)
  %51 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 11
  %52 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN8powerDefaSEOS_(ptr noundef nonnull align 8 dereferenceable(120) %51, ptr noundef nonnull align 8 dereferenceable(120) %5)
  call void @llvm.lifetime.end.p0(i64 120, ptr %5) #5
  %53 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 10
  %54 = getelementptr inbounds %class.powerDef, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %class.powerComponents, ptr %54, i32 0, i32 0
  %56 = load double, ptr %55, align 8, !tbaa !39
  %57 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 5
  %58 = load double, ptr %57, align 8, !tbaa !40
  %59 = fmul double %56, %58
  %60 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 7
  %61 = getelementptr inbounds %class.McPATOutput, ptr %60, i32 0, i32 2
  store double %59, ptr %61, align 8, !tbaa !41
  %62 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 10
  %63 = getelementptr inbounds %class.powerDef, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %class.powerComponents, ptr %63, i32 0, i32 1
  %65 = load double, ptr %64, align 8, !tbaa !42
  %66 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 7
  %67 = getelementptr inbounds %class.McPATOutput, ptr %66, i32 0, i32 3
  store double %65, ptr %67, align 8, !tbaa !43
  %68 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 10
  %69 = getelementptr inbounds %class.powerDef, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %class.powerComponents, ptr %69, i32 0, i32 2
  %71 = load double, ptr %70, align 8, !tbaa !44
  %72 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 7
  %73 = getelementptr inbounds %class.McPATOutput, ptr %72, i32 0, i32 4
  store double %71, ptr %73, align 8, !tbaa !45
  %74 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 11
  %75 = getelementptr inbounds %class.powerDef, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %class.powerComponents, ptr %75, i32 0, i32 0
  %77 = load double, ptr %76, align 8, !tbaa !46
  %78 = getelementptr inbounds %class.McPATComponent, ptr %6, i32 0, i32 7
  %79 = getelementptr inbounds %class.McPATOutput, ptr %78, i32 0, i32 5
  store double %77, ptr %79, align 8, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8powerDef5resetEv(ptr noundef nonnull align 8 dereferenceable(120)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8set_pppmPddddd(ptr noundef, double noundef, double noundef, double noundef, double noundef) #3

declare void @_ZmlRK8powerDefPKd(ptr dead_on_unwind writable sret(%class.powerDef) align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN8powerDefaSEOS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #3 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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, !14, i64 10264}
!10 = !{!"_ZTS12Interconnect", !11, i64 0, !31, i64 1352, !14, i64 1360, !14, i64 1368, !17, i64 1376, !32, i64 1744, !13, i64 9944, !14, i64 9968, !15, i64 9976, !14, i64 10096, !14, i64 10104, !14, i64 10112, !14, i64 10120, !18, i64 10128, !20, i64 10132, !14, i64 10136, !14, i64 10144, !18, i64 10152, !14, i64 10160, !14, i64 10168, !14, i64 10176, !14, i64 10184, !14, i64 10192, !19, i64 10200, !19, i64 10201, !14, i64 10208, !14, i64 10216, !19, i64 10224, !34, i64 10228, !19, i64 10232, !14, i64 10240, !18, i64 10248, !6, i64 10256, !35, i64 10264, !36, i64 10272}
!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 = !{!"_ZTS9Device_ty", !7, i64 0}
!32 = !{!"_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, !33, i64 312, !33, i64 4256}
!33 = !{!"_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}
!34 = !{!"_ZTS9Core_type", !7, i64 0}
!35 = !{!"_ZTS22InterconnectParameters", !14, i64 0}
!36 = !{!"_ZTS22InterconnectStatistics", !14, i64 0, !14, i64 8}
!37 = !{!10, !14, i64 10272}
!38 = !{!10, !14, i64 10280}
!39 = !{!11, !14, i64 1112}
!40 = !{!11, !14, i64 696}
!41 = !{!11, !14, i64 744}
!42 = !{!11, !14, i64 1120}
!43 = !{!11, !14, i64 752}
!44 = !{!11, !14, i64 1128}
!45 = !{!11, !14, i64 760}
!46 = !{!11, !14, i64 1232}
!47 = !{!11, !14, i64 768}


; 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.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }

@__const._ZN12Interconnect13computeEnergyEv.pppm_t = external hidden unnamed_addr constant [4 x double], align 16

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12Interconnect13computeEnergyEv(ptr noundef nonnull align 8 dereferenceable(10288) %0) unnamed_addr #2 align 2 {
  %2 = alloca [4 x double], align 16
  %3 = alloca %class.powerDef, align 8
  %4 = alloca %class.powerDef, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) @__const._ZN12Interconnect13computeEnergyEv.pppm_t, i64 32, i1 false)
  %5 = getelementptr inbounds i8, ptr %0, i64 1112
  tail call void @_ZN8powerDef5resetEv(ptr noundef nonnull align 8 dereferenceable(120) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 10264
  %7 = load double, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 10272
  %9 = load double, ptr %8, align 8, !tbaa !36
  %10 = fmul double %7, %9
  call void @_Z8set_pppmPddddd(ptr noundef nonnull %2, double noundef %10, double noundef %7, double noundef %7, double noundef %10)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  call void @_ZmlRK8powerDefPKd(ptr dead_on_unwind nonnull writable sret(%class.powerDef) align 8 %3, ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull %2)
  %12 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN8powerDefaSEOS_(ptr noundef nonnull align 8 dereferenceable(120) %5, ptr noundef nonnull align 8 dereferenceable(120) %3)
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 1232
  call void @_ZN8powerDef5resetEv(ptr noundef nonnull align 8 dereferenceable(120) %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 10280
  %15 = load double, ptr %14, align 8, !tbaa !37
  %16 = load double, ptr %6, align 8, !tbaa !5
  call void @_Z8set_pppmPddddd(ptr noundef nonnull %2, double noundef %15, double noundef %16, double noundef %16, double noundef %15)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #5
  call void @_ZmlRK8powerDefPKd(ptr dead_on_unwind nonnull writable sret(%class.powerDef) align 8 %4, ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull %2)
  %17 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN8powerDefaSEOS_(ptr noundef nonnull align 8 dereferenceable(120) %13, ptr noundef nonnull align 8 dereferenceable(120) %4)
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #5
  %18 = load double, ptr %5, align 8, !tbaa !38
  %19 = getelementptr inbounds i8, ptr %0, i64 696
  %20 = load double, ptr %19, align 8, !tbaa !39
  %21 = fmul double %18, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 744
  store double %21, ptr %22, align 8, !tbaa !40
  %23 = getelementptr inbounds i8, ptr %0, i64 1120
  %24 = getelementptr inbounds i8, ptr %0, i64 752
  %25 = load <2 x double>, ptr %23, align 8, !tbaa !41
  store <2 x double> %25, ptr %24, align 8, !tbaa !41
  %26 = load double, ptr %13, align 8, !tbaa !42
  %27 = getelementptr inbounds i8, ptr %0, i64 768
  store double %26, ptr %27, align 8, !tbaa !43
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8powerDef5resetEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8set_pppmPddddd(ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #3

declare void @_ZmlRK8powerDefPKd(ptr dead_on_unwind writable sret(%class.powerDef) align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN8powerDefaSEOS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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, !10, i64 10264}
!6 = !{!"_ZTS12Interconnect", !7, i64 0, !30, i64 1352, !10, i64 1360, !10, i64 1368, !16, i64 1376, !31, i64 1744, !9, i64 9944, !10, i64 9968, !13, i64 9976, !10, i64 10096, !10, i64 10104, !10, i64 10112, !10, i64 10120, !17, i64 10128, !19, i64 10132, !10, i64 10136, !10, i64 10144, !17, i64 10152, !10, i64 10160, !10, i64 10168, !10, i64 10176, !10, i64 10184, !10, i64 10192, !18, i64 10200, !18, i64 10201, !10, i64 10208, !10, i64 10216, !18, i64 10224, !33, i64 10228, !18, i64 10232, !10, i64 10240, !17, i64 10248, !15, i64 10256, !34, i64 10264, !35, i64 10272}
!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 = !{!"_ZTS9Device_ty", !11, i64 0}
!31 = !{!"_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, !32, i64 312, !32, i64 4256}
!32 = !{!"_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}
!33 = !{!"_ZTS9Core_type", !11, i64 0}
!34 = !{!"_ZTS22InterconnectParameters", !10, i64 0}
!35 = !{!"_ZTS22InterconnectStatistics", !10, i64 0, !10, i64 8}
!36 = !{!6, !10, i64 10272}
!37 = !{!6, !10, i64 10280}
!38 = !{!7, !10, i64 1112}
!39 = !{!7, !10, i64 696}
!40 = !{!7, !10, i64 744}
!41 = !{!10, !10, i64 0}
!42 = !{!7, !10, i64 1232}
!43 = !{!7, !10, i64 768}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass