; LLVM IR from gem5/gem5 :: ext/mcpat/cacti/wire.ll (ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE)

; 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.Wire = type { %class.Component, i32, double, double, i32, double, double, double, double, double, i32, double, double, double, %"class.std::__cxx11::list", %class.Component, %class.Component, %class.Component, double, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%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 }

@g_tp = external global %class.TechnologyParameter, align 8
@_ZN4Wire11initializedE = external dso_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZN4Wire15wire_width_initE = external dso_local global double, align 8
@_ZN4Wire17wire_spacing_initE = external dso_local global double, align 8
@__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE = external hidden unnamed_addr constant [91 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listI9ComponentSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseI9ComponentSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

18:                                               ; preds = %6
  %19 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 16
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %19)
          to label %20 unwind label %48

20:                                               ; preds = %18
  %21 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 17
  invoke void @_ZN9ComponentC1Ev(ptr noundef nonnull align 8 dereferenceable(280) %21)
          to label %22 unwind label %52

22:                                               ; preds = %20
  %23 = load double, ptr %8, align 8, !tbaa !9
  %24 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 11
  store double %23, ptr %24, align 8, !tbaa !13
  %25 = load double, ptr %9, align 8, !tbaa !9
  %26 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 12
  store double %25, ptr %26, align 8, !tbaa !27
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 19
  store ptr %27, ptr %28, align 8, !tbaa !28
  %29 = load i32, ptr %10, align 4, !tbaa !11
  %30 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 4
  store i32 %29, ptr %30, align 8, !tbaa !29
  %31 = load double, ptr %11, align 8, !tbaa !9
  %32 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 13
  store double %31, ptr %32, align 8, !tbaa !30
  %33 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 19
  %34 = load ptr, ptr %33, align 8, !tbaa !28
  %35 = getelementptr inbounds %"class.TechnologyParameter::DeviceType", ptr %34, i32 0, i32 19
  %36 = load double, ptr %35, align 8, !tbaa !31
  %37 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !33
  %38 = fmul double %36, %37
  %39 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 18
  store double %38, ptr %39, align 8, !tbaa !38
  %40 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 8
  store double 0.000000e+00, ptr %40, align 8, !tbaa !39
  %41 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 9
  store double 0.000000e+00, ptr %41, align 8, !tbaa !40
  %42 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !29
  switch i32 %43, label %62 [
    i32 0, label %56
    i32 1, label %59
  ]

44:                                               ; preds = %6
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %13, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %14, align 4
  br label %121

48:                                               ; preds = %18
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %13, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %14, align 4
  br label %120

52:                                               ; preds = %20
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %13, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %14, align 4
  br label %119

56:                                               ; preds = %22
  %57 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), align 8, !tbaa !41
  %58 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 3
  store double %57, ptr %58, align 8, !tbaa !42
  br label %65

59:                                               ; preds = %22
  %60 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), align 8, !tbaa !43
  %61 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 3
  store double %60, ptr %61, align 8, !tbaa !42
  br label %65

62:                                               ; preds = %22
  %63 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), align 8, !tbaa !44
  %64 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 3
  store double %63, ptr %64, align 8, !tbaa !42
  br label %65

65:                                               ; preds = %62, %59, %56
  %66 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 3
  %67 = load double, ptr %66, align 8, !tbaa !42
  %68 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 2
  store double %67, ptr %68, align 8, !tbaa !45
  %69 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 11
  %70 = load double, ptr %69, align 8, !tbaa !13
  %71 = fmul double %70, 0x3EB0C6F7A0B5ED8D
  %72 = fdiv double %71, 2.000000e+00
  %73 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 3
  %74 = load double, ptr %73, align 8, !tbaa !42
  %75 = fmul double %74, %72
  store double %75, ptr %73, align 8, !tbaa !42
  %76 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 12
  %77 = load double, ptr %76, align 8, !tbaa !27
  %78 = fmul double %77, 0x3EB0C6F7A0B5ED8D
  %79 = fdiv double %78, 2.000000e+00
  %80 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 2
  %81 = load double, ptr %80, align 8, !tbaa !45
  %82 = fmul double %81, %79
  store double %82, ptr %80, align 8, !tbaa !45
  store i32 1, ptr @_ZN4Wire11initializedE, align 4, !tbaa !46
  invoke void @_ZN4Wire9init_wireEv(ptr noundef nonnull align 8 dereferenceable(1264) %15)
          to label %83 unwind label %95

83:                                               ; preds = %65
  %84 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 3
  %85 = load double, ptr %84, align 8, !tbaa !42
  store double %85, ptr @_ZN4Wire15wire_width_initE, align 8, !tbaa !9
  %86 = getelementptr inbounds %class.Wire, ptr %15, i32 0, i32 2
  %87 = load double, ptr %86, align 8, !tbaa !45
  store double %87, ptr @_ZN4Wire17wire_spacing_initE, align 8, !tbaa !9
  %88 = getelementptr inbounds %class.Component, ptr %15, i32 0, i32 1
  %89 = getelementptr inbounds %class.powerDef, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %class.powerComponents, ptr %89, i32 0, i32 0
  %91 = load double, ptr %90, align 8, !tbaa !47
  %92 = fcmp ogt double %91, 0.000000e+00
  br i1 %92, label %93, label %94

93:                                               ; preds = %83
  br label %100

94:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 115, ptr noundef @__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE) #6
  unreachable

95:                                               ; preds = %65
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %13, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %14, align 4
  call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %21) #5
  br label %119

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %93
  %101 = getelementptr inbounds %class.Component, ptr %15, i32 0, i32 1
  %102 = getelementptr inbounds %class.powerDef, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %class.powerComponents, ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !48
  %105 = fcmp ogt double %104, 0.000000e+00
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  br label %109

107:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 116, ptr noundef @__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE) #6
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  %110 = getelementptr inbounds %class.Component, ptr %15, i32 0, i32 1
  %111 = getelementptr inbounds %class.powerDef, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %class.powerComponents, ptr %111, i32 0, i32 2
  %113 = load double, ptr %112, align 8, !tbaa !49
  %114 = fcmp ogt double %113, 0.000000e+00
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  br label %118

116:                                              ; preds = %109
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 117, ptr noundef @__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE) #6
  unreachable

117:                                              ; No predecessors!
  br label %118

118:                                              ; preds = %117, %115
  ret void

119:                                              ; preds = %95, %52
  call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %19) #5
  br label %120

120:                                              ; preds = %119, %48
  call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %17) #5
  br label %121

121:                                              ; preds = %120, %44
  call void @_ZNSt7__cxx1110_List_baseI9ComponentSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %15) #5
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %13, align 8
  %124 = load i32, ptr %14, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126
}

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn 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 "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 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 = { nounwind }
attributes #6 = { noreturn 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, !12, i64 0}
!12 = !{!"_ZTS14Wire_placement", !7, i64 0}
!13 = !{!14, !10, i64 360}
!14 = !{!"_ZTS4Wire", !15, i64 0, !19, i64 280, !10, i64 288, !10, i64 296, !12, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !20, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !21, i64 384, !15, i64 408, !15, i64 688, !15, i64 968, !10, i64 1248, !6, i64 1256}
!15 = !{!"_ZTS9Component", !16, i64 0, !17, i64 24, !17, i64 144, !10, i64 264, !10, i64 272}
!16 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTS8powerDef", !18, i64 0, !18, i64 40, !18, i64 80}
!18 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!19 = !{!"_ZTS9Wire_type", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !22, i64 0}
!22 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !23, i64 0}
!23 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail17_List_node_headerE", !25, i64 0, !26, i64 16}
!25 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!26 = !{!"long", !7, i64 0}
!27 = !{!14, !10, i64 368}
!28 = !{!14, !6, i64 1256}
!29 = !{!14, !12, i64 304}
!30 = !{!14, !10, i64 376}
!31 = !{!32, !10, i64 152}
!32 = !{!"_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}
!33 = !{!34, !10, i64 8}
!34 = !{!"_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, !26, i64 352, !32, i64 360, !32, i64 528, !32, i64 696, !32, i64 864, !32, i64 1032, !35, i64 1200, !35, i64 1264, !35, i64 1328, !36, i64 1392, !37, i64 1416, !37, i64 1464, !37, i64 1512}
!35 = !{!"_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}
!36 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !10, i64 0, !10, i64 8, !10, i64 16}
!37 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!38 = !{!14, !10, i64 1248}
!39 = !{!14, !10, i64 336}
!40 = !{!14, !10, i64 344}
!41 = !{!34, !10, i64 1328}
!42 = !{!14, !10, i64 296}
!43 = !{!34, !10, i64 1264}
!44 = !{!34, !10, i64 1200}
!45 = !{!14, !10, i64 288}
!46 = !{!20, !20, i64 0}
!47 = !{!15, !10, i64 24}
!48 = !{!15, !10, i64 32}
!49 = !{!15, !10, i64 40}


; 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
@_ZN4Wire11initializedE = external dso_local local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZN4Wire15wire_width_initE = external dso_local local_unnamed_addr global double, align 8
@_ZN4Wire17wire_spacing_initE = external dso_local local_unnamed_addr global double, align 8
@__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE = external hidden unnamed_addr constant [91 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listI9ComponentSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseI9ComponentSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

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

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

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 360
  store double %1, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 368
  store double %2, ptr %15, align 8, !tbaa !24
  %16 = getelementptr inbounds i8, ptr %0, i64 1256
  store ptr %5, ptr %16, align 8, !tbaa !25
  %17 = getelementptr inbounds i8, ptr %0, i64 304
  store i32 %3, ptr %17, align 8, !tbaa !26
  %18 = getelementptr inbounds i8, ptr %0, i64 376
  store double %4, ptr %18, align 8, !tbaa !27
  %19 = getelementptr inbounds i8, ptr %5, i64 152
  %20 = load double, ptr %19, align 8, !tbaa !28
  %21 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !30
  %22 = fmul double %20, %21
  %23 = getelementptr inbounds i8, ptr %0, i64 1248
  store double %22, ptr %23, align 8, !tbaa !35
  %24 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  %switch.selectcmp = icmp eq i32 %3, 1
  %switch.select = select i1 %switch.selectcmp, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1264), ptr getelementptr inbounds (i8, ptr @g_tp, i64 1200)
  %switch.selectcmp14 = icmp eq i32 %3, 0
  %switch.select15 = select i1 %switch.selectcmp14, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1328), ptr %switch.select
  %25 = load double, ptr %switch.select15, align 8, !tbaa !36
  %26 = getelementptr inbounds i8, ptr %0, i64 288
  %27 = insertelement <2 x double> poison, double %2, i64 0
  %28 = insertelement <2 x double> %27, double %1, i64 1
  %29 = fmul <2 x double> %28, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %30 = fmul <2 x double> %29, <double 5.000000e-01, double 5.000000e-01>
  %31 = insertelement <2 x double> poison, double %25, i64 0
  %32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> zeroinitializer
  %33 = fmul <2 x double> %30, %32
  store <2 x double> %33, ptr %26, align 8, !tbaa !36
  store i32 1, ptr @_ZN4Wire11initializedE, align 4, !tbaa !37
  invoke void @_ZN4Wire9init_wireEv(ptr noundef nonnull align 8 dereferenceable(1264) %0)
          to label %40 unwind label %48

34:                                               ; preds = %6
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %63

36:                                               ; preds = %9
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %62

38:                                               ; preds = %11
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %61

40:                                               ; preds = %13
  %41 = getelementptr inbounds i8, ptr %0, i64 296
  %42 = load double, ptr %41, align 8, !tbaa !38
  store double %42, ptr @_ZN4Wire15wire_width_initE, align 8, !tbaa !36
  %43 = load double, ptr %26, align 8, !tbaa !39
  store double %43, ptr @_ZN4Wire17wire_spacing_initE, align 8, !tbaa !36
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load double, ptr %44, align 8, !tbaa !40
  %46 = fcmp ogt double %45, 0.000000e+00
  br i1 %46, label %50, label %47

47:                                               ; preds = %40
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 115, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE) #7
  unreachable

48:                                               ; preds = %13
  %49 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %12) #6
  br label %61

50:                                               ; preds = %40
  %51 = getelementptr inbounds i8, ptr %0, i64 32
  %52 = load double, ptr %51, align 8, !tbaa !41
  %53 = fcmp ogt double %52, 0.000000e+00
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 116, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE) #7
  unreachable

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %0, i64 40
  %57 = load double, ptr %56, align 8, !tbaa !42
  %58 = fcmp ogt double %57, 0.000000e+00
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 117, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4WireC2Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE) #7
  unreachable

60:                                               ; preds = %55
  ret void

61:                                               ; preds = %48, %38
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %39, %38 ]
  tail call void @_ZN9ComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(280) %10) #6
  br label %62

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

63:                                               ; preds = %62, %34
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %62 ], [ %35, %34 ]
  tail call void @_ZNSt7__cxx1110_List_baseI9ComponentSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  tail call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn 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 "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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 360}
!6 = !{!"_ZTS4Wire", !7, i64 0, !14, i64 280, !9, i64 288, !9, i64 296, !15, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !16, i64 352, !9, i64 360, !9, i64 368, !9, i64 376, !17, i64 384, !7, i64 408, !7, i64 688, !7, i64 968, !9, i64 1248, !22, i64 1256}
!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 = !{!"_ZTS9Wire_type", !10, i64 0}
!15 = !{!"_ZTS14Wire_placement", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail17_List_node_headerE", !21, i64 0, !23, i64 16}
!21 = !{!"_ZTSNSt8__detail15_List_node_baseE", !22, i64 0, !22, i64 8}
!22 = !{!"any pointer", !10, i64 0}
!23 = !{!"long", !10, i64 0}
!24 = !{!6, !9, i64 368}
!25 = !{!6, !22, i64 1256}
!26 = !{!6, !15, i64 304}
!27 = !{!6, !9, i64 376}
!28 = !{!29, !9, i64 152}
!29 = !{!"_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}
!30 = !{!31, !9, i64 8}
!31 = !{!"_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, !23, i64 352, !29, i64 360, !29, i64 528, !29, i64 696, !29, i64 864, !29, i64 1032, !32, i64 1200, !32, i64 1264, !32, i64 1328, !33, i64 1392, !34, i64 1416, !34, i64 1464, !34, i64 1512}
!32 = !{!"_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}
!33 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!34 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}
!35 = !{!6, !9, i64 1248}
!36 = !{!9, !9, i64 0}
!37 = !{!16, !16, i64 0}
!38 = !{!6, !9, i64 296}
!39 = !{!6, !9, i64 288}
!40 = !{!7, !9, i64 24}
!41 = !{!7, !9, i64 32}
!42 = !{!7, !9, i64 40}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass