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

; 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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN4Wire8wire_capEdb(ptr noundef nonnull align 8 dereferenceable(1264) %0, double noundef %1, i1 noundef zeroext %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca i8, align 1
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %6, align 1, !tbaa !11
  %18 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store double 8.854200e-12, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %19 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 4
  %20 = load i32, ptr %19, align 8, !tbaa !13
  switch i32 %20, label %33 [
    i32 0, label %21
    i32 1, label %27
  ]

21:                                               ; preds = %3
  %22 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), i32 0, i32 5), align 8, !tbaa !28
  store double %22, ptr %12, align 8, !tbaa !9
  %23 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), i32 0, i32 3), align 8, !tbaa !34
  store double %23, ptr %13, align 8, !tbaa !9
  %24 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), i32 0, i32 4), align 8, !tbaa !35
  store double %24, ptr %14, align 8, !tbaa !9
  %25 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), i32 0, i32 6), align 8, !tbaa !36
  store double %25, ptr %15, align 8, !tbaa !9
  %26 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), i32 0, i32 7), align 8, !tbaa !37
  store double %26, ptr %16, align 8, !tbaa !9
  br label %39

27:                                               ; preds = %3
  %28 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), i32 0, i32 5), align 8, !tbaa !38
  store double %28, ptr %12, align 8, !tbaa !9
  %29 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), i32 0, i32 3), align 8, !tbaa !39
  store double %29, ptr %13, align 8, !tbaa !9
  %30 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), i32 0, i32 4), align 8, !tbaa !40
  store double %30, ptr %14, align 8, !tbaa !9
  %31 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), i32 0, i32 6), align 8, !tbaa !41
  store double %31, ptr %15, align 8, !tbaa !9
  %32 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), i32 0, i32 7), align 8, !tbaa !42
  store double %32, ptr %16, align 8, !tbaa !9
  br label %39

33:                                               ; preds = %3
  %34 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), i32 0, i32 5), align 8, !tbaa !43
  store double %34, ptr %12, align 8, !tbaa !9
  %35 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), i32 0, i32 3), align 8, !tbaa !44
  store double %35, ptr %13, align 8, !tbaa !9
  %36 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), i32 0, i32 4), align 8, !tbaa !45
  store double %36, ptr %14, align 8, !tbaa !9
  %37 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), i32 0, i32 6), align 8, !tbaa !46
  store double %37, ptr %15, align 8, !tbaa !9
  %38 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::InterconnectType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), i32 0, i32 7), align 8, !tbaa !47
  store double %38, ptr %16, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %33, %27, %21
  %40 = load i8, ptr %6, align 1, !tbaa !11, !range !48, !noundef !49
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %49

42:                                               ; preds = %39
  %43 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 3
  %44 = load double, ptr %43, align 8, !tbaa !50
  %45 = fmul double %44, 0x3EB0C6F7A0B5ED8D
  store double %45, ptr %43, align 8, !tbaa !50
  %46 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 2
  %47 = load double, ptr %46, align 8, !tbaa !51
  %48 = fmul double %47, 0x3EB0C6F7A0B5ED8D
  store double %48, ptr %46, align 8, !tbaa !51
  br label %49

49:                                               ; preds = %42, %39
  %50 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 3
  %51 = load double, ptr %50, align 8, !tbaa !50
  %52 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 11
  %53 = load double, ptr %52, align 8, !tbaa !52
  %54 = fdiv double %51, %53
  %55 = load double, ptr %12, align 8, !tbaa !9
  %56 = fmul double %54, %55
  store double %56, ptr %10, align 8, !tbaa !9
  %57 = load double, ptr %15, align 8, !tbaa !9
  %58 = load double, ptr %13, align 8, !tbaa !9
  %59 = fmul double %57, %58
  %60 = load double, ptr %10, align 8, !tbaa !9
  %61 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 2
  %62 = load double, ptr %61, align 8, !tbaa !51
  %63 = fdiv double %60, %62
  %64 = fmul double %59, %63
  %65 = load double, ptr %11, align 8, !tbaa !9
  %66 = fmul double %64, %65
  store double %66, ptr %7, align 8, !tbaa !9
  %67 = load double, ptr %15, align 8, !tbaa !9
  %68 = load double, ptr %14, align 8, !tbaa !9
  %69 = fmul double %67, %68
  %70 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 3
  %71 = load double, ptr %70, align 8, !tbaa !50
  %72 = fmul double %69, %71
  %73 = load double, ptr %16, align 8, !tbaa !9
  %74 = fmul double %73, 0x3EB0C6F7A0B5ED8D
  %75 = fdiv double %72, %74
  %76 = load double, ptr %11, align 8, !tbaa !9
  %77 = fmul double %75, %76
  store double %77, ptr %8, align 8, !tbaa !9
  %78 = load double, ptr %7, align 8, !tbaa !9
  %79 = load double, ptr %8, align 8, !tbaa !9
  %80 = fadd double %78, %79
  %81 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 43), align 8, !tbaa !53
  %82 = call double @llvm.fmuladd.f64(double %81, double 1.000000e+06, double %80)
  store double %82, ptr %9, align 8, !tbaa !9
  %83 = load i8, ptr %6, align 1, !tbaa !11, !range !48, !noundef !49
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %92

85:                                               ; preds = %49
  %86 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 3
  %87 = load double, ptr %86, align 8, !tbaa !50
  %88 = fmul double %87, 1.000000e+06
  store double %88, ptr %86, align 8, !tbaa !50
  %89 = getelementptr inbounds %class.Wire, ptr %18, i32 0, i32 2
  %90 = load double, ptr %89, align 8, !tbaa !51
  %91 = fmul double %90, 1.000000e+06
  store double %91, ptr %89, align 8, !tbaa !51
  br label %92

92:                                               ; preds = %85, %49
  %93 = load double, ptr %9, align 8, !tbaa !9
  %94 = load double, ptr %5, align 8, !tbaa !9
  %95 = fmul double %93, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret double %95
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !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 = !{!"bool", !7, i64 0}
!13 = !{!14, !20, i64 304}
!14 = !{!"_ZTS4Wire", !15, i64 0, !19, i64 280, !10, i64 288, !10, i64 296, !20, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !21, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !22, 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 = !{!"_ZTS14Wire_placement", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !23, i64 0}
!23 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !24, i64 0}
!24 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !25, i64 0}
!25 = !{!"_ZTSNSt8__detail17_List_node_headerE", !26, i64 0, !27, i64 16}
!26 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!27 = !{!"long", !7, i64 0}
!28 = !{!29, !10, i64 1368}
!29 = !{!"_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, !27, i64 352, !30, i64 360, !30, i64 528, !30, i64 696, !30, i64 864, !30, i64 1032, !31, i64 1200, !31, i64 1264, !31, i64 1328, !32, i64 1392, !33, i64 1416, !33, i64 1464, !33, i64 1512}
!30 = !{!"_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}
!31 = !{!"_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}
!32 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !10, i64 0, !10, i64 8, !10, i64 16}
!33 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!34 = !{!29, !10, i64 1352}
!35 = !{!29, !10, i64 1360}
!36 = !{!29, !10, i64 1376}
!37 = !{!29, !10, i64 1384}
!38 = !{!29, !10, i64 1304}
!39 = !{!29, !10, i64 1288}
!40 = !{!29, !10, i64 1296}
!41 = !{!29, !10, i64 1312}
!42 = !{!29, !10, i64 1320}
!43 = !{!29, !10, i64 1240}
!44 = !{!29, !10, i64 1224}
!45 = !{!29, !10, i64 1232}
!46 = !{!29, !10, i64 1248}
!47 = !{!29, !10, i64 1256}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!14, !10, i64 296}
!51 = !{!14, !10, i64 288}
!52 = !{!14, !10, i64 360}
!53 = !{!29, !10, i64 344}


; 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

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local noundef double @_ZN4Wire8wire_capEdb(ptr nocapture noundef nonnull align 8 dereferenceable(1264) %0, double noundef %1, i1 noundef zeroext %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 304
  %5 = load i32, ptr %4, align 8, !tbaa !5
  switch i32 %5, label %7 [
    i32 0, label %8
    i32 1, label %6
  ]

6:                                                ; preds = %3
  br label %8

7:                                                ; preds = %3
  br label %8

8:                                                ; preds = %3, %7, %6
  %.018.in = phi ptr [ getelementptr inbounds (i8, ptr @g_tp, i64 1240), %7 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1304), %6 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1368), %3 ]
  %.017.in = phi ptr [ getelementptr inbounds (i8, ptr @g_tp, i64 1224), %7 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1288), %6 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1352), %3 ]
  %.016.in = phi ptr [ getelementptr inbounds (i8, ptr @g_tp, i64 1232), %7 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1296), %6 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1360), %3 ]
  %.015.in = phi ptr [ getelementptr inbounds (i8, ptr @g_tp, i64 1248), %7 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1312), %6 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1376), %3 ]
  %.0.in = phi ptr [ getelementptr inbounds (i8, ptr @g_tp, i64 1256), %7 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1320), %6 ], [ getelementptr inbounds (i8, ptr @g_tp, i64 1384), %3 ]
  %.0 = load double, ptr %.0.in, align 8, !tbaa !24
  %.015 = load double, ptr %.015.in, align 8, !tbaa !24
  %.016 = load double, ptr %.016.in, align 8, !tbaa !24
  %.017 = load double, ptr %.017.in, align 8, !tbaa !24
  %.018 = load double, ptr %.018.in, align 8, !tbaa !24
  %9 = getelementptr inbounds i8, ptr %0, i64 296
  %10 = load double, ptr %9, align 8, !tbaa !25
  br i1 %2, label %17, label %11

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 360
  %13 = load double, ptr %12, align 8, !tbaa !26
  %14 = getelementptr inbounds i8, ptr %0, i64 288
  %15 = load double, ptr %14, align 8, !tbaa !27
  %16 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 344), align 8, !tbaa !28
  br label %28

17:                                               ; preds = %8
  %18 = getelementptr inbounds i8, ptr %0, i64 288
  %19 = load <2 x double>, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 360
  %21 = load double, ptr %20, align 8, !tbaa !26
  %22 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 344), align 8, !tbaa !28
  %23 = insertelement <2 x double> %19, double %10, i64 1
  %24 = fmul <2 x double> %23, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %25 = fmul <2 x double> %24, <double 1.000000e+06, double 1.000000e+06>
  store <2 x double> %25, ptr %18, align 8, !tbaa !24
  %26 = extractelement <2 x double> %24, i64 0
  %27 = extractelement <2 x double> %24, i64 1
  br label %28

28:                                               ; preds = %11, %17
  %29 = phi double [ %22, %17 ], [ %16, %11 ]
  %30 = phi double [ %26, %17 ], [ %15, %11 ]
  %31 = phi double [ %21, %17 ], [ %13, %11 ]
  %32 = phi double [ %27, %17 ], [ %10, %11 ]
  %33 = fmul double %.015, %.017
  %34 = fdiv double %32, %31
  %35 = fmul double %.018, %34
  %36 = fdiv double %35, %30
  %37 = fmul double %33, %36
  %38 = fmul double %37, 8.854200e-12
  %39 = fmul double %.015, %.016
  %40 = fmul double %39, %32
  %41 = fmul double %.0, 0x3EB0C6F7A0B5ED8D
  %42 = fdiv double %40, %41
  %43 = fmul double %42, 8.854200e-12
  %44 = fadd double %43, %38
  %45 = tail call double @llvm.fmuladd.f64(double %29, double 1.000000e+06, double %44)
  %46 = fmul double %45, %1
  ret double %46
}

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !15, i64 304}
!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 = !{!9, !9, i64 0}
!25 = !{!6, !9, i64 296}
!26 = !{!6, !9, i64 360}
!27 = !{!6, !9, i64 288}
!28 = !{!29, !9, i64 344}
!29 = !{!"_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, !30, i64 360, !30, i64 528, !30, i64 696, !30, i64 864, !30, i64 1032, !31, i64 1200, !31, i64 1264, !31, i64 1328, !32, i64 1392, !33, i64 1416, !33, i64 1464, !33, i64 1512}
!30 = !{!"_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}
!31 = !{!"_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}
!32 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!33 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass