; LLVM IR from gem5/gem5 :: ext/mcpat/cacti/router.ll (ZN6RouterC2EdddPN19TechnologyParameter10DeviceTypeEddd)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6RouterC2EdddPN19TechnologyParameter10DeviceTypeEddd(ptr noundef nonnull align 8 dereferenceable(1320) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, double noundef %5, double noundef %6, double noundef %7) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store double %1, ptr %10, align 8, !tbaa !9
  store double %2, ptr %11, align 8, !tbaa !9
  store double %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store double %5, ptr %14, align 8, !tbaa !9
  store double %6, ptr %15, align 8, !tbaa !9
  store double %7, ptr %16, align 8, !tbaa !9
  %20 = load ptr, ptr %9, align 8
  call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %20)
  %21 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 1
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %21)
          to label %22 unwind label %106

22:                                               ; preds = %8
  %23 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 2
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %23)
          to label %24 unwind label %110

24:                                               ; preds = %22
  %25 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 3
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %25)
          to label %26 unwind label %114

26:                                               ; preds = %24
  %27 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 6
  %28 = load double, ptr %10, align 8, !tbaa !9
  store double %28, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 9
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %30, ptr %29, align 8, !tbaa !19
  %31 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 17
  %32 = load double, ptr %14, align 8, !tbaa !9
  store double %32, ptr %31, align 8, !tbaa !20
  %33 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 18
  %34 = load double, ptr %15, align 8, !tbaa !9
  store double %34, ptr %33, align 8, !tbaa !21
  %35 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 27
  %36 = load double, ptr %16, align 8, !tbaa !9
  store double %36, ptr %35, align 8, !tbaa !22
  %37 = load double, ptr %11, align 8, !tbaa !9
  %38 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 8
  store double %37, ptr %38, align 8, !tbaa !23
  %39 = load double, ptr %12, align 8, !tbaa !9
  %40 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 7
  store double %39, ptr %40, align 8, !tbaa !24
  %41 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 9
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds %"class.TechnologyParameter::DeviceType", ptr %42, i32 0, i32 19
  %44 = load double, ptr %43, align 8, !tbaa !25
  %45 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !27
  %46 = fmul double %44, %45
  %47 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 29
  store double %46, ptr %47, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %48 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.InputParameter, ptr %48, i32 0, i32 13
  %50 = load double, ptr %49, align 8, !tbaa !34
  store double %50, ptr %19, align 8, !tbaa !9
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.TechnologyParameter::DeviceType", ptr %51, i32 0, i32 9
  %53 = load double, ptr %52, align 8, !tbaa !38
  %54 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 28
  store double %53, ptr %54, align 8, !tbaa !39
  %55 = load double, ptr %19, align 8, !tbaa !9
  %56 = fmul double 1.000000e+01, %55
  %57 = fmul double %56, 0x3EB0C6F7A0B5ED8D
  %58 = fdiv double %57, 2.000000e+00
  %59 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 13
  store double %58, ptr %59, align 8, !tbaa !40
  %60 = load double, ptr %19, align 8, !tbaa !9
  %61 = fmul double 2.000000e+01, %60
  %62 = fmul double %61, 0x3EB0C6F7A0B5ED8D
  %63 = fdiv double %62, 2.000000e+00
  %64 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 14
  store double %63, ptr %64, align 8, !tbaa !41
  %65 = load double, ptr %19, align 8, !tbaa !9
  %66 = fmul double 1.500000e+01, %65
  %67 = fmul double %66, 0x3EB0C6F7A0B5ED8D
  %68 = fdiv double %67, 2.000000e+00
  %69 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 15
  store double %68, ptr %69, align 8, !tbaa !42
  %70 = load double, ptr %19, align 8, !tbaa !9
  %71 = fmul double 1.500000e+01, %70
  %72 = fmul double %71, 0x3EB0C6F7A0B5ED8D
  %73 = fdiv double %72, 2.000000e+00
  %74 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 16
  store double %73, ptr %74, align 8, !tbaa !43
  %75 = load double, ptr %19, align 8, !tbaa !9
  %76 = fmul double 1.250000e+01, %75
  %77 = fmul double %76, 0x3EB0C6F7A0B5ED8D
  %78 = fdiv double %77, 2.000000e+00
  %79 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 19
  store double %78, ptr %79, align 8, !tbaa !44
  %80 = load double, ptr %19, align 8, !tbaa !9
  %81 = fmul double 2.500000e+01, %80
  %82 = fmul double %81, 0x3EB0C6F7A0B5ED8D
  %83 = fdiv double %82, 2.000000e+00
  %84 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 20
  store double %83, ptr %84, align 8, !tbaa !45
  %85 = load double, ptr %19, align 8, !tbaa !9
  %86 = fmul double 6.000000e+01, %85
  %87 = fmul double %86, 0x3EB0C6F7A0B5ED8D
  %88 = fdiv double %87, 2.000000e+00
  %89 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 21
  store double %88, ptr %89, align 8, !tbaa !46
  %90 = load double, ptr %19, align 8, !tbaa !9
  %91 = fmul double 1.200000e+02, %90
  %92 = fmul double %91, 0x3EB0C6F7A0B5ED8D
  %93 = fdiv double %92, 2.000000e+00
  %94 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 22
  store double %93, ptr %94, align 8, !tbaa !47
  %95 = load double, ptr %19, align 8, !tbaa !9
  %96 = fmul double 6.000000e+01, %95
  %97 = fmul double %96, 0x3EB0C6F7A0B5ED8D
  %98 = fdiv double %97, 2.000000e+00
  %99 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 23
  store double %98, ptr %99, align 8, !tbaa !48
  %100 = load double, ptr %19, align 8, !tbaa !9
  %101 = fmul double 1.200000e+02, %100
  %102 = fmul double %101, 0x3EB0C6F7A0B5ED8D
  %103 = fdiv double %102, 2.000000e+00
  %104 = getelementptr inbounds %class.Router, ptr %20, i32 0, i32 24
  store double %103, ptr %104, align 8, !tbaa !49
  invoke void @_ZN6Router22calc_router_parametersEv(ptr noundef nonnull align 8 dereferenceable(1320) %20)
          to label %105 unwind label %118

105:                                              ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  ret void

106:                                              ; preds = %8
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %17, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %18, align 4
  br label %124

110:                                              ; preds = %22
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %17, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %18, align 4
  br label %123

114:                                              ; preds = %24
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %17, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %18, align 4
  br label %122

118:                                              ; preds = %26
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %17, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %25) #4
  br label %122

122:                                              ; preds = %118, %114
  call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %23) #4
  br label %123

123:                                              ; preds = %122, %110
  call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %21) #4
  br label %124

124:                                              ; preds = %123, %106
  call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %20) #4
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %17, align 8
  %127 = load i32, ptr %18, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

declare void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #1

declare void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #1

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) #2

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

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

; Function Attrs: nounwind
declare void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #3

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 1136}
!12 = !{!"_ZTS6Router", !13, i64 0, !13, i64 280, !13, i64 560, !13, i64 840, !10, i64 1120, !10, i64 1128, !10, i64 1136, !10, i64 1144, !10, i64 1152, !6, i64 1160, !10, i64 1168, !17, i64 1176, !18, 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}
!13 = !{!"_ZTS9Component", !14, i64 0, !15, i64 24, !15, i64 144, !10, i64 264, !10, i64 272}
!14 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"_ZTS8powerDef", !16, i64 0, !16, i64 40, !16, i64 80}
!16 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!17 = !{!"_ZTS9Wire_type", !7, i64 0}
!18 = !{!"_ZTS14Wire_placement", !7, i64 0}
!19 = !{!12, !6, i64 1160}
!20 = !{!12, !10, i64 1216}
!21 = !{!12, !10, i64 1224}
!22 = !{!12, !10, i64 1296}
!23 = !{!12, !10, i64 1152}
!24 = !{!12, !10, i64 1144}
!25 = !{!26, !10, i64 152}
!26 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !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}
!27 = !{!28, !10, i64 8}
!28 = !{!"_ZTS19TechnologyParameter", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !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, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !29, i64 352, !26, i64 360, !26, i64 528, !26, i64 696, !26, i64 864, !26, i64 1032, !30, i64 1200, !30, i64 1264, !30, i64 1328, !31, i64 1392, !32, i64 1416, !32, i64 1464, !32, i64 1512}
!29 = !{!"long", !7, i64 0}
!30 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!31 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !10, i64 0, !10, i64 8, !10, i64 16}
!32 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!33 = !{!12, !10, i64 1312}
!34 = !{!35, !10, i64 56}
!35 = !{!"_ZTS14InputParameter", !36, i64 0, !36, i64 4, !36, i64 8, !36, i64 12, !36, i64 16, !37, i64 20, !36, i64 24, !36, i64 28, !36, i64 32, !36, i64 36, !36, i64 40, !36, i64 44, !10, i64 48, !10, i64 56, !36, i64 64, !36, i64 68, !36, i64 72, !36, i64 76, !36, i64 80, !37, i64 84, !37, i64 85, !37, i64 86, !37, i64 87, !37, i64 88, !36, i64 92, !36, i64 96, !36, i64 100, !36, i64 104, !36, i64 108, !36, i64 112, !36, i64 116, !36, i64 120, !36, i64 124, !36, i64 128, !36, i64 132, !36, i64 136, !36, i64 140, !36, i64 144, !36, i64 148, !17, i64 152, !36, i64 156, !37, i64 160, !36, i64 164, !36, i64 168, !36, i64 172, !36, i64 176, !36, i64 180, !36, i64 184, !36, i64 188, !37, i64 192, !36, i64 196, !36, i64 200, !36, i64 204, !36, i64 208, !36, i64 212, !36, i64 216, !36, i64 220, !36, i64 224, !36, i64 228, !36, i64 232, !36, i64 236, !36, i64 240, !36, i64 244, !36, i64 248, !36, i64 252, !36, i64 256, !36, i64 260, !36, i64 264, !36, i64 268, !36, i64 272, !36, i64 276, !36, i64 280, !36, i64 284, !36, i64 288, !36, i64 292, !36, i64 296, !37, i64 300, !36, i64 304, !36, i64 308, !36, i64 312, !37, i64 316, !37, i64 317, !36, i64 320, !36, i64 324, !37, i64 328, !10, i64 336, !10, i64 344, !37, i64 352, !36, i64 356, !36, i64 360, !37, i64 364}
!36 = !{!"int", !7, i64 0}
!37 = !{!"bool", !7, i64 0}
!38 = !{!26, !10, i64 72}
!39 = !{!12, !10, i64 1304}
!40 = !{!12, !10, i64 1184}
!41 = !{!12, !10, i64 1192}
!42 = !{!12, !10, i64 1200}
!43 = !{!12, !10, i64 1208}
!44 = !{!12, !10, i64 1232}
!45 = !{!12, !10, i64 1240}
!46 = !{!12, !10, i64 1248}
!47 = !{!12, !10, i64 1256}
!48 = !{!12, !10, i64 1264}
!49 = !{!12, !10, i64 1272}


; 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 local_unnamed_addr global %class.TechnologyParameter, align 8
@g_ip = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6RouterC2EdddPN19TechnologyParameter10DeviceTypeEddd(ptr noundef nonnull align 8 dereferenceable(1320) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, double noundef %5, double noundef %6, double noundef %7) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0)
  %9 = getelementptr inbounds i8, ptr %0, i64 280
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %9)
          to label %10 unwind label %54

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 560
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %11)
          to label %12 unwind label %56

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 840
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %13)
          to label %14 unwind label %58

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 1136
  store double %1, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 1160
  store ptr %4, ptr %16, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 1216
  store double %5, ptr %17, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 1224
  store double %6, ptr %18, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %0, i64 1296
  store double %7, ptr %19, align 8, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %0, i64 1152
  store double %2, ptr %20, align 8, !tbaa !21
  %21 = getelementptr inbounds i8, ptr %0, i64 1144
  store double %3, ptr %21, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %4, i64 152
  %23 = load double, ptr %22, align 8, !tbaa !23
  %24 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !25
  %25 = fmul double %23, %24
  %26 = getelementptr inbounds i8, ptr %0, i64 1312
  store double %25, ptr %26, align 8, !tbaa !31
  %27 = load ptr, ptr @g_ip, align 8, !tbaa !32
  %28 = getelementptr inbounds i8, ptr %27, i64 56
  %29 = load double, ptr %28, align 8, !tbaa !33
  %30 = getelementptr inbounds i8, ptr %4, i64 72
  %31 = load double, ptr %30, align 8, !tbaa !37
  %32 = getelementptr inbounds i8, ptr %0, i64 1304
  store double %31, ptr %32, align 8, !tbaa !38
  %33 = getelementptr inbounds i8, ptr %0, i64 1184
  %34 = insertelement <2 x double> poison, double %29, i64 0
  %35 = shufflevector <2 x double> %34, <2 x double> poison, <2 x i32> zeroinitializer
  %36 = fmul <2 x double> %35, <double 1.000000e+01, double 2.000000e+01>
  %37 = fmul <2 x double> %36, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %38 = fmul <2 x double> %37, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %38, ptr %33, align 8, !tbaa !39
  %39 = fmul double %29, 1.500000e+01
  %40 = fmul double %39, 0x3EB0C6F7A0B5ED8D
  %41 = fmul double %40, 5.000000e-01
  %42 = getelementptr inbounds i8, ptr %0, i64 1200
  store double %41, ptr %42, align 8, !tbaa !40
  %43 = getelementptr inbounds i8, ptr %0, i64 1208
  store double %41, ptr %43, align 8, !tbaa !41
  %44 = getelementptr inbounds i8, ptr %0, i64 1232
  %45 = fmul <2 x double> %35, <double 1.250000e+01, double 2.500000e+01>
  %46 = fmul <2 x double> %45, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %47 = fmul <2 x double> %46, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %47, ptr %44, align 8, !tbaa !39
  %48 = getelementptr inbounds i8, ptr %0, i64 1248
  %49 = fmul <2 x double> %35, <double 6.000000e+01, double 1.200000e+02>
  %50 = fmul <2 x double> %49, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %51 = fmul <2 x double> %50, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %51, ptr %48, align 8, !tbaa !39
  %52 = getelementptr inbounds i8, ptr %0, i64 1264
  store <2 x double> %51, ptr %52, align 8, !tbaa !39
  invoke void @_ZN6Router22calc_router_parametersEv(ptr noundef nonnull align 8 dereferenceable(1320) %0)
          to label %53 unwind label %60

53:                                               ; preds = %14
  ret void

54:                                               ; preds = %8
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %64

56:                                               ; preds = %10
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %63

58:                                               ; preds = %12
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

60:                                               ; preds = %14
  %61 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %13) #3
  br label %62

62:                                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  tail call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %11) #3
  br label %63

63:                                               ; preds = %62, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %57, %56 ]
  tail call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %9) #3
  br label %64

64:                                               ; preds = %63, %54
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %55, %54 ]
  tail call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) #3
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #1

declare void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280)) 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 = { "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 = { 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 #3 = { 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, !9, i64 1136}
!6 = !{!"_ZTS6Router", !7, i64 0, !7, i64 280, !7, i64 560, !7, i64 840, !9, i64 1120, !9, i64 1128, !9, i64 1136, !9, i64 1144, !9, i64 1152, !14, i64 1160, !9, i64 1168, !15, i64 1176, !16, i64 1180, !9, i64 1184, !9, i64 1192, !9, i64 1200, !9, i64 1208, !9, i64 1216, !9, i64 1224, !9, i64 1232, !9, i64 1240, !9, i64 1248, !9, i64 1256, !9, i64 1264, !9, i64 1272, !9, i64 1280, !9, i64 1288, !9, i64 1296, !9, i64 1304, !9, i64 1312}
!7 = !{!"_ZTS9Component", !8, i64 0, !12, i64 24, !12, i64 144, !9, i64 264, !9, i64 272}
!8 = !{!"_ZTS4Area", !9, i64 0, !9, i64 8, !9, i64 16}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS8powerDef", !13, i64 0, !13, i64 40, !13, i64 80}
!13 = !{!"_ZTS15powerComponents", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!"_ZTS9Wire_type", !10, i64 0}
!16 = !{!"_ZTS14Wire_placement", !10, i64 0}
!17 = !{!6, !14, i64 1160}
!18 = !{!6, !9, i64 1216}
!19 = !{!6, !9, i64 1224}
!20 = !{!6, !9, i64 1296}
!21 = !{!6, !9, i64 1152}
!22 = !{!6, !9, i64 1144}
!23 = !{!24, !9, i64 152}
!24 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160}
!25 = !{!26, !9, i64 8}
!26 = !{!"_ZTS19TechnologyParameter", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160, !9, i64 168, !9, i64 176, !9, i64 184, !9, i64 192, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !9, i64 296, !9, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !27, i64 352, !24, i64 360, !24, i64 528, !24, i64 696, !24, i64 864, !24, i64 1032, !28, i64 1200, !28, i64 1264, !28, i64 1328, !29, i64 1392, !30, i64 1416, !30, i64 1464, !30, i64 1512}
!27 = !{!"long", !10, i64 0}
!28 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56}
!29 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!30 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}
!31 = !{!6, !9, i64 1312}
!32 = !{!14, !14, i64 0}
!33 = !{!34, !9, i64 56}
!34 = !{!"_ZTS14InputParameter", !35, i64 0, !35, i64 4, !35, i64 8, !35, i64 12, !35, i64 16, !36, i64 20, !35, i64 24, !35, i64 28, !35, i64 32, !35, i64 36, !35, i64 40, !35, i64 44, !9, i64 48, !9, i64 56, !35, i64 64, !35, i64 68, !35, i64 72, !35, i64 76, !35, i64 80, !36, i64 84, !36, i64 85, !36, i64 86, !36, i64 87, !36, i64 88, !35, i64 92, !35, i64 96, !35, i64 100, !35, i64 104, !35, i64 108, !35, i64 112, !35, i64 116, !35, i64 120, !35, i64 124, !35, i64 128, !35, i64 132, !35, i64 136, !35, i64 140, !35, i64 144, !35, i64 148, !15, i64 152, !35, i64 156, !36, i64 160, !35, i64 164, !35, i64 168, !35, i64 172, !35, i64 176, !35, i64 180, !35, i64 184, !35, i64 188, !36, i64 192, !35, i64 196, !35, i64 200, !35, i64 204, !35, i64 208, !35, i64 212, !35, i64 216, !35, i64 220, !35, i64 224, !35, i64 228, !35, i64 232, !35, i64 236, !35, i64 240, !35, i64 244, !35, i64 248, !35, i64 252, !35, i64 256, !35, i64 260, !35, i64 264, !35, i64 268, !35, i64 272, !35, i64 276, !35, i64 280, !35, i64 284, !35, i64 288, !35, i64 292, !35, i64 296, !36, i64 300, !35, i64 304, !35, i64 308, !35, i64 312, !36, i64 316, !36, i64 317, !35, i64 320, !35, i64 324, !36, i64 328, !9, i64 336, !9, i64 344, !36, i64 352, !35, i64 356, !35, i64 360, !36, i64 364}
!35 = !{!"int", !10, i64 0}
!36 = !{!"bool", !10, i64 0}
!37 = !{!24, !9, i64 72}
!38 = !{!6, !9, i64 1304}
!39 = !{!9, !9, i64 0}
!40 = !{!6, !9, i64 1200}
!41 = !{!6, !9, i64 1208}


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