; LLVM IR from gem5/gem5 :: ext/mcpat/memoryctrl.ll (ZN9MCBackend13computeEnergyEv)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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.McPATComponent = type { ptr, %class.Component, ptr, %class.InputParameter, %"class.std::__cxx11::basic_string", double, %"class.std::vector", %class.McPATOutput, %class.statsDef, %class.statsDef, %class.powerDef, %class.powerDef }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%class.InputParameter = type { i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i8, i8, i32, i32, i8, double, double, i8, i32, i32, i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl" }
%"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl" = type { %"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.McPATOutput = type { double, double, double, double, double, double }
%class.statsDef = type { %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents }
%class.statsComponents = type { double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%class.MCBackend = type { %class.McPATComponent, %class.InputParameter, %class.uca_org_t, %class.MCParameters, %class.MCStatistics, %class.statsDef }
%class.uca_org_t = type { ptr, ptr, double, double, double, double, %class.powerDef, double, double, double, [100 x i8], double, i8, %struct.results_mem_array, %struct.results_mem_array }
%struct.results_mem_array = type { i32, i32, double, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%class.MCParameters = type { double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.MCStatistics = type { double, double, double, double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@g_tp = external global %class.TechnologyParameter, align 8
@_ZN14McPATComponent21longer_channel_deviceE = external global i32, align 4
@_ZN14McPATComponent14execution_timeE = external global double, 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9MCBackend13computeEnergyEv(ptr noundef nonnull align 8 dereferenceable(10232) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %13 = call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext false, i1 noundef zeroext false)
  store double %13, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %14 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !11
  store double %14, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %15 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !11
  %16 = load double, ptr %7, align 8, !tbaa !9
  %17 = fmul double %15, %16
  store double %17, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %18 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %19 = getelementptr inbounds %class.McPATOutput, ptr %18, i32 0, i32 1
  %20 = load double, ptr %19, align 8, !tbaa !18
  %21 = fmul double %20, 1.000000e+06
  store double %21, ptr %10, align 8, !tbaa !9
  %22 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %23 = getelementptr inbounds %class.MCParameters, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !37
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %146

26:                                               ; preds = %1
  %27 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %28 = getelementptr inbounds %class.MCParameters, ptr %27, i32 0, i32 12
  %29 = load i32, ptr %28, align 4, !tbaa !44
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %84

31:                                               ; preds = %26
  store double 0x3FDBA5E353F7CEDA, ptr %4, align 8, !tbaa !9
  %32 = load double, ptr %4, align 8, !tbaa !9
  %33 = fdiv double %32, 1.000000e+09
  %34 = fdiv double %33, 7.200000e+01
  %35 = fdiv double %34, 1.100000e+00
  %36 = fdiv double %35, 1.100000e+00
  %37 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 1
  %38 = getelementptr inbounds %class.InputParameter, ptr %37, i32 0, i32 13
  %39 = load double, ptr %38, align 8, !tbaa !45
  %40 = fmul double %36, %39
  %41 = fdiv double %40, 6.500000e-02
  store double %41, ptr %3, align 8, !tbaa !9
  %42 = load double, ptr %3, align 8, !tbaa !9
  %43 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %44 = fmul double %42, %43
  %45 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %46 = fmul double %44, %45
  %47 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %48 = getelementptr inbounds %class.MCParameters, ptr %47, i32 0, i32 5
  %49 = load i32, ptr %48, align 8, !tbaa !47
  %50 = sitofp i32 %49 to double
  %51 = fmul double %46, %50
  %52 = getelementptr inbounds i8, ptr %12, i64 8
  %53 = getelementptr inbounds %class.Component, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %class.powerDef, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %class.powerComponents, ptr %54, i32 0, i32 0
  store double %51, ptr %55, align 8, !tbaa !48
  %56 = load double, ptr %10, align 8, !tbaa !9
  %57 = fdiv double %56, 2.000000e+00
  %58 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::ScalingFactor", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 53), i32 0, i32 1), align 8, !tbaa !49
  %59 = fmul double %57, %58
  %60 = load double, ptr %8, align 8, !tbaa !9
  %61 = load double, ptr %9, align 8, !tbaa !9
  %62 = call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %60, double noundef %61, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %63 = fmul double %59, %62
  %64 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %65 = fmul double %63, %64
  %66 = getelementptr inbounds i8, ptr %12, i64 8
  %67 = getelementptr inbounds %class.Component, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds %class.powerDef, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %class.powerComponents, ptr %68, i32 0, i32 1
  store double %65, ptr %69, align 8, !tbaa !50
  %70 = load double, ptr %10, align 8, !tbaa !9
  %71 = fdiv double %70, 2.000000e+00
  %72 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::ScalingFactor", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 53), i32 0, i32 1), align 8, !tbaa !49
  %73 = fmul double %71, %72
  %74 = load double, ptr %8, align 8, !tbaa !9
  %75 = load double, ptr %9, align 8, !tbaa !9
  %76 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %74, double noundef %75, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %77 = fmul double %73, %76
  %78 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %79 = fmul double %77, %78
  %80 = getelementptr inbounds i8, ptr %12, i64 8
  %81 = getelementptr inbounds %class.Component, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %class.powerDef, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %class.powerComponents, ptr %82, i32 0, i32 2
  store double %79, ptr %83, align 8, !tbaa !51
  br label %145

84:                                               ; preds = %26
  %85 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %86 = getelementptr inbounds %class.MCParameters, ptr %85, i32 0, i32 0
  %87 = load double, ptr %86, align 8, !tbaa !52
  %88 = fmul double 1.125000e-18, %87
  %89 = fdiv double %88, 1.280000e+04
  %90 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %91 = getelementptr inbounds %class.MCParameters, ptr %90, i32 0, i32 15
  %92 = load i32, ptr %91, align 4, !tbaa !53
  %93 = sitofp i32 %92 to double
  %94 = fmul double %89, %93
  %95 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %96 = getelementptr inbounds %class.MCParameters, ptr %95, i32 0, i32 5
  %97 = load i32, ptr %96, align 8, !tbaa !47
  %98 = sitofp i32 %97 to double
  %99 = fmul double %94, %98
  %100 = fdiv double %99, 7.200000e+01
  %101 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %102 = fmul double %100, %101
  %103 = fdiv double %102, 1.100000e+00
  %104 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %105 = fmul double %103, %104
  %106 = fdiv double %105, 1.100000e+00
  %107 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 1
  %108 = getelementptr inbounds %class.InputParameter, ptr %107, i32 0, i32 12
  %109 = load double, ptr %108, align 8, !tbaa !54
  %110 = fdiv double %109, 6.500000e+01
  %111 = fmul double %106, %110
  store double %111, ptr %5, align 8, !tbaa !9
  %112 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %113 = getelementptr inbounds %class.MCParameters, ptr %112, i32 0, i32 5
  %114 = load i32, ptr %113, align 8, !tbaa !47
  %115 = mul nsw i32 50000, %114
  %116 = sitofp i32 %115 to double
  %117 = fdiv double %116, 6.400000e+01
  store double %117, ptr %6, align 8, !tbaa !9
  %118 = load double, ptr %5, align 8, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %12, i64 8
  %120 = getelementptr inbounds %class.Component, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds %class.powerDef, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %class.powerComponents, ptr %121, i32 0, i32 0
  store double %118, ptr %122, align 8, !tbaa !48
  %123 = load double, ptr %6, align 8, !tbaa !9
  %124 = load double, ptr %8, align 8, !tbaa !9
  %125 = load double, ptr %9, align 8, !tbaa !9
  %126 = call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %124, double noundef %125, i32 noundef 2, i32 noundef 3, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %127 = fmul double %123, %126
  %128 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %129 = fmul double %127, %128
  %130 = getelementptr inbounds i8, ptr %12, i64 8
  %131 = getelementptr inbounds %class.Component, ptr %130, i32 0, i32 1
  %132 = getelementptr inbounds %class.powerDef, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %class.powerComponents, ptr %132, i32 0, i32 1
  store double %129, ptr %133, align 8, !tbaa !50
  %134 = load double, ptr %6, align 8, !tbaa !9
  %135 = load double, ptr %8, align 8, !tbaa !9
  %136 = load double, ptr %9, align 8, !tbaa !9
  %137 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %135, double noundef %136, i32 noundef 2, i32 noundef 3, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %138 = fmul double %134, %137
  %139 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !46
  %140 = fmul double %138, %139
  %141 = getelementptr inbounds i8, ptr %12, i64 8
  %142 = getelementptr inbounds %class.Component, ptr %141, i32 0, i32 1
  %143 = getelementptr inbounds %class.powerDef, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %class.powerComponents, ptr %143, i32 0, i32 2
  store double %140, ptr %144, align 8, !tbaa !51
  br label %145

145:                                              ; preds = %84, %31
  br label %149

146:                                              ; preds = %1
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 0) #7
  unreachable

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %150 = call noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 1, i32 noundef 1)
  store double %150, ptr %11, align 8, !tbaa !9
  %151 = getelementptr inbounds i8, ptr %12, i64 8
  %152 = getelementptr inbounds %class.Component, ptr %151, i32 0, i32 1
  %153 = getelementptr inbounds %class.powerDef, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds %class.powerComponents, ptr %153, i32 0, i32 1
  %155 = load double, ptr %154, align 8, !tbaa !50
  %156 = load double, ptr %11, align 8, !tbaa !9
  %157 = fmul double %155, %156
  %158 = getelementptr inbounds i8, ptr %12, i64 8
  %159 = getelementptr inbounds %class.Component, ptr %158, i32 0, i32 1
  %160 = getelementptr inbounds %class.powerDef, ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds %class.powerComponents, ptr %160, i32 0, i32 4
  store double %157, ptr %161, align 8, !tbaa !55
  %162 = load i32, ptr @_ZN14McPATComponent21longer_channel_deviceE, align 4, !tbaa !56
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %170

164:                                              ; preds = %149
  %165 = getelementptr inbounds i8, ptr %12, i64 8
  %166 = getelementptr inbounds %class.Component, ptr %165, i32 0, i32 1
  %167 = getelementptr inbounds %class.powerDef, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds %class.powerComponents, ptr %167, i32 0, i32 4
  %169 = load double, ptr %168, align 8, !tbaa !55
  br label %176

170:                                              ; preds = %149
  %171 = getelementptr inbounds i8, ptr %12, i64 8
  %172 = getelementptr inbounds %class.Component, ptr %171, i32 0, i32 1
  %173 = getelementptr inbounds %class.powerDef, ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds %class.powerComponents, ptr %173, i32 0, i32 1
  %175 = load double, ptr %174, align 8, !tbaa !50
  br label %176

176:                                              ; preds = %170, %164
  %177 = phi double [ %169, %164 ], [ %175, %170 ]
  %178 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %179 = getelementptr inbounds %class.McPATOutput, ptr %178, i32 0, i32 3
  store double %177, ptr %179, align 8, !tbaa !57
  %180 = getelementptr inbounds i8, ptr %12, i64 8
  %181 = getelementptr inbounds %class.Component, ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %class.powerDef, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds %class.powerComponents, ptr %182, i32 0, i32 2
  %184 = load double, ptr %183, align 8, !tbaa !51
  %185 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %186 = getelementptr inbounds %class.McPATOutput, ptr %185, i32 0, i32 4
  store double %184, ptr %186, align 8, !tbaa !58
  %187 = getelementptr inbounds i8, ptr %12, i64 8
  %188 = getelementptr inbounds %class.Component, ptr %187, i32 0, i32 1
  %189 = getelementptr inbounds %class.powerDef, ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds %class.powerComponents, ptr %189, i32 0, i32 0
  %191 = load double, ptr %190, align 8, !tbaa !48
  %192 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 8
  %193 = getelementptr inbounds %class.statsDef, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds %class.statsComponents, ptr %193, i32 0, i32 0
  %195 = load double, ptr %194, align 8, !tbaa !59
  %196 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 8
  %197 = getelementptr inbounds %class.statsDef, ptr %196, i32 0, i32 1
  %198 = getelementptr inbounds %class.statsComponents, ptr %197, i32 0, i32 0
  %199 = load double, ptr %198, align 8, !tbaa !60
  %200 = fadd double %195, %199
  %201 = fmul double %191, %200
  %202 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %203 = getelementptr inbounds %class.McPATOutput, ptr %202, i32 0, i32 2
  store double %201, ptr %203, align 8, !tbaa !61
  %204 = getelementptr inbounds i8, ptr %12, i64 8
  %205 = getelementptr inbounds %class.Component, ptr %204, i32 0, i32 1
  %206 = getelementptr inbounds %class.powerDef, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %class.powerComponents, ptr %206, i32 0, i32 0
  %208 = load double, ptr %207, align 8, !tbaa !48
  %209 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 9
  %210 = getelementptr inbounds %class.statsDef, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds %class.statsComponents, ptr %210, i32 0, i32 0
  %212 = load double, ptr %211, align 8, !tbaa !62
  %213 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 9
  %214 = getelementptr inbounds %class.statsDef, ptr %213, i32 0, i32 1
  %215 = getelementptr inbounds %class.statsComponents, ptr %214, i32 0, i32 0
  %216 = load double, ptr %215, align 8, !tbaa !63
  %217 = fadd double %212, %216
  %218 = fmul double %208, %217
  %219 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %220 = getelementptr inbounds %class.MCParameters, ptr %219, i32 0, i32 4
  %221 = load i32, ptr %220, align 4, !tbaa !64
  %222 = sitofp i32 %221 to double
  %223 = fmul double %218, %222
  %224 = fmul double %223, 8.000000e+00
  %225 = getelementptr inbounds %class.MCBackend, ptr %12, i32 0, i32 3
  %226 = getelementptr inbounds %class.MCParameters, ptr %225, i32 0, i32 5
  %227 = load i32, ptr %226, align 8, !tbaa !47
  %228 = sitofp i32 %227 to double
  %229 = fdiv double %224, %228
  %230 = getelementptr inbounds i8, ptr %12, i64 8
  %231 = getelementptr inbounds %class.Component, ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds %class.powerDef, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds %class.powerComponents, ptr %232, i32 0, i32 0
  %234 = load double, ptr %233, align 8, !tbaa !48
  %235 = fmul double %234, 1.000000e-01
  %236 = load double, ptr @_ZN14McPATComponent14execution_timeE, align 8, !tbaa !9
  %237 = call double @llvm.fmuladd.f64(double %235, double %236, double %229)
  %238 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %239 = getelementptr inbounds %class.McPATOutput, ptr %238, i32 0, i32 5
  store double %237, ptr %239, align 8, !tbaa !65
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

declare noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext, i1 noundef zeroext) #5

declare noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef, double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) #5

declare noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef, double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !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 8}
!12 = !{!"_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, !13, i64 352, !14, i64 360, !14, i64 528, !14, i64 696, !14, i64 864, !14, i64 1032, !15, i64 1200, !15, i64 1264, !15, i64 1328, !16, i64 1392, !17, i64 1416, !17, i64 1464, !17, i64 1512}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_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}
!15 = !{!"_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}
!16 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!18 = !{!19, !10, i64 736}
!19 = !{!"_ZTS14McPATComponent", !20, i64 8, !6, i64 288, !24, i64 296, !28, i64 664, !10, i64 696, !30, i64 704, !34, i64 728, !35, i64 776, !35, i64 944, !22, i64 1112, !22, i64 1232}
!20 = !{!"_ZTS9Component", !21, i64 0, !22, i64 24, !22, i64 144, !10, i64 264, !10, i64 272}
!21 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!22 = !{!"_ZTS8powerDef", !23, i64 0, !23, i64 40, !23, i64 80}
!23 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!24 = !{!"_ZTS14InputParameter", !25, i64 0, !25, i64 4, !25, i64 8, !25, i64 12, !25, i64 16, !26, i64 20, !25, i64 24, !25, i64 28, !25, i64 32, !25, i64 36, !25, i64 40, !25, i64 44, !10, i64 48, !10, i64 56, !25, i64 64, !25, i64 68, !25, i64 72, !25, i64 76, !25, i64 80, !26, i64 84, !26, i64 85, !26, i64 86, !26, i64 87, !26, i64 88, !25, i64 92, !25, i64 96, !25, i64 100, !25, i64 104, !25, i64 108, !25, i64 112, !25, i64 116, !25, i64 120, !25, i64 124, !25, i64 128, !25, i64 132, !25, i64 136, !25, i64 140, !25, i64 144, !25, i64 148, !27, i64 152, !25, i64 156, !26, i64 160, !25, i64 164, !25, i64 168, !25, i64 172, !25, i64 176, !25, i64 180, !25, i64 184, !25, i64 188, !26, i64 192, !25, i64 196, !25, i64 200, !25, i64 204, !25, i64 208, !25, i64 212, !25, i64 216, !25, i64 220, !25, i64 224, !25, i64 228, !25, i64 232, !25, i64 236, !25, i64 240, !25, i64 244, !25, i64 248, !25, i64 252, !25, i64 256, !25, i64 260, !25, i64 264, !25, i64 268, !25, i64 272, !25, i64 276, !25, i64 280, !25, i64 284, !25, i64 288, !25, i64 292, !25, i64 296, !26, i64 300, !25, i64 304, !25, i64 308, !25, i64 312, !26, i64 316, !26, i64 317, !25, i64 320, !25, i64 324, !26, i64 328, !10, i64 336, !10, i64 344, !26, i64 352, !25, i64 356, !25, i64 360, !26, i64 364}
!25 = !{!"int", !7, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTS9Wire_type", !7, i64 0}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !13, i64 8, !7, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!30 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTS11McPATOutput", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!35 = !{!"_ZTS8statsDef", !36, i64 0, !36, i64 24, !36, i64 48, !36, i64 72, !36, i64 96, !36, i64 120, !36, i64 144}
!36 = !{!"_ZTS15statsComponents", !10, i64 0, !10, i64 8, !10, i64 16}
!37 = !{!38, !42, i64 9928}
!38 = !{!"_ZTS9MCBackend", !19, i64 0, !24, i64 1352, !39, i64 1720, !41, i64 9920, !43, i64 10032, !35, i64 10064}
!39 = !{!"_ZTS9uca_org_t", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !22, i64 48, !10, i64 168, !10, i64 176, !10, i64 184, !7, i64 192, !10, i64 296, !26, i64 304, !40, i64 312, !40, i64 4256}
!40 = !{!"_ZTS17results_mem_array", !25, i64 0, !25, i64 4, !10, i64 8, !25, i64 16, !25, i64 20, !25, i64 24, !25, i64 28, !25, i64 32, !25, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !22, i64 272, !22, i64 392, !22, i64 512, !22, i64 632, !22, i64 752, !22, i64 872, !22, i64 992, !22, i64 1112, !22, i64 1232, !22, i64 1352, !22, i64 1472, !22, i64 1592, !22, i64 1712, !22, i64 1832, !22, i64 1952, !22, i64 2072, !22, i64 2192, !22, i64 2312, !22, i64 2432, !22, i64 2552, !22, i64 2672, !22, i64 2792, !22, i64 2912, !22, i64 3032, !22, i64 3152, !22, i64 3272, !22, i64 3392, !22, i64 3512, !22, i64 3632, !10, i64 3752, !10, i64 3760, !10, i64 3768, !10, i64 3776, !10, i64 3784, !10, i64 3792, !10, i64 3800, !10, i64 3808, !10, i64 3816, !10, i64 3824, !10, i64 3832, !10, i64 3840, !10, i64 3848, !10, i64 3856, !10, i64 3864, !10, i64 3872, !10, i64 3880, !10, i64 3888, !10, i64 3896, !10, i64 3904, !10, i64 3912, !10, i64 3920, !10, i64 3928, !10, i64 3936}
!41 = !{!"_ZTS12MCParameters", !10, i64 0, !42, i64 8, !10, i64 16, !25, i64 24, !25, i64 28, !25, i64 32, !25, i64 36, !25, i64 40, !25, i64 44, !25, i64 48, !25, i64 52, !25, i64 56, !25, i64 60, !26, i64 64, !26, i64 65, !25, i64 68, !25, i64 72, !25, i64 76, !25, i64 80, !25, i64 84, !25, i64 88, !25, i64 92, !25, i64 96, !25, i64 100, !25, i64 104}
!42 = !{!"_ZTS15MemoryCtrl_type", !7, i64 0}
!43 = !{!"_ZTS12MCStatistics", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!44 = !{!38, !25, i64 9980}
!45 = !{!38, !10, i64 1408}
!46 = !{!12, !10, i64 936}
!47 = !{!38, !25, i64 9952}
!48 = !{!20, !10, i64 24}
!49 = !{!12, !10, i64 1400}
!50 = !{!20, !10, i64 32}
!51 = !{!20, !10, i64 40}
!52 = !{!38, !10, i64 9920}
!53 = !{!38, !25, i64 9988}
!54 = !{!38, !10, i64 1400}
!55 = !{!20, !10, i64 56}
!56 = !{!25, !25, i64 0}
!57 = !{!19, !10, i64 752}
!58 = !{!19, !10, i64 760}
!59 = !{!19, !10, i64 776}
!60 = !{!19, !10, i64 800}
!61 = !{!19, !10, i64 744}
!62 = !{!19, !10, i64 944}
!63 = !{!19, !10, i64 968}
!64 = !{!38, !25, i64 9948}
!65 = !{!19, !10, i64 768}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@g_tp = external local_unnamed_addr global %class.TechnologyParameter, align 8
@_ZN14McPATComponent21longer_channel_deviceE = external local_unnamed_addr global i32, align 4
@_ZN14McPATComponent14execution_timeE = external local_unnamed_addr global double, align 8

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9MCBackend13computeEnergyEv(ptr nocapture noundef nonnull align 8 dereferenceable(10232) %0) unnamed_addr #2 align 2 {
  %2 = tail call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext false, i1 noundef zeroext false)
  %3 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !5
  %4 = fmul double %2, %3
  %5 = getelementptr inbounds i8, ptr %0, i64 736
  %6 = load double, ptr %5, align 8, !tbaa !15
  %7 = fmul double %6, 1.000000e+06
  %8 = getelementptr inbounds i8, ptr %0, i64 9920
  %9 = getelementptr inbounds i8, ptr %0, i64 9928
  %10 = load i32, ptr %9, align 8, !tbaa !35
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %71

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 9980
  %14 = load i32, ptr %13, align 4, !tbaa !42
  %15 = icmp eq i32 %14, 0
  %16 = getelementptr inbounds i8, ptr %0, i64 9952
  %17 = load i32, ptr %16, align 8, !tbaa !43
  %18 = sitofp i32 %17 to double
  br i1 %15, label %19, label %41

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %0, i64 1408
  %21 = load double, ptr %20, align 8, !tbaa !44
  %22 = fmul double %21, 0x3D95CEF988DDF181
  %23 = fdiv double %22, 6.500000e-02
  %24 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !45
  %25 = fmul double %24, %23
  %26 = fmul double %24, %25
  %27 = fmul double %26, %18
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  store double %27, ptr %28, align 8, !tbaa !46
  %29 = fmul double %7, 5.000000e-01
  %30 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1400), align 8, !tbaa !47
  %31 = fmul double %29, %30
  %32 = tail call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %3, double noundef %4, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %33 = fmul double %31, %32
  %34 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !45
  %35 = fmul double %33, %34
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  store double %35, ptr %36, align 8, !tbaa !48
  %37 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1400), align 8, !tbaa !47
  %38 = fmul double %29, %37
  %39 = tail call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %3, double noundef %4, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %40 = fmul double %38, %39
  br label %74

41:                                               ; preds = %12
  %42 = load double, ptr %8, align 8, !tbaa !49
  %43 = fmul double %42, 1.125000e-18
  %44 = fdiv double %43, 1.280000e+04
  %45 = getelementptr inbounds i8, ptr %0, i64 9988
  %46 = load i32, ptr %45, align 4, !tbaa !50
  %47 = sitofp i32 %46 to double
  %48 = fmul double %44, %47
  %49 = fmul double %48, %18
  %50 = fdiv double %49, 7.200000e+01
  %51 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !45
  %52 = fmul double %51, %50
  %53 = fdiv double %52, 1.100000e+00
  %54 = fmul double %51, %53
  %55 = fdiv double %54, 1.100000e+00
  %56 = getelementptr inbounds i8, ptr %0, i64 1400
  %57 = load double, ptr %56, align 8, !tbaa !51
  %58 = fdiv double %57, 6.500000e+01
  %59 = fmul double %58, %55
  %60 = mul nsw i32 %17, 50000
  %61 = sitofp i32 %60 to double
  %62 = fmul double %61, 1.562500e-02
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  store double %59, ptr %63, align 8, !tbaa !46
  %64 = tail call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %3, double noundef %4, i32 noundef 2, i32 noundef 3, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %65 = fmul double %62, %64
  %66 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !45
  %67 = fmul double %65, %66
  %68 = getelementptr inbounds i8, ptr %0, i64 40
  store double %67, ptr %68, align 8, !tbaa !48
  %69 = tail call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %3, double noundef %4, i32 noundef 2, i32 noundef 3, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %70 = fmul double %62, %69
  br label %74

71:                                               ; preds = %1
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @exit(i32 noundef 0) #5
  unreachable

74:                                               ; preds = %19, %41
  %.sink18 = phi double [ %40, %19 ], [ %70, %41 ]
  %75 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !45
  %76 = fmul double %.sink18, %75
  %77 = getelementptr inbounds i8, ptr %0, i64 48
  store double %76, ptr %77, align 8
  %78 = tail call noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 1, i32 noundef 1)
  %79 = getelementptr inbounds i8, ptr %0, i64 40
  %80 = load double, ptr %79, align 8
  %81 = fmul double %78, %80
  %82 = getelementptr inbounds i8, ptr %0, i64 64
  store double %81, ptr %82, align 8, !tbaa !52
  %83 = load i32, ptr @_ZN14McPATComponent21longer_channel_deviceE, align 4, !tbaa !53
  %.not = icmp eq i32 %83, 0
  %84 = select i1 %.not, double %80, double %81
  %85 = getelementptr inbounds i8, ptr %0, i64 32
  %86 = getelementptr inbounds i8, ptr %0, i64 752
  store double %84, ptr %86, align 8, !tbaa !54
  %87 = load double, ptr %77, align 8, !tbaa !55
  %88 = getelementptr inbounds i8, ptr %0, i64 760
  store double %87, ptr %88, align 8, !tbaa !56
  %89 = load double, ptr %85, align 8, !tbaa !46
  %90 = getelementptr inbounds i8, ptr %0, i64 776
  %91 = load double, ptr %90, align 8, !tbaa !57
  %92 = getelementptr inbounds i8, ptr %0, i64 800
  %93 = load double, ptr %92, align 8, !tbaa !58
  %94 = fadd double %91, %93
  %95 = fmul double %89, %94
  %96 = getelementptr inbounds i8, ptr %0, i64 744
  store double %95, ptr %96, align 8, !tbaa !59
  %97 = getelementptr inbounds i8, ptr %0, i64 944
  %98 = load double, ptr %97, align 8, !tbaa !60
  %99 = getelementptr inbounds i8, ptr %0, i64 968
  %100 = load double, ptr %99, align 8, !tbaa !61
  %101 = fadd double %98, %100
  %102 = fmul double %89, %101
  %103 = getelementptr inbounds i8, ptr %0, i64 9948
  %104 = load i32, ptr %103, align 4, !tbaa !62
  %105 = sitofp i32 %104 to double
  %106 = fmul double %102, %105
  %107 = fmul double %106, 8.000000e+00
  %108 = getelementptr inbounds i8, ptr %0, i64 9952
  %109 = load i32, ptr %108, align 8, !tbaa !43
  %110 = sitofp i32 %109 to double
  %111 = fdiv double %107, %110
  %112 = fmul double %89, 1.000000e-01
  %113 = load double, ptr @_ZN14McPATComponent14execution_timeE, align 8, !tbaa !63
  %114 = tail call double @llvm.fmuladd.f64(double %112, double %113, double %111)
  %115 = getelementptr inbounds i8, ptr %0, i64 768
  store double %114, ptr %115, align 8, !tbaa !64
  ret void
}

declare noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4

declare noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef, double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) local_unnamed_addr #4

declare noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef, double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) local_unnamed_addr #4

declare noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef, i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"_ZTS19TechnologyParameter", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !10, i64 352, !11, i64 360, !11, i64 528, !11, i64 696, !11, i64 864, !11, i64 1032, !12, i64 1200, !12, i64 1264, !12, i64 1328, !13, i64 1392, !14, i64 1416, !14, i64 1464, !14, i64 1512}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160}
!12 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!13 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!15 = !{!16, !7, i64 736}
!16 = !{!"_ZTS14McPATComponent", !17, i64 8, !21, i64 288, !22, i64 296, !26, i64 664, !7, i64 696, !28, i64 704, !32, i64 728, !33, i64 776, !33, i64 944, !19, i64 1112, !19, i64 1232}
!17 = !{!"_ZTS9Component", !18, i64 0, !19, i64 24, !19, i64 144, !7, i64 264, !7, i64 272}
!18 = !{!"_ZTS4Area", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTS8powerDef", !20, i64 0, !20, i64 40, !20, i64 80}
!20 = !{!"_ZTS15powerComponents", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!"_ZTS14InputParameter", !23, i64 0, !23, i64 4, !23, i64 8, !23, i64 12, !23, i64 16, !24, i64 20, !23, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !23, i64 40, !23, i64 44, !7, i64 48, !7, i64 56, !23, i64 64, !23, i64 68, !23, i64 72, !23, i64 76, !23, i64 80, !24, i64 84, !24, i64 85, !24, i64 86, !24, i64 87, !24, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !23, i64 116, !23, i64 120, !23, i64 124, !23, i64 128, !23, i64 132, !23, i64 136, !23, i64 140, !23, i64 144, !23, i64 148, !25, i64 152, !23, i64 156, !24, i64 160, !23, i64 164, !23, i64 168, !23, i64 172, !23, i64 176, !23, i64 180, !23, i64 184, !23, i64 188, !24, i64 192, !23, i64 196, !23, i64 200, !23, i64 204, !23, i64 208, !23, i64 212, !23, i64 216, !23, i64 220, !23, i64 224, !23, i64 228, !23, i64 232, !23, i64 236, !23, i64 240, !23, i64 244, !23, i64 248, !23, i64 252, !23, i64 256, !23, i64 260, !23, i64 264, !23, i64 268, !23, i64 272, !23, i64 276, !23, i64 280, !23, i64 284, !23, i64 288, !23, i64 292, !23, i64 296, !24, i64 300, !23, i64 304, !23, i64 308, !23, i64 312, !24, i64 316, !24, i64 317, !23, i64 320, !23, i64 324, !24, i64 328, !7, i64 336, !7, i64 344, !24, i64 352, !23, i64 356, !23, i64 360, !24, i64 364}
!23 = !{!"int", !8, i64 0}
!24 = !{!"bool", !8, i64 0}
!25 = !{!"_ZTS9Wire_type", !8, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !10, i64 8, !8, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!28 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!32 = !{!"_ZTS11McPATOutput", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!33 = !{!"_ZTS8statsDef", !34, i64 0, !34, i64 24, !34, i64 48, !34, i64 72, !34, i64 96, !34, i64 120, !34, i64 144}
!34 = !{!"_ZTS15statsComponents", !7, i64 0, !7, i64 8, !7, i64 16}
!35 = !{!36, !40, i64 9928}
!36 = !{!"_ZTS9MCBackend", !16, i64 0, !22, i64 1352, !37, i64 1720, !39, i64 9920, !41, i64 10032, !33, i64 10064}
!37 = !{!"_ZTS9uca_org_t", !21, i64 0, !21, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !19, i64 48, !7, i64 168, !7, i64 176, !7, i64 184, !8, i64 192, !7, i64 296, !24, i64 304, !38, i64 312, !38, i64 4256}
!38 = !{!"_ZTS17results_mem_array", !23, i64 0, !23, i64 4, !7, i64 8, !23, i64 16, !23, i64 20, !23, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !19, i64 272, !19, i64 392, !19, i64 512, !19, i64 632, !19, i64 752, !19, i64 872, !19, i64 992, !19, i64 1112, !19, i64 1232, !19, i64 1352, !19, i64 1472, !19, i64 1592, !19, i64 1712, !19, i64 1832, !19, i64 1952, !19, i64 2072, !19, i64 2192, !19, i64 2312, !19, i64 2432, !19, i64 2552, !19, i64 2672, !19, i64 2792, !19, i64 2912, !19, i64 3032, !19, i64 3152, !19, i64 3272, !19, i64 3392, !19, i64 3512, !19, i64 3632, !7, i64 3752, !7, i64 3760, !7, i64 3768, !7, i64 3776, !7, i64 3784, !7, i64 3792, !7, i64 3800, !7, i64 3808, !7, i64 3816, !7, i64 3824, !7, i64 3832, !7, i64 3840, !7, i64 3848, !7, i64 3856, !7, i64 3864, !7, i64 3872, !7, i64 3880, !7, i64 3888, !7, i64 3896, !7, i64 3904, !7, i64 3912, !7, i64 3920, !7, i64 3928, !7, i64 3936}
!39 = !{!"_ZTS12MCParameters", !7, i64 0, !40, i64 8, !7, i64 16, !23, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !23, i64 40, !23, i64 44, !23, i64 48, !23, i64 52, !23, i64 56, !23, i64 60, !24, i64 64, !24, i64 65, !23, i64 68, !23, i64 72, !23, i64 76, !23, i64 80, !23, i64 84, !23, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104}
!40 = !{!"_ZTS15MemoryCtrl_type", !8, i64 0}
!41 = !{!"_ZTS12MCStatistics", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!42 = !{!36, !23, i64 9980}
!43 = !{!36, !23, i64 9952}
!44 = !{!36, !7, i64 1408}
!45 = !{!6, !7, i64 936}
!46 = !{!17, !7, i64 24}
!47 = !{!6, !7, i64 1400}
!48 = !{!17, !7, i64 32}
!49 = !{!36, !7, i64 9920}
!50 = !{!36, !23, i64 9988}
!51 = !{!36, !7, i64 1400}
!52 = !{!17, !7, i64 56}
!53 = !{!23, !23, i64 0}
!54 = !{!16, !7, i64 752}
!55 = !{!17, !7, i64 40}
!56 = !{!16, !7, i64 760}
!57 = !{!16, !7, i64 776}
!58 = !{!16, !7, i64 800}
!59 = !{!16, !7, i64 744}
!60 = !{!16, !7, i64 944}
!61 = !{!16, !7, i64 968}
!62 = !{!36, !23, i64 9948}
!63 = !{!7, !7, i64 0}
!64 = !{!16, !7, i64 768}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass