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

; 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.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.MCPHY = 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 }

@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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5MCPHY13computeEnergyEv(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) #5
  %13 = call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext false, i1 noundef zeroext false)
  store double %13, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %14 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !11
  store double %14, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %15 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !11
  %16 = load double, ptr %3, align 8, !tbaa !9
  %17 = fmul double %15, %16
  store double %17, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %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 %9, align 8, !tbaa !9
  %22 = getelementptr inbounds %class.MCPHY, 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 %145

26:                                               ; preds = %1
  %27 = getelementptr inbounds %class.MCPHY, 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 %83

31:                                               ; preds = %26
  %32 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %33 = getelementptr inbounds %class.MCParameters, ptr %32, i32 0, i32 13
  %34 = load i8, ptr %33, align 8, !tbaa !45, !range !46, !noundef !47
  %35 = trunc i8 %34 to i1
  %36 = zext i1 %35 to i64
  %37 = select i1 %35, double 1.000000e-02, double 4.000000e-02
  store double %37, ptr %4, align 8, !tbaa !9
  %38 = load double, ptr %4, align 8, !tbaa !9
  %39 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 1
  %40 = getelementptr inbounds %class.InputParameter, ptr %39, i32 0, i32 13
  %41 = load double, ptr %40, align 8, !tbaa !48
  %42 = fdiv double %41, 0x3FB70A3D70A3D70A
  %43 = call double @sqrt(double noundef %42) #5
  %44 = fmul double %38, %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 !49
  %46 = fmul double %44, %45
  %47 = fdiv double %46, 1.200000e+00
  %48 = 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 !49
  %49 = fmul double %47, %48
  %50 = fdiv double %49, 1.200000e+00
  %51 = getelementptr inbounds i8, ptr %12, i64 8
  %52 = getelementptr inbounds %class.Component, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %class.powerDef, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %class.powerComponents, ptr %53, i32 0, i32 0
  store double %50, ptr %54, align 8, !tbaa !50
  %55 = load double, ptr %9, align 8, !tbaa !9
  %56 = fdiv double %55, 2.000000e+00
  %57 = 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 !51
  %58 = fmul double %56, %57
  %59 = load double, ptr %7, align 8, !tbaa !9
  %60 = load double, ptr %8, align 8, !tbaa !9
  %61 = call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %59, double noundef %60, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %62 = fmul double %58, %61
  %63 = 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 !49
  %64 = fmul double %62, %63
  %65 = getelementptr inbounds i8, ptr %12, i64 8
  %66 = getelementptr inbounds %class.Component, ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds %class.powerDef, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %class.powerComponents, ptr %67, i32 0, i32 1
  store double %64, ptr %68, align 8, !tbaa !52
  %69 = load double, ptr %9, align 8, !tbaa !9
  %70 = fdiv double %69, 2.000000e+00
  %71 = 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 !51
  %72 = fmul double %70, %71
  %73 = load double, ptr %7, align 8, !tbaa !9
  %74 = load double, ptr %8, align 8, !tbaa !9
  %75 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %73, double noundef %74, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %76 = fmul double %72, %75
  %77 = 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 !49
  %78 = fmul double %76, %77
  %79 = getelementptr inbounds i8, ptr %12, i64 8
  %80 = getelementptr inbounds %class.Component, ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds %class.powerDef, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %class.powerComponents, ptr %81, i32 0, i32 2
  store double %78, ptr %82, align 8, !tbaa !53
  br label %144

83:                                               ; preds = %26
  %84 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %85 = getelementptr inbounds %class.MCParameters, ptr %84, i32 0, i32 5
  %86 = load i32, ptr %85, align 8, !tbaa !54
  %87 = mul nsw i32 200000, %86
  %88 = sitofp i32 %87 to double
  %89 = fdiv double %88, 6.400000e+01
  store double %89, ptr %6, align 8, !tbaa !9
  store double 1.000000e-02, ptr %4, align 8, !tbaa !9
  %90 = load double, ptr %4, align 8, !tbaa !9
  %91 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 1
  %92 = getelementptr inbounds %class.InputParameter, ptr %91, i32 0, i32 13
  %93 = load double, ptr %92, align 8, !tbaa !48
  %94 = fdiv double %93, 0x3FB70A3D70A3D70A
  %95 = fmul double %90, %94
  %96 = 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 !49
  %97 = fmul double %95, %96
  %98 = fdiv double %97, 1.200000e+00
  %99 = 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 !49
  %100 = fmul double %98, %99
  %101 = fdiv double %100, 1.200000e+00
  %102 = getelementptr inbounds i8, ptr %12, i64 8
  %103 = getelementptr inbounds %class.Component, ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds %class.powerDef, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %class.powerComponents, ptr %104, i32 0, i32 0
  store double %101, ptr %105, align 8, !tbaa !50
  %106 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %107 = getelementptr inbounds %class.MCParameters, ptr %106, i32 0, i32 14
  %108 = load i8, ptr %107, align 1, !tbaa !55, !range !46, !noundef !47
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %112

110:                                              ; preds = %83
  %111 = load double, ptr %6, align 8, !tbaa !9
  br label %113

112:                                              ; preds = %83
  br label %113

113:                                              ; preds = %112, %110
  %114 = phi double [ %111, %110 ], [ 0.000000e+00, %112 ]
  %115 = load double, ptr %7, align 8, !tbaa !9
  %116 = load double, ptr %8, align 8, !tbaa !9
  %117 = call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %115, double noundef %116, i32 noundef 2, i32 noundef 3, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %118 = fmul double %114, %117
  %119 = 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 !49
  %120 = fmul double %118, %119
  %121 = getelementptr inbounds i8, ptr %12, i64 8
  %122 = getelementptr inbounds %class.Component, ptr %121, i32 0, i32 1
  %123 = getelementptr inbounds %class.powerDef, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds %class.powerComponents, ptr %123, i32 0, i32 1
  store double %120, ptr %124, align 8, !tbaa !52
  %125 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %126 = getelementptr inbounds %class.MCParameters, ptr %125, i32 0, i32 14
  %127 = load i8, ptr %126, align 1, !tbaa !55, !range !46, !noundef !47
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %131

129:                                              ; preds = %113
  %130 = load double, ptr %6, align 8, !tbaa !9
  br label %132

131:                                              ; preds = %113
  br label %132

132:                                              ; preds = %131, %129
  %133 = phi double [ %130, %129 ], [ 0.000000e+00, %131 ]
  %134 = load double, ptr %7, align 8, !tbaa !9
  %135 = load double, ptr %8, align 8, !tbaa !9
  %136 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %134, double noundef %135, i32 noundef 2, i32 noundef 3, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %137 = fmul double %133, %136
  %138 = 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 !49
  %139 = fmul double %137, %138
  %140 = getelementptr inbounds i8, ptr %12, i64 8
  %141 = getelementptr inbounds %class.Component, ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds %class.powerDef, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %class.powerComponents, ptr %142, i32 0, i32 2
  store double %139, ptr %143, align 8, !tbaa !53
  br label %144

144:                                              ; preds = %132, %31
  br label %145

145:                                              ; preds = %144, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %146 = call noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 1, i32 noundef 1)
  store double %146, ptr %10, align 8, !tbaa !9
  %147 = getelementptr inbounds i8, ptr %12, i64 8
  %148 = getelementptr inbounds %class.Component, ptr %147, i32 0, i32 1
  %149 = getelementptr inbounds %class.powerDef, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds %class.powerComponents, ptr %149, i32 0, i32 1
  %151 = load double, ptr %150, align 8, !tbaa !52
  %152 = load double, ptr %10, align 8, !tbaa !9
  %153 = fmul double %151, %152
  %154 = getelementptr inbounds i8, ptr %12, i64 8
  %155 = getelementptr inbounds %class.Component, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %class.powerDef, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %class.powerComponents, ptr %156, i32 0, i32 4
  store double %153, ptr %157, align 8, !tbaa !56
  %158 = load i32, ptr @_ZN14McPATComponent21longer_channel_deviceE, align 4, !tbaa !57
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %166

160:                                              ; preds = %145
  %161 = getelementptr inbounds i8, ptr %12, i64 8
  %162 = getelementptr inbounds %class.Component, ptr %161, i32 0, i32 1
  %163 = getelementptr inbounds %class.powerDef, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds %class.powerComponents, ptr %163, i32 0, i32 4
  %165 = load double, ptr %164, align 8, !tbaa !56
  br label %172

166:                                              ; preds = %145
  %167 = getelementptr inbounds i8, ptr %12, i64 8
  %168 = getelementptr inbounds %class.Component, ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds %class.powerDef, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds %class.powerComponents, ptr %169, i32 0, i32 1
  %171 = load double, ptr %170, align 8, !tbaa !52
  br label %172

172:                                              ; preds = %166, %160
  %173 = phi double [ %165, %160 ], [ %171, %166 ]
  %174 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %175 = getelementptr inbounds %class.McPATOutput, ptr %174, i32 0, i32 3
  store double %173, ptr %175, align 8, !tbaa !58
  %176 = getelementptr inbounds i8, ptr %12, i64 8
  %177 = getelementptr inbounds %class.Component, ptr %176, i32 0, i32 1
  %178 = getelementptr inbounds %class.powerDef, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds %class.powerComponents, ptr %178, i32 0, i32 2
  %180 = load double, ptr %179, align 8, !tbaa !53
  %181 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %182 = getelementptr inbounds %class.McPATOutput, ptr %181, i32 0, i32 4
  store double %180, ptr %182, align 8, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %183 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %184 = getelementptr inbounds %class.MCParameters, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 8, !tbaa !37
  %186 = icmp eq i32 %185, 0
  %187 = zext i1 %186 to i64
  %188 = select i1 %186, i32 72, i32 16
  %189 = sitofp i32 %188 to double
  store double %189, ptr %11, align 8, !tbaa !9
  %190 = getelementptr inbounds i8, ptr %12, i64 8
  %191 = getelementptr inbounds %class.Component, ptr %190, i32 0, i32 1
  %192 = getelementptr inbounds %class.powerDef, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds %class.powerComponents, ptr %192, i32 0, i32 0
  %194 = load double, ptr %193, align 8, !tbaa !50
  %195 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %196 = getelementptr inbounds %class.MCParameters, ptr %195, i32 0, i32 15
  %197 = load i32, ptr %196, align 4, !tbaa !60
  %198 = sitofp i32 %197 to double
  %199 = fmul double %198, 8.000000e+00
  %200 = fdiv double %199, 1.000000e+03
  %201 = fmul double %194, %200
  %202 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %203 = getelementptr inbounds %class.MCParameters, ptr %202, i32 0, i32 5
  %204 = load i32, ptr %203, align 8, !tbaa !54
  %205 = sitofp i32 %204 to double
  %206 = fmul double %201, %205
  %207 = load double, ptr %11, align 8, !tbaa !9
  %208 = fdiv double %206, %207
  %209 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %210 = getelementptr inbounds %class.MCParameters, ptr %209, i32 0, i32 3
  %211 = load i32, ptr %210, align 8, !tbaa !61
  %212 = sitofp i32 %211 to double
  %213 = fmul double %208, %212
  %214 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %215 = getelementptr inbounds %class.MCParameters, ptr %214, i32 0, i32 0
  %216 = load double, ptr %215, align 8, !tbaa !62
  %217 = fdiv double %213, %216
  %218 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %219 = getelementptr inbounds %class.McPATOutput, ptr %218, i32 0, i32 2
  store double %217, ptr %219, align 8, !tbaa !63
  %220 = getelementptr inbounds i8, ptr %12, i64 8
  %221 = getelementptr inbounds %class.Component, ptr %220, i32 0, i32 1
  %222 = getelementptr inbounds %class.powerDef, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds %class.powerComponents, ptr %222, i32 0, i32 0
  %224 = load double, ptr %223, align 8, !tbaa !50
  %225 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 9
  %226 = getelementptr inbounds %class.statsDef, ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds %class.statsComponents, ptr %226, i32 0, i32 0
  %228 = load double, ptr %227, align 8, !tbaa !64
  %229 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 9
  %230 = getelementptr inbounds %class.statsDef, ptr %229, i32 0, i32 1
  %231 = getelementptr inbounds %class.statsComponents, ptr %230, i32 0, i32 0
  %232 = load double, ptr %231, align 8, !tbaa !65
  %233 = fadd double %228, %232
  %234 = fmul double %224, %233
  %235 = getelementptr inbounds %class.MCPHY, ptr %12, i32 0, i32 3
  %236 = getelementptr inbounds %class.MCParameters, ptr %235, i32 0, i32 4
  %237 = load i32, ptr %236, align 4, !tbaa !66
  %238 = sitofp i32 %237 to double
  %239 = fmul double %234, %238
  %240 = fmul double %239, 8.000000e+00
  %241 = fdiv double %240, 1.000000e+09
  %242 = getelementptr inbounds i8, ptr %12, i64 8
  %243 = getelementptr inbounds %class.Component, ptr %242, i32 0, i32 1
  %244 = getelementptr inbounds %class.powerDef, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds %class.powerComponents, ptr %244, i32 0, i32 0
  %246 = load double, ptr %245, align 8, !tbaa !50
  %247 = fmul double %246, 1.000000e-01
  %248 = load double, ptr @_ZN14McPATComponent14execution_timeE, align 8, !tbaa !9
  %249 = call double @llvm.fmuladd.f64(double %247, double %248, double %241)
  %250 = getelementptr inbounds %class.McPATComponent, ptr %12, i32 0, i32 7
  %251 = getelementptr inbounds %class.McPATOutput, ptr %250, i32 0, i32 5
  store double %249, ptr %251, align 8, !tbaa !67
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "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 = { 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 = { 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 = !{!"_ZTS5MCPHY", !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, !26, i64 9984}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!38, !10, i64 1408}
!49 = !{!12, !10, i64 936}
!50 = !{!20, !10, i64 24}
!51 = !{!12, !10, i64 1400}
!52 = !{!20, !10, i64 32}
!53 = !{!20, !10, i64 40}
!54 = !{!38, !25, i64 9952}
!55 = !{!38, !26, i64 9985}
!56 = !{!20, !10, i64 56}
!57 = !{!25, !25, i64 0}
!58 = !{!19, !10, i64 752}
!59 = !{!19, !10, i64 760}
!60 = !{!38, !25, i64 9988}
!61 = !{!38, !25, i64 9944}
!62 = !{!38, !10, i64 9920}
!63 = !{!19, !10, i64 744}
!64 = !{!19, !10, i64 944}
!65 = !{!19, !10, i64 968}
!66 = !{!38, !25, i64 9948}
!67 = !{!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.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
@_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

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

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 #1

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 #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5MCPHY13computeEnergyEv(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 9928
  %9 = load i32, ptr %8, align 8, !tbaa !35
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %77

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 9980
  %13 = load i32, ptr %12, align 4, !tbaa !42
  %14 = icmp eq i32 %13, 0
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  br i1 %14, label %16, label %45

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 9984
  %18 = load i8, ptr %17, align 8, !tbaa !43, !range !44, !noundef !45
  %19 = trunc nuw i8 %18 to i1
  %20 = select i1 %19, double 1.000000e-02, double 4.000000e-02
  %21 = getelementptr inbounds i8, ptr %0, i64 1408
  %22 = load double, ptr %21, align 8, !tbaa !46
  %23 = fdiv double %22, 0x3FB70A3D70A3D70A
  %24 = tail call double @sqrt(double noundef %23) #4
  %25 = fmul double %20, %24
  %26 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !47
  %27 = fmul double %25, %26
  %28 = fdiv double %27, 1.200000e+00
  %29 = fmul double %26, %28
  %30 = fdiv double %29, 1.200000e+00
  store double %30, ptr %15, align 8, !tbaa !48
  %31 = fmul double %7, 5.000000e-01
  %32 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1400), align 8, !tbaa !49
  %33 = fmul double %31, %32
  %34 = 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)
  %35 = fmul double %33, %34
  %36 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !47
  %37 = fmul double %35, %36
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  store double %37, ptr %38, align 8, !tbaa !50
  %39 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1400), align 8, !tbaa !49
  %40 = fmul double %31, %39
  %41 = 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)
  %42 = fmul double %40, %41
  %43 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !47
  %44 = fmul double %42, %43
  br label %.sink.split

45:                                               ; preds = %11
  %46 = getelementptr inbounds i8, ptr %0, i64 9952
  %47 = load i32, ptr %46, align 8, !tbaa !51
  %48 = mul nsw i32 %47, 200000
  %49 = sitofp i32 %48 to double
  %50 = fmul double %49, 1.562500e-02
  %51 = getelementptr inbounds i8, ptr %0, i64 1408
  %52 = load double, ptr %51, align 8, !tbaa !46
  %53 = fdiv double %52, 0x3FB70A3D70A3D70A
  %54 = fmul double %53, 1.000000e-02
  %55 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !47
  %56 = fmul double %55, %54
  %57 = fdiv double %56, 1.200000e+00
  %58 = fmul double %55, %57
  %59 = fdiv double %58, 1.200000e+00
  store double %59, ptr %15, align 8, !tbaa !48
  %60 = getelementptr inbounds i8, ptr %0, i64 9985
  %61 = load i8, ptr %60, align 1, !tbaa !52, !range !44, !noundef !45
  %62 = trunc nuw i8 %61 to i1
  %63 = select i1 %62, double %50, double 0.000000e+00
  %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 %64, %63
  %66 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !47
  %67 = fmul double %66, %65
  %68 = getelementptr inbounds i8, ptr %0, i64 40
  store double %67, ptr %68, align 8, !tbaa !50
  %69 = load i8, ptr %60, align 1, !tbaa !52, !range !44, !noundef !45
  %70 = trunc nuw i8 %69 to i1
  %71 = select i1 %70, double %50, double 0.000000e+00
  %72 = 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)
  %73 = fmul double %72, %71
  %74 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !47
  %75 = fmul double %74, %73
  br label %.sink.split

.sink.split:                                      ; preds = %45, %16
  %.sink = phi double [ %44, %16 ], [ %75, %45 ]
  %76 = getelementptr inbounds i8, ptr %0, i64 48
  store double %.sink, ptr %76, align 8, !tbaa !53
  br label %77

77:                                               ; preds = %.sink.split, %1
  %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 !54
  %83 = load i32, ptr @_ZN14McPATComponent21longer_channel_deviceE, align 4, !tbaa !55
  %.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 9920
  %87 = getelementptr inbounds i8, ptr %0, i64 752
  store double %84, ptr %87, align 8, !tbaa !56
  %88 = getelementptr inbounds i8, ptr %0, i64 48
  %89 = load double, ptr %88, align 8, !tbaa !53
  %90 = getelementptr inbounds i8, ptr %0, i64 760
  store double %89, ptr %90, align 8, !tbaa !57
  %91 = load i32, ptr %8, align 8, !tbaa !35
  %92 = icmp eq i32 %91, 0
  %93 = select i1 %92, i32 72, i32 16
  %94 = uitofp nneg i32 %93 to double
  %95 = load double, ptr %85, align 8, !tbaa !48
  %96 = getelementptr inbounds i8, ptr %0, i64 9988
  %97 = load i32, ptr %96, align 4, !tbaa !58
  %98 = sitofp i32 %97 to double
  %99 = fmul double %98, 8.000000e+00
  %100 = fdiv double %99, 1.000000e+03
  %101 = fmul double %95, %100
  %102 = getelementptr inbounds i8, ptr %0, i64 9952
  %103 = load i32, ptr %102, align 8, !tbaa !51
  %104 = sitofp i32 %103 to double
  %105 = fmul double %101, %104
  %106 = fdiv double %105, %94
  %107 = getelementptr inbounds i8, ptr %0, i64 9944
  %108 = load i32, ptr %107, align 8, !tbaa !59
  %109 = sitofp i32 %108 to double
  %110 = fmul double %106, %109
  %111 = load double, ptr %86, align 8, !tbaa !60
  %112 = fdiv double %110, %111
  %113 = getelementptr inbounds i8, ptr %0, i64 744
  store double %112, ptr %113, align 8, !tbaa !61
  %114 = getelementptr inbounds i8, ptr %0, i64 944
  %115 = load double, ptr %114, align 8, !tbaa !62
  %116 = getelementptr inbounds i8, ptr %0, i64 968
  %117 = load double, ptr %116, align 8, !tbaa !63
  %118 = fadd double %115, %117
  %119 = fmul double %95, %118
  %120 = getelementptr inbounds i8, ptr %0, i64 9948
  %121 = load i32, ptr %120, align 4, !tbaa !64
  %122 = sitofp i32 %121 to double
  %123 = fmul double %119, %122
  %124 = fmul double %123, 8.000000e+00
  %125 = fdiv double %124, 1.000000e+09
  %126 = fmul double %95, 1.000000e-01
  %127 = load double, ptr @_ZN14McPATComponent14execution_timeE, align 8, !tbaa !65
  %128 = tail call double @llvm.fmuladd.f64(double %126, double %127, double %125)
  %129 = getelementptr inbounds i8, ptr %0, i64 768
  store double %128, ptr %129, align 8, !tbaa !66
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"_ZTS5MCPHY", !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, !24, i64 9984}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!36, !7, i64 1408}
!47 = !{!6, !7, i64 936}
!48 = !{!17, !7, i64 24}
!49 = !{!6, !7, i64 1400}
!50 = !{!17, !7, i64 32}
!51 = !{!36, !23, i64 9952}
!52 = !{!36, !24, i64 9985}
!53 = !{!17, !7, i64 40}
!54 = !{!17, !7, i64 56}
!55 = !{!23, !23, i64 0}
!56 = !{!16, !7, i64 752}
!57 = !{!16, !7, i64 760}
!58 = !{!36, !23, i64 9988}
!59 = !{!36, !23, i64 9944}
!60 = !{!36, !7, i64 9920}
!61 = !{!16, !7, i64 744}
!62 = !{!16, !7, i64 944}
!63 = !{!16, !7, i64 968}
!64 = !{!36, !23, i64 9948}
!65 = !{!7, !7, i64 0}
!66 = !{!16, !7, i64 768}


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