; LLVM IR from gem5/gem5 :: ext/mcpat/cacti/mat.ll (ZN3Mat24compute_subarray_out_drvEd)

; 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.Mat = type { %class.Component, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %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, %class.Subarray, %class.powerDef, %class.powerDef, %class.powerDef, double, i32, i32, double, %class.Area, %class.Area, i8, i8, i8, i8, i32, %class.powerDef, double, double, double, double, double, double, %class.powerDef, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32 }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Subarray = type { %class.Component, ptr, i32, i32, i32, i32, %class.Area, %class.Area, i8, double, double, double, double, double, double, double, double }
%class.Area = type { double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%class.DynamicParameter = type <{ i8, i8, i8, i8, i32, i32, i32, double, 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, [7 x i8], double, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], double, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], %class.Area, %class.Area, i8, [7 x i8] }>
%class.Wire = type { %class.Component, i32, double, double, i32, double, double, double, double, double, i32, double, double, double, %"class.std::__cxx11::list", %class.Component, %class.Component, %class.Component, double, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

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

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

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

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

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

declare noundef double @_Z7tr_R_ondiibbb(double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #2

declare noundef double @_Z8drain_C_diiidbbb(double noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN3Mat24compute_subarray_out_drvEd(ptr noundef nonnull align 8 dereferenceable(3064) %0, double noundef %1) #3 align 2 {
  %3 = alloca ptr, 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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %11 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %12 = load i8, ptr %11, align 8, !tbaa !11, !range !20, !noundef !21
  %13 = trunc i8 %12 to i1
  %14 = call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext %13, i1 noundef zeroext false)
  store double %14, ptr %9, align 8, !tbaa !9
  %15 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %16 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %17 = load i8, ptr %16, align 8, !tbaa !11, !range !20, !noundef !21
  %18 = trunc i8 %17 to i1
  %19 = call noundef double @_Z7tr_R_ondiibbb(double noundef %15, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %18, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %19, ptr %6, align 8, !tbaa !9
  %20 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !29
  %22 = getelementptr inbounds %class.DynamicParameter, ptr %21, i32 0, i32 13
  %23 = load i32, ptr %22, align 4, !tbaa !30
  %24 = sitofp i32 %23 to double
  %25 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %26 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 58
  %27 = load i8, ptr %26, align 1, !tbaa !32, !range !20, !noundef !21
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %33

29:                                               ; preds = %2
  %30 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 54
  %31 = getelementptr inbounds %class.Area, ptr %30, i32 0, i32 0
  %32 = load double, ptr %31, align 8, !tbaa !33
  br label %51

33:                                               ; preds = %2
  %34 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 53
  %35 = getelementptr inbounds %class.Area, ptr %34, i32 0, i32 0
  %36 = load double, ptr %35, align 8, !tbaa !34
  %37 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 50
  %38 = load i32, ptr %37, align 8, !tbaa !35
  %39 = sitofp i32 %38 to double
  %40 = fmul double %36, %39
  %41 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 75
  %42 = load i32, ptr %41, align 8, !tbaa !36
  %43 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 76
  %44 = load i32, ptr %43, align 4, !tbaa !37
  %45 = add nsw i32 %42, %44
  %46 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 78
  %47 = load i32, ptr %46, align 4, !tbaa !38
  %48 = add nsw i32 %45, %47
  %49 = sitofp i32 %48 to double
  %50 = fdiv double %40, %49
  br label %51

51:                                               ; preds = %33, %29
  %52 = phi double [ %32, %29 ], [ %50, %33 ]
  %53 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %54 = load i8, ptr %53, align 8, !tbaa !11, !range !20, !noundef !21
  %55 = trunc i8 %54 to i1
  %56 = call noundef double @_Z8drain_C_diiidbbb(double noundef %25, i32 noundef 1, i32 noundef 1, i32 noundef 0, double noundef %52, i1 noundef zeroext %55, i1 noundef zeroext false, i1 noundef zeroext false)
  %57 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %58 = load double, ptr %9, align 8, !tbaa !9
  %59 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %60 = call double @llvm.fmuladd.f64(double %58, double %59, double %57)
  %61 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %62 = load i8, ptr %61, align 8, !tbaa !11, !range !20, !noundef !21
  %63 = trunc i8 %62 to i1
  %64 = call noundef double @_Z6gate_Cddbbb(double noundef %60, double noundef 0.000000e+00, i1 noundef zeroext %63, i1 noundef zeroext false, i1 noundef zeroext false)
  %65 = call double @llvm.fmuladd.f64(double %24, double %56, double %64)
  store double %65, ptr %5, align 8, !tbaa !9
  %66 = load double, ptr %6, align 8, !tbaa !9
  %67 = load double, ptr %5, align 8, !tbaa !9
  %68 = fmul double %66, %67
  store double %68, ptr %7, align 8, !tbaa !9
  %69 = load double, ptr %4, align 8, !tbaa !9
  %70 = load double, ptr %7, align 8, !tbaa !9
  %71 = call noundef double @_Z8horowitzddddi(double noundef %69, double noundef %70, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %71, ptr %8, align 8, !tbaa !9
  %72 = load double, ptr %8, align 8, !tbaa !9
  %73 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 64
  %74 = load double, ptr %73, align 8, !tbaa !40
  %75 = fadd double %74, %72
  store double %75, ptr %73, align 8, !tbaa !40
  %76 = load double, ptr %8, align 8, !tbaa !9
  %77 = fdiv double %76, 5.000000e-01
  store double %77, ptr %4, align 8, !tbaa !9
  %78 = load double, ptr %5, align 8, !tbaa !9
  %79 = fmul double %78, 5.000000e-01
  %80 = 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 !41
  %81 = fmul double %79, %80
  %82 = 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 !41
  %83 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %84 = getelementptr inbounds %class.powerDef, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %class.powerComponents, ptr %84, i32 0, i32 0
  %86 = load double, ptr %85, align 8, !tbaa !42
  %87 = call double @llvm.fmuladd.f64(double %81, double %82, double %86)
  store double %87, ptr %85, align 8, !tbaa !42
  %88 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %89 = getelementptr inbounds %class.powerDef, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %class.powerComponents, ptr %89, i32 0, i32 1
  %91 = load double, ptr %90, align 8, !tbaa !43
  %92 = fadd double %91, 0.000000e+00
  store double %92, ptr %90, align 8, !tbaa !43
  %93 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %94 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %93, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %95 = 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 !41
  %96 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %97 = getelementptr inbounds %class.powerDef, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %class.powerComponents, ptr %97, i32 0, i32 2
  %99 = load double, ptr %98, align 8, !tbaa !44
  %100 = call double @llvm.fmuladd.f64(double %94, double %95, double %99)
  store double %100, ptr %98, align 8, !tbaa !44
  %101 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %102 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %103 = load i8, ptr %102, align 8, !tbaa !11, !range !20, !noundef !21
  %104 = trunc i8 %103 to i1
  %105 = call noundef double @_Z7tr_R_ondiibbb(double noundef %101, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %104, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %105, ptr %6, align 8, !tbaa !9
  %106 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %107 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !45
  %108 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %109 = load i8, ptr %108, align 8, !tbaa !11, !range !20, !noundef !21
  %110 = trunc i8 %109 to i1
  %111 = call noundef double @_Z8drain_C_diiidbbb(double noundef %106, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %107, i1 noundef zeroext %110, i1 noundef zeroext false, i1 noundef zeroext false)
  %112 = load double, ptr %9, align 8, !tbaa !9
  %113 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %114 = fmul double %112, %113
  %115 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !45
  %116 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %117 = load i8, ptr %116, align 8, !tbaa !11, !range !20, !noundef !21
  %118 = trunc i8 %117 to i1
  %119 = call noundef double @_Z8drain_C_diiidbbb(double noundef %114, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %115, i1 noundef zeroext %118, i1 noundef zeroext false, i1 noundef zeroext false)
  %120 = fadd double %111, %119
  %121 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %122 = load double, ptr %9, align 8, !tbaa !9
  %123 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %124 = call double @llvm.fmuladd.f64(double %122, double %123, double %121)
  %125 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %126 = load i8, ptr %125, align 8, !tbaa !11, !range !20, !noundef !21
  %127 = trunc i8 %126 to i1
  %128 = call noundef double @_Z6gate_Cddbbb(double noundef %124, double noundef 0.000000e+00, i1 noundef zeroext %127, i1 noundef zeroext false, i1 noundef zeroext false)
  %129 = fadd double %120, %128
  store double %129, ptr %5, align 8, !tbaa !9
  %130 = load double, ptr %6, align 8, !tbaa !9
  %131 = load double, ptr %5, align 8, !tbaa !9
  %132 = fmul double %130, %131
  store double %132, ptr %7, align 8, !tbaa !9
  %133 = load double, ptr %4, align 8, !tbaa !9
  %134 = load double, ptr %7, align 8, !tbaa !9
  %135 = call noundef double @_Z8horowitzddddi(double noundef %133, double noundef %134, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %135, ptr %8, align 8, !tbaa !9
  %136 = load double, ptr %8, align 8, !tbaa !9
  %137 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 64
  %138 = load double, ptr %137, align 8, !tbaa !40
  %139 = fadd double %138, %136
  store double %139, ptr %137, align 8, !tbaa !40
  %140 = load double, ptr %8, align 8, !tbaa !9
  %141 = fdiv double %140, 5.000000e-01
  store double %141, ptr %4, align 8, !tbaa !9
  %142 = load double, ptr %5, align 8, !tbaa !9
  %143 = fmul double %142, 5.000000e-01
  %144 = 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 !41
  %145 = fmul double %143, %144
  %146 = 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 !41
  %147 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %148 = getelementptr inbounds %class.powerDef, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %class.powerComponents, ptr %148, i32 0, i32 0
  %150 = load double, ptr %149, align 8, !tbaa !42
  %151 = call double @llvm.fmuladd.f64(double %145, double %146, double %150)
  store double %151, ptr %149, align 8, !tbaa !42
  %152 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %153 = load double, ptr %9, align 8, !tbaa !9
  %154 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %155 = fmul double %153, %154
  %156 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %157 = load i8, ptr %156, align 8, !tbaa !11, !range !20, !noundef !21
  %158 = trunc i8 %157 to i1
  %159 = call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %152, double noundef %155, i32 noundef 1, i32 noundef 2, i1 noundef zeroext %158, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %160 = 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 !41
  %161 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %162 = getelementptr inbounds %class.powerDef, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds %class.powerComponents, ptr %162, i32 0, i32 1
  %164 = load double, ptr %163, align 8, !tbaa !43
  %165 = call double @llvm.fmuladd.f64(double %159, double %160, double %164)
  store double %165, ptr %163, align 8, !tbaa !43
  %166 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %167 = load double, ptr %9, align 8, !tbaa !9
  %168 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %169 = fmul double %167, %168
  %170 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %166, double noundef %169, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %171 = 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 !41
  %172 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %173 = getelementptr inbounds %class.powerDef, ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds %class.powerComponents, ptr %173, i32 0, i32 2
  %175 = load double, ptr %174, align 8, !tbaa !44
  %176 = call double @llvm.fmuladd.f64(double %170, double %171, double %175)
  store double %176, ptr %174, align 8, !tbaa !44
  %177 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %178 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %179 = load i8, ptr %178, align 8, !tbaa !11, !range !20, !noundef !21
  %180 = trunc i8 %179 to i1
  %181 = call noundef double @_Z7tr_R_ondiibbb(double noundef %177, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %180, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %181, ptr %6, align 8, !tbaa !9
  %182 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %183 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !45
  %184 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %185 = load i8, ptr %184, align 8, !tbaa !11, !range !20, !noundef !21
  %186 = trunc i8 %185 to i1
  %187 = call noundef double @_Z8drain_C_diiidbbb(double noundef %182, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %183, i1 noundef zeroext %186, i1 noundef zeroext false, i1 noundef zeroext false)
  %188 = load double, ptr %9, align 8, !tbaa !9
  %189 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %190 = fmul double %188, %189
  %191 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !45
  %192 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %193 = load i8, ptr %192, align 8, !tbaa !11, !range !20, !noundef !21
  %194 = trunc i8 %193 to i1
  %195 = call noundef double @_Z8drain_C_diiidbbb(double noundef %190, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %191, i1 noundef zeroext %194, i1 noundef zeroext false, i1 noundef zeroext false)
  %196 = fadd double %187, %195
  %197 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %198 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 58
  %199 = load i8, ptr %198, align 1, !tbaa !32, !range !20, !noundef !21
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %205

201:                                              ; preds = %51
  %202 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 54
  %203 = getelementptr inbounds %class.Area, ptr %202, i32 0, i32 0
  %204 = load double, ptr %203, align 8, !tbaa !33
  br label %229

205:                                              ; preds = %51
  %206 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 53
  %207 = getelementptr inbounds %class.Area, ptr %206, i32 0, i32 0
  %208 = load double, ptr %207, align 8, !tbaa !34
  %209 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 50
  %210 = load i32, ptr %209, align 8, !tbaa !35
  %211 = sitofp i32 %210 to double
  %212 = fmul double %208, %211
  %213 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !29
  %215 = getelementptr inbounds %class.DynamicParameter, ptr %214, i32 0, i32 13
  %216 = load i32, ptr %215, align 4, !tbaa !30
  %217 = sitofp i32 %216 to double
  %218 = fmul double %212, %217
  %219 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 75
  %220 = load i32, ptr %219, align 8, !tbaa !36
  %221 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 76
  %222 = load i32, ptr %221, align 4, !tbaa !37
  %223 = add nsw i32 %220, %222
  %224 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 78
  %225 = load i32, ptr %224, align 4, !tbaa !38
  %226 = add nsw i32 %223, %225
  %227 = sitofp i32 %226 to double
  %228 = fdiv double %218, %227
  br label %229

229:                                              ; preds = %205, %201
  %230 = phi double [ %204, %201 ], [ %228, %205 ]
  %231 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %232 = load i8, ptr %231, align 8, !tbaa !11, !range !20, !noundef !21
  %233 = trunc i8 %232 to i1
  %234 = call noundef double @_Z8drain_C_diiidbbb(double noundef %197, i32 noundef 1, i32 noundef 1, i32 noundef 0, double noundef %230, i1 noundef zeroext %233, i1 noundef zeroext false, i1 noundef zeroext false)
  %235 = fadd double %196, %234
  store double %235, ptr %5, align 8, !tbaa !9
  %236 = load double, ptr %6, align 8, !tbaa !9
  %237 = load double, ptr %5, align 8, !tbaa !9
  %238 = fmul double %236, %237
  store double %238, ptr %7, align 8, !tbaa !9
  %239 = load double, ptr %4, align 8, !tbaa !9
  %240 = load double, ptr %7, align 8, !tbaa !9
  %241 = call noundef double @_Z8horowitzddddi(double noundef %239, double noundef %240, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %241, ptr %8, align 8, !tbaa !9
  %242 = load double, ptr %8, align 8, !tbaa !9
  %243 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 64
  %244 = load double, ptr %243, align 8, !tbaa !40
  %245 = fadd double %244, %242
  store double %245, ptr %243, align 8, !tbaa !40
  %246 = load double, ptr %8, align 8, !tbaa !9
  %247 = fdiv double %246, 5.000000e-01
  store double %247, ptr %4, align 8, !tbaa !9
  %248 = load double, ptr %5, align 8, !tbaa !9
  %249 = fmul double %248, 5.000000e-01
  %250 = 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 !41
  %251 = fmul double %249, %250
  %252 = 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 !41
  %253 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %254 = getelementptr inbounds %class.powerDef, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %class.powerComponents, ptr %254, i32 0, i32 0
  %256 = load double, ptr %255, align 8, !tbaa !42
  %257 = call double @llvm.fmuladd.f64(double %251, double %252, double %256)
  store double %257, ptr %255, align 8, !tbaa !42
  %258 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %259 = load double, ptr %9, align 8, !tbaa !9
  %260 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %261 = fmul double %259, %260
  %262 = call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %258, double noundef %261, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %263 = 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 !41
  %264 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %265 = getelementptr inbounds %class.powerDef, ptr %264, i32 0, i32 0
  %266 = getelementptr inbounds %class.powerComponents, ptr %265, i32 0, i32 1
  %267 = load double, ptr %266, align 8, !tbaa !43
  %268 = call double @llvm.fmuladd.f64(double %262, double %263, double %267)
  store double %268, ptr %266, align 8, !tbaa !43
  %269 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %270 = load double, ptr %9, align 8, !tbaa !9
  %271 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %272 = fmul double %270, %271
  %273 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %269, double noundef %272, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %274 = 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 !41
  %275 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %276 = getelementptr inbounds %class.powerDef, ptr %275, i32 0, i32 0
  %277 = getelementptr inbounds %class.powerComponents, ptr %276, i32 0, i32 2
  %278 = load double, ptr %277, align 8, !tbaa !44
  %279 = call double @llvm.fmuladd.f64(double %273, double %274, double %278)
  store double %279, ptr %277, align 8, !tbaa !44
  %280 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %281 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %282 = load i8, ptr %281, align 8, !tbaa !11, !range !20, !noundef !21
  %283 = trunc i8 %282 to i1
  %284 = call noundef double @_Z7tr_R_ondiibbb(double noundef %280, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %283, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %284, ptr %6, align 8, !tbaa !9
  %285 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 1
  %286 = load ptr, ptr %285, align 8, !tbaa !29
  %287 = getelementptr inbounds %class.DynamicParameter, ptr %286, i32 0, i32 14
  %288 = load i32, ptr %287, align 8, !tbaa !46
  %289 = sitofp i32 %288 to double
  %290 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %291 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 58
  %292 = load i8, ptr %291, align 1, !tbaa !32, !range !20, !noundef !21
  %293 = trunc i8 %292 to i1
  br i1 %293, label %294, label %298

294:                                              ; preds = %229
  %295 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 54
  %296 = getelementptr inbounds %class.Area, ptr %295, i32 0, i32 0
  %297 = load double, ptr %296, align 8, !tbaa !33
  br label %322

298:                                              ; preds = %229
  %299 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 53
  %300 = getelementptr inbounds %class.Area, ptr %299, i32 0, i32 0
  %301 = load double, ptr %300, align 8, !tbaa !34
  %302 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 50
  %303 = load i32, ptr %302, align 8, !tbaa !35
  %304 = sitofp i32 %303 to double
  %305 = fmul double %301, %304
  %306 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 1
  %307 = load ptr, ptr %306, align 8, !tbaa !29
  %308 = getelementptr inbounds %class.DynamicParameter, ptr %307, i32 0, i32 13
  %309 = load i32, ptr %308, align 4, !tbaa !30
  %310 = sitofp i32 %309 to double
  %311 = fmul double %305, %310
  %312 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 75
  %313 = load i32, ptr %312, align 8, !tbaa !36
  %314 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 76
  %315 = load i32, ptr %314, align 4, !tbaa !37
  %316 = add nsw i32 %313, %315
  %317 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 78
  %318 = load i32, ptr %317, align 4, !tbaa !38
  %319 = add nsw i32 %316, %318
  %320 = sitofp i32 %319 to double
  %321 = fdiv double %311, %320
  br label %322

322:                                              ; preds = %298, %294
  %323 = phi double [ %297, %294 ], [ %321, %298 ]
  %324 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %325 = load i8, ptr %324, align 8, !tbaa !11, !range !20, !noundef !21
  %326 = trunc i8 %325 to i1
  %327 = call noundef double @_Z8drain_C_diiidbbb(double noundef %290, i32 noundef 1, i32 noundef 1, i32 noundef 0, double noundef %323, i1 noundef zeroext %326, i1 noundef zeroext false, i1 noundef zeroext false)
  %328 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 14
  %329 = load ptr, ptr %328, align 8, !tbaa !47
  %330 = getelementptr inbounds %class.Wire, ptr %329, i32 0, i32 5
  %331 = load double, ptr %330, align 8, !tbaa !48
  %332 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 14
  %333 = load ptr, ptr %332, align 8, !tbaa !47
  %334 = getelementptr inbounds %class.Wire, ptr %333, i32 0, i32 7
  %335 = load double, ptr %334, align 8, !tbaa !57
  %336 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 14
  %337 = load ptr, ptr %336, align 8, !tbaa !47
  %338 = getelementptr inbounds %class.Wire, ptr %337, i32 0, i32 6
  %339 = load double, ptr %338, align 8, !tbaa !58
  %340 = fdiv double %335, %339
  %341 = fmul double %331, %340
  %342 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !39
  %343 = fmul double %341, %342
  %344 = load double, ptr %9, align 8, !tbaa !9
  %345 = fadd double 1.000000e+00, %344
  %346 = fmul double %343, %345
  %347 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 55
  %348 = load i8, ptr %347, align 8, !tbaa !11, !range !20, !noundef !21
  %349 = trunc i8 %348 to i1
  %350 = call noundef double @_Z6gate_Cddbbb(double noundef %346, double noundef 0.000000e+00, i1 noundef zeroext %349, i1 noundef zeroext false, i1 noundef zeroext false)
  %351 = call double @llvm.fmuladd.f64(double %289, double %327, double %350)
  store double %351, ptr %5, align 8, !tbaa !9
  %352 = load double, ptr %6, align 8, !tbaa !9
  %353 = load double, ptr %5, align 8, !tbaa !9
  %354 = fmul double %352, %353
  store double %354, ptr %7, align 8, !tbaa !9
  %355 = load double, ptr %4, align 8, !tbaa !9
  %356 = load double, ptr %7, align 8, !tbaa !9
  %357 = call noundef double @_Z8horowitzddddi(double noundef %355, double noundef %356, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %357, ptr %8, align 8, !tbaa !9
  %358 = load double, ptr %8, align 8, !tbaa !9
  %359 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 64
  %360 = load double, ptr %359, align 8, !tbaa !40
  %361 = fadd double %360, %358
  store double %361, ptr %359, align 8, !tbaa !40
  %362 = load double, ptr %8, align 8, !tbaa !9
  %363 = fdiv double %362, 5.000000e-01
  store double %363, ptr %4, align 8, !tbaa !9
  %364 = load double, ptr %5, align 8, !tbaa !9
  %365 = fmul double %364, 5.000000e-01
  %366 = 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 !41
  %367 = fmul double %365, %366
  %368 = 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 !41
  %369 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %370 = getelementptr inbounds %class.powerDef, ptr %369, i32 0, i32 0
  %371 = getelementptr inbounds %class.powerComponents, ptr %370, i32 0, i32 0
  %372 = load double, ptr %371, align 8, !tbaa !42
  %373 = call double @llvm.fmuladd.f64(double %367, double %368, double %372)
  store double %373, ptr %371, align 8, !tbaa !42
  %374 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %375 = getelementptr inbounds %class.powerDef, ptr %374, i32 0, i32 0
  %376 = getelementptr inbounds %class.powerComponents, ptr %375, i32 0, i32 1
  %377 = load double, ptr %376, align 8, !tbaa !43
  %378 = fadd double %377, 0.000000e+00
  store double %378, ptr %376, align 8, !tbaa !43
  %379 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 33), align 8, !tbaa !22
  %380 = call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %379, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %381 = 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 !41
  %382 = getelementptr inbounds %class.Mat, ptr %10, i32 0, i32 27
  %383 = getelementptr inbounds %class.powerDef, ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds %class.powerComponents, ptr %383, i32 0, i32 2
  %385 = load double, ptr %384, align 8, !tbaa !44
  %386 = call double @llvm.fmuladd.f64(double %380, double %381, double %385)
  store double %386, ptr %384, align 8, !tbaa !44
  %387 = load double, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret double %387
}

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

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 }

!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, !19, i64 2720}
!12 = !{!"_ZTS3Mat", !13, i64 0, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !15, i64 440, !15, i64 560, !15, i64 680, !15, i64 800, !15, i64 920, !15, i64 1040, !15, i64 1160, !15, i64 1280, !15, i64 1400, !15, i64 1520, !15, i64 1640, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !17, i64 1864, !15, i64 2288, !15, i64 2408, !15, i64 2528, !10, i64 2648, !18, i64 2656, !18, i64 2660, !10, i64 2664, !14, i64 2672, !14, i64 2696, !19, i64 2720, !19, i64 2721, !19, i64 2722, !19, i64 2723, !18, i64 2724, !15, i64 2728, !10, i64 2848, !10, i64 2856, !10, i64 2864, !10, i64 2872, !10, i64 2880, !10, i64 2888, !15, i64 2896, !18, i64 3016, !18, i64 3020, !18, i64 3024, !18, i64 3028, !10, i64 3032, !18, i64 3040, !18, i64 3044, !18, i64 3048, !18, i64 3052, !18, i64 3056, !18, i64 3060}
!13 = !{!"_ZTS9Component", !14, i64 0, !15, i64 24, !15, i64 144, !10, i64 264, !10, i64 272}
!14 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"_ZTS8powerDef", !16, i64 0, !16, i64 40, !16, i64 80}
!16 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!17 = !{!"_ZTS8Subarray", !13, i64 0, !6, i64 280, !18, i64 288, !18, i64 292, !18, i64 296, !18, i64 300, !14, i64 304, !14, i64 328, !19, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416}
!18 = !{!"int", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !10, i64 264}
!23 = !{!"_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, !24, i64 352, !25, i64 360, !25, i64 528, !25, i64 696, !25, i64 864, !25, i64 1032, !26, i64 1200, !26, i64 1264, !26, i64 1328, !27, i64 1392, !28, i64 1416, !28, i64 1464, !28, i64 1512}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_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}
!26 = !{!"_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}
!27 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !10, i64 0, !10, i64 8, !10, i64 16}
!28 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!29 = !{!12, !6, i64 280}
!30 = !{!31, !18, i64 44}
!31 = !{!"_ZTS16DynamicParameter", !19, i64 0, !19, i64 1, !19, i64 2, !19, i64 3, !18, i64 4, !18, i64 8, !18, i64 12, !10, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !18, i64 80, !18, i64 84, !18, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !19, i64 120, !10, i64 128, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !18, i64 152, !18, i64 156, !18, i64 160, !18, i64 164, !18, i64 168, !10, i64 176, !18, i64 184, !18, i64 188, !18, i64 192, !18, i64 196, !18, i64 200, !18, i64 204, !18, i64 208, !19, i64 212, !14, i64 216, !14, i64 240, !19, i64 264}
!32 = !{!12, !19, i64 2723}
!33 = !{!12, !10, i64 2696}
!34 = !{!12, !10, i64 2672}
!35 = !{!12, !18, i64 2656}
!36 = !{!12, !18, i64 3048}
!37 = !{!12, !18, i64 3052}
!38 = !{!12, !18, i64 3060}
!39 = !{!23, !10, i64 8}
!40 = !{!12, !10, i64 2872}
!41 = !{!23, !10, i64 936}
!42 = !{!12, !10, i64 1160}
!43 = !{!12, !10, i64 1168}
!44 = !{!12, !10, i64 1176}
!45 = !{!23, !10, i64 312}
!46 = !{!31, !18, i64 48}
!47 = !{!12, !6, i64 384}
!48 = !{!49, !10, i64 312}
!49 = !{!"_ZTS4Wire", !13, i64 0, !50, i64 280, !10, i64 288, !10, i64 296, !51, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !18, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !52, i64 384, !13, i64 408, !13, i64 688, !13, i64 968, !10, i64 1248, !6, i64 1256}
!50 = !{!"_ZTS9Wire_type", !7, i64 0}
!51 = !{!"_ZTS14Wire_placement", !7, i64 0}
!52 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !53, i64 0}
!53 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !54, i64 0}
!54 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !55, i64 0}
!55 = !{!"_ZTSNSt8__detail17_List_node_headerE", !56, i64 0, !24, i64 16}
!56 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!57 = !{!49, !10, i64 328}
!58 = !{!49, !10, i64 320}


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

%class.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN3Mat24compute_subarray_out_drvEd(ptr nocapture noundef nonnull align 8 dereferenceable(3064) %0, double noundef %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 2720
  %4 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %5 = trunc nuw i8 %4 to i1
  %6 = tail call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext %5, i1 noundef zeroext false)
  %7 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %8 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %9 = trunc nuw i8 %8 to i1
  %10 = tail call noundef double @_Z7tr_R_ondiibbb(double noundef %7, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %9, i1 noundef zeroext false, i1 noundef zeroext false)
  %11 = getelementptr inbounds i8, ptr %0, i64 280
  %12 = load ptr, ptr %11, align 8, !tbaa !27
  %13 = getelementptr inbounds i8, ptr %12, i64 44
  %14 = load i32, ptr %13, align 4, !tbaa !28
  %15 = sitofp i32 %14 to double
  %16 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %0, i64 2723
  %18 = load i8, ptr %17, align 1, !tbaa !30, !range !18, !noundef !19
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %20, label %23

20:                                               ; preds = %2
  %21 = getelementptr inbounds i8, ptr %0, i64 2696
  %22 = load double, ptr %21, align 8, !tbaa !31
  br label %40

23:                                               ; preds = %2
  %24 = getelementptr inbounds i8, ptr %0, i64 2672
  %25 = load double, ptr %24, align 8, !tbaa !32
  %26 = getelementptr inbounds i8, ptr %0, i64 2656
  %27 = load i32, ptr %26, align 8, !tbaa !33
  %28 = sitofp i32 %27 to double
  %29 = fmul double %25, %28
  %30 = getelementptr inbounds i8, ptr %0, i64 3048
  %31 = load i32, ptr %30, align 8, !tbaa !34
  %32 = getelementptr inbounds i8, ptr %0, i64 3052
  %33 = load i32, ptr %32, align 4, !tbaa !35
  %34 = add nsw i32 %33, %31
  %35 = getelementptr inbounds i8, ptr %0, i64 3060
  %36 = load i32, ptr %35, align 4, !tbaa !36
  %37 = add nsw i32 %34, %36
  %38 = sitofp i32 %37 to double
  %39 = fdiv double %29, %38
  br label %40

40:                                               ; preds = %23, %20
  %41 = phi double [ %22, %20 ], [ %39, %23 ]
  %42 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %43 = trunc nuw i8 %42 to i1
  %44 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %16, i32 noundef 1, i32 noundef 1, i32 noundef 0, double noundef %41, i1 noundef zeroext %43, i1 noundef zeroext false, i1 noundef zeroext false)
  %45 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %46 = tail call double @llvm.fmuladd.f64(double %6, double %45, double %45)
  %47 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %48 = trunc nuw i8 %47 to i1
  %49 = tail call noundef double @_Z6gate_Cddbbb(double noundef %46, double noundef 0.000000e+00, i1 noundef zeroext %48, i1 noundef zeroext false, i1 noundef zeroext false)
  %50 = tail call double @llvm.fmuladd.f64(double %15, double %44, double %49)
  %51 = fmul double %10, %50
  %52 = tail call noundef double @_Z8horowitzddddi(double noundef %1, double noundef %51, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %53 = getelementptr inbounds i8, ptr %0, i64 2872
  %54 = load double, ptr %53, align 8, !tbaa !38
  %55 = fadd double %52, %54
  store double %55, ptr %53, align 8, !tbaa !38
  %56 = fmul double %52, 2.000000e+00
  %57 = fmul double %50, 5.000000e-01
  %58 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %59 = fmul double %57, %58
  %60 = getelementptr inbounds i8, ptr %0, i64 1160
  %61 = load double, ptr %60, align 8, !tbaa !40
  %62 = tail call double @llvm.fmuladd.f64(double %59, double %58, double %61)
  store double %62, ptr %60, align 8, !tbaa !40
  %63 = getelementptr inbounds i8, ptr %0, i64 1168
  %64 = load double, ptr %63, align 8, !tbaa !41
  %65 = fadd double %64, 0.000000e+00
  store double %65, ptr %63, align 8, !tbaa !41
  %66 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %67 = tail call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %66, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %68 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %69 = getelementptr inbounds i8, ptr %0, i64 1176
  %70 = load double, ptr %69, align 8, !tbaa !42
  %71 = tail call double @llvm.fmuladd.f64(double %67, double %68, double %70)
  store double %71, ptr %69, align 8, !tbaa !42
  %72 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %73 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %74 = trunc nuw i8 %73 to i1
  %75 = tail call noundef double @_Z7tr_R_ondiibbb(double noundef %72, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %74, i1 noundef zeroext false, i1 noundef zeroext false)
  %76 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %77 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !43
  %78 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %79 = trunc nuw i8 %78 to i1
  %80 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %76, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %77, i1 noundef zeroext %79, i1 noundef zeroext false, i1 noundef zeroext false)
  %81 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %82 = fmul double %6, %81
  %83 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !43
  %84 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %85 = trunc nuw i8 %84 to i1
  %86 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %82, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %83, i1 noundef zeroext %85, i1 noundef zeroext false, i1 noundef zeroext false)
  %87 = fadd double %80, %86
  %88 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %89 = tail call double @llvm.fmuladd.f64(double %6, double %88, double %88)
  %90 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %91 = trunc nuw i8 %90 to i1
  %92 = tail call noundef double @_Z6gate_Cddbbb(double noundef %89, double noundef 0.000000e+00, i1 noundef zeroext %91, i1 noundef zeroext false, i1 noundef zeroext false)
  %93 = fadd double %87, %92
  %94 = fmul double %75, %93
  %95 = tail call noundef double @_Z8horowitzddddi(double noundef %56, double noundef %94, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %96 = load double, ptr %53, align 8, !tbaa !38
  %97 = fadd double %95, %96
  store double %97, ptr %53, align 8, !tbaa !38
  %98 = fmul double %95, 2.000000e+00
  %99 = fmul double %93, 5.000000e-01
  %100 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %101 = fmul double %99, %100
  %102 = load double, ptr %60, align 8, !tbaa !40
  %103 = tail call double @llvm.fmuladd.f64(double %101, double %100, double %102)
  store double %103, ptr %60, align 8, !tbaa !40
  %104 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %105 = fmul double %6, %104
  %106 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %107 = trunc nuw i8 %106 to i1
  %108 = tail call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %104, double noundef %105, i32 noundef 1, i32 noundef 2, i1 noundef zeroext %107, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %109 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %110 = load double, ptr %63, align 8, !tbaa !41
  %111 = tail call double @llvm.fmuladd.f64(double %108, double %109, double %110)
  store double %111, ptr %63, align 8, !tbaa !41
  %112 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %113 = fmul double %6, %112
  %114 = tail call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %112, double noundef %113, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %115 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %116 = load double, ptr %69, align 8, !tbaa !42
  %117 = tail call double @llvm.fmuladd.f64(double %114, double %115, double %116)
  store double %117, ptr %69, align 8, !tbaa !42
  %118 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %119 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %120 = trunc nuw i8 %119 to i1
  %121 = tail call noundef double @_Z7tr_R_ondiibbb(double noundef %118, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %120, i1 noundef zeroext false, i1 noundef zeroext false)
  %122 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %123 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !43
  %124 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %125 = trunc nuw i8 %124 to i1
  %126 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %122, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %123, i1 noundef zeroext %125, i1 noundef zeroext false, i1 noundef zeroext false)
  %127 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %128 = fmul double %6, %127
  %129 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !43
  %130 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %131 = trunc nuw i8 %130 to i1
  %132 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %128, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %129, i1 noundef zeroext %131, i1 noundef zeroext false, i1 noundef zeroext false)
  %133 = fadd double %126, %132
  %134 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %135 = load i8, ptr %17, align 1, !tbaa !30, !range !18, !noundef !19
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %137, label %140

137:                                              ; preds = %40
  %138 = getelementptr inbounds i8, ptr %0, i64 2696
  %139 = load double, ptr %138, align 8, !tbaa !31
  br label %162

140:                                              ; preds = %40
  %141 = getelementptr inbounds i8, ptr %0, i64 2672
  %142 = load double, ptr %141, align 8, !tbaa !32
  %143 = getelementptr inbounds i8, ptr %0, i64 2656
  %144 = load i32, ptr %143, align 8, !tbaa !33
  %145 = sitofp i32 %144 to double
  %146 = fmul double %142, %145
  %147 = load ptr, ptr %11, align 8, !tbaa !27
  %148 = getelementptr inbounds i8, ptr %147, i64 44
  %149 = load i32, ptr %148, align 4, !tbaa !28
  %150 = sitofp i32 %149 to double
  %151 = fmul double %146, %150
  %152 = getelementptr inbounds i8, ptr %0, i64 3048
  %153 = load i32, ptr %152, align 8, !tbaa !34
  %154 = getelementptr inbounds i8, ptr %0, i64 3052
  %155 = load i32, ptr %154, align 4, !tbaa !35
  %156 = add nsw i32 %155, %153
  %157 = getelementptr inbounds i8, ptr %0, i64 3060
  %158 = load i32, ptr %157, align 4, !tbaa !36
  %159 = add nsw i32 %156, %158
  %160 = sitofp i32 %159 to double
  %161 = fdiv double %151, %160
  br label %162

162:                                              ; preds = %140, %137
  %163 = phi double [ %139, %137 ], [ %161, %140 ]
  %164 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %165 = trunc nuw i8 %164 to i1
  %166 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %134, i32 noundef 1, i32 noundef 1, i32 noundef 0, double noundef %163, i1 noundef zeroext %165, i1 noundef zeroext false, i1 noundef zeroext false)
  %167 = fadd double %133, %166
  %168 = fmul double %121, %167
  %169 = tail call noundef double @_Z8horowitzddddi(double noundef %98, double noundef %168, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %170 = load double, ptr %53, align 8, !tbaa !38
  %171 = fadd double %169, %170
  store double %171, ptr %53, align 8, !tbaa !38
  %172 = fmul double %167, 5.000000e-01
  %173 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %174 = fmul double %172, %173
  %175 = load double, ptr %60, align 8, !tbaa !40
  %176 = tail call double @llvm.fmuladd.f64(double %174, double %173, double %175)
  store double %176, ptr %60, align 8, !tbaa !40
  %177 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %178 = fmul double %6, %177
  %179 = tail call noundef double @_Z17cmos_Isub_leakageddi9Gate_typebbb17Half_net_topology(double noundef %177, double noundef %178, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %180 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %181 = load double, ptr %63, align 8, !tbaa !41
  %182 = tail call double @llvm.fmuladd.f64(double %179, double %180, double %181)
  store double %182, ptr %63, align 8, !tbaa !41
  %183 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %184 = fmul double %6, %183
  %185 = tail call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %183, double noundef %184, i32 noundef 1, i32 noundef 2, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %186 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %187 = load double, ptr %69, align 8, !tbaa !42
  %188 = tail call double @llvm.fmuladd.f64(double %185, double %186, double %187)
  store double %188, ptr %69, align 8, !tbaa !42
  %189 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %190 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %191 = trunc nuw i8 %190 to i1
  %192 = tail call noundef double @_Z7tr_R_ondiibbb(double noundef %189, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %191, i1 noundef zeroext false, i1 noundef zeroext false)
  %193 = load ptr, ptr %11, align 8, !tbaa !27
  %194 = getelementptr inbounds i8, ptr %193, i64 48
  %195 = load i32, ptr %194, align 8, !tbaa !44
  %196 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %197 = load i8, ptr %17, align 1, !tbaa !30, !range !18, !noundef !19
  %198 = trunc nuw i8 %197 to i1
  br i1 %198, label %199, label %202

199:                                              ; preds = %162
  %200 = getelementptr inbounds i8, ptr %0, i64 2696
  %201 = load double, ptr %200, align 8, !tbaa !31
  br label %223

202:                                              ; preds = %162
  %203 = getelementptr inbounds i8, ptr %0, i64 2672
  %204 = load double, ptr %203, align 8, !tbaa !32
  %205 = getelementptr inbounds i8, ptr %0, i64 2656
  %206 = load i32, ptr %205, align 8, !tbaa !33
  %207 = sitofp i32 %206 to double
  %208 = fmul double %204, %207
  %209 = getelementptr inbounds i8, ptr %193, i64 44
  %210 = load i32, ptr %209, align 4, !tbaa !28
  %211 = sitofp i32 %210 to double
  %212 = fmul double %208, %211
  %213 = getelementptr inbounds i8, ptr %0, i64 3048
  %214 = load i32, ptr %213, align 8, !tbaa !34
  %215 = getelementptr inbounds i8, ptr %0, i64 3052
  %216 = load i32, ptr %215, align 4, !tbaa !35
  %217 = add nsw i32 %216, %214
  %218 = getelementptr inbounds i8, ptr %0, i64 3060
  %219 = load i32, ptr %218, align 4, !tbaa !36
  %220 = add nsw i32 %217, %219
  %221 = sitofp i32 %220 to double
  %222 = fdiv double %212, %221
  br label %223

223:                                              ; preds = %202, %199
  %224 = phi double [ %201, %199 ], [ %222, %202 ]
  %225 = sitofp i32 %195 to double
  %226 = fmul double %169, 2.000000e+00
  %227 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %228 = trunc nuw i8 %227 to i1
  %229 = tail call noundef double @_Z8drain_C_diiidbbb(double noundef %196, i32 noundef 1, i32 noundef 1, i32 noundef 0, double noundef %224, i1 noundef zeroext %228, i1 noundef zeroext false, i1 noundef zeroext false)
  %230 = getelementptr inbounds i8, ptr %0, i64 384
  %231 = load ptr, ptr %230, align 8, !tbaa !45
  %232 = getelementptr inbounds i8, ptr %231, i64 312
  %233 = load double, ptr %232, align 8, !tbaa !46
  %234 = getelementptr inbounds i8, ptr %231, i64 328
  %235 = load double, ptr %234, align 8, !tbaa !55
  %236 = getelementptr inbounds i8, ptr %231, i64 320
  %237 = load double, ptr %236, align 8, !tbaa !56
  %238 = fdiv double %235, %237
  %239 = fmul double %233, %238
  %240 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !37
  %241 = fmul double %240, %239
  %242 = fadd double %6, 1.000000e+00
  %243 = fmul double %242, %241
  %244 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %245 = trunc nuw i8 %244 to i1
  %246 = tail call noundef double @_Z6gate_Cddbbb(double noundef %243, double noundef 0.000000e+00, i1 noundef zeroext %245, i1 noundef zeroext false, i1 noundef zeroext false)
  %247 = tail call double @llvm.fmuladd.f64(double %225, double %229, double %246)
  %248 = fmul double %192, %247
  %249 = tail call noundef double @_Z8horowitzddddi(double noundef %226, double noundef %248, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %250 = load double, ptr %53, align 8, !tbaa !38
  %251 = fadd double %249, %250
  store double %251, ptr %53, align 8, !tbaa !38
  %252 = fmul double %249, 2.000000e+00
  %253 = fmul double %247, 5.000000e-01
  %254 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %255 = fmul double %253, %254
  %256 = load double, ptr %60, align 8, !tbaa !40
  %257 = tail call double @llvm.fmuladd.f64(double %255, double %254, double %256)
  store double %257, ptr %60, align 8, !tbaa !40
  %258 = load double, ptr %63, align 8, !tbaa !41
  %259 = fadd double %258, 0.000000e+00
  store double %259, ptr %63, align 8, !tbaa !41
  %260 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 264), align 8, !tbaa !20
  %261 = tail call noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %260, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
  %262 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !39
  %263 = load double, ptr %69, align 8, !tbaa !42
  %264 = tail call double @llvm.fmuladd.f64(double %261, double %262, double %263)
  store double %264, ptr %69, align 8, !tbaa !42
  ret double %252
}

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

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" }

!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, !17, i64 2720}
!6 = !{!"_ZTS3Mat", !7, i64 0, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320, !14, i64 328, !14, i64 336, !14, i64 344, !14, i64 352, !14, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !14, i64 392, !14, i64 400, !14, i64 408, !14, i64 416, !14, i64 424, !14, i64 432, !12, i64 440, !12, i64 560, !12, i64 680, !12, i64 800, !12, i64 920, !12, i64 1040, !12, i64 1160, !12, i64 1280, !12, i64 1400, !12, i64 1520, !12, i64 1640, !9, i64 1760, !9, i64 1768, !9, i64 1776, !9, i64 1784, !9, i64 1792, !9, i64 1800, !9, i64 1808, !9, i64 1816, !9, i64 1824, !9, i64 1832, !9, i64 1840, !9, i64 1848, !9, i64 1856, !15, i64 1864, !12, i64 2288, !12, i64 2408, !12, i64 2528, !9, i64 2648, !16, i64 2656, !16, i64 2660, !9, i64 2664, !8, i64 2672, !8, i64 2696, !17, i64 2720, !17, i64 2721, !17, i64 2722, !17, i64 2723, !16, i64 2724, !12, i64 2728, !9, i64 2848, !9, i64 2856, !9, i64 2864, !9, i64 2872, !9, i64 2880, !9, i64 2888, !12, i64 2896, !16, i64 3016, !16, i64 3020, !16, i64 3024, !16, i64 3028, !9, i64 3032, !16, i64 3040, !16, i64 3044, !16, i64 3048, !16, i64 3052, !16, i64 3056, !16, i64 3060}
!7 = !{!"_ZTS9Component", !8, i64 0, !12, i64 24, !12, i64 144, !9, i64 264, !9, i64 272}
!8 = !{!"_ZTS4Area", !9, i64 0, !9, i64 8, !9, i64 16}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS8powerDef", !13, i64 0, !13, i64 40, !13, i64 80}
!13 = !{!"_ZTS15powerComponents", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!"_ZTS8Subarray", !7, i64 0, !14, i64 280, !16, i64 288, !16, i64 292, !16, i64 296, !16, i64 300, !8, i64 304, !8, i64 328, !17, i64 352, !9, i64 360, !9, i64 368, !9, i64 376, !9, i64 384, !9, i64 392, !9, i64 400, !9, i64 408, !9, i64 416}
!16 = !{!"int", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !9, i64 264}
!21 = !{!"_ZTS19TechnologyParameter", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160, !9, i64 168, !9, i64 176, !9, i64 184, !9, i64 192, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !9, i64 296, !9, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !22, i64 352, !23, i64 360, !23, i64 528, !23, i64 696, !23, i64 864, !23, i64 1032, !24, i64 1200, !24, i64 1264, !24, i64 1328, !25, i64 1392, !26, i64 1416, !26, i64 1464, !26, i64 1512}
!22 = !{!"long", !10, i64 0}
!23 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160}
!24 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56}
!25 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!26 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}
!27 = !{!6, !14, i64 280}
!28 = !{!29, !16, i64 44}
!29 = !{!"_ZTS16DynamicParameter", !17, i64 0, !17, i64 1, !17, i64 2, !17, i64 3, !16, i64 4, !16, i64 8, !16, i64 12, !9, i64 16, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !16, i64 80, !16, i64 84, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !17, i64 120, !9, i64 128, !16, i64 136, !16, i64 140, !16, i64 144, !16, i64 148, !16, i64 152, !16, i64 156, !16, i64 160, !16, i64 164, !16, i64 168, !9, i64 176, !16, i64 184, !16, i64 188, !16, i64 192, !16, i64 196, !16, i64 200, !16, i64 204, !16, i64 208, !17, i64 212, !8, i64 216, !8, i64 240, !17, i64 264}
!30 = !{!6, !17, i64 2723}
!31 = !{!6, !9, i64 2696}
!32 = !{!6, !9, i64 2672}
!33 = !{!6, !16, i64 2656}
!34 = !{!6, !16, i64 3048}
!35 = !{!6, !16, i64 3052}
!36 = !{!6, !16, i64 3060}
!37 = !{!21, !9, i64 8}
!38 = !{!6, !9, i64 2872}
!39 = !{!21, !9, i64 936}
!40 = !{!6, !9, i64 1160}
!41 = !{!6, !9, i64 1168}
!42 = !{!6, !9, i64 1176}
!43 = !{!21, !9, i64 312}
!44 = !{!29, !16, i64 48}
!45 = !{!6, !14, i64 384}
!46 = !{!47, !9, i64 312}
!47 = !{!"_ZTS4Wire", !7, i64 0, !48, i64 280, !9, i64 288, !9, i64 296, !49, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !16, i64 352, !9, i64 360, !9, i64 368, !9, i64 376, !50, i64 384, !7, i64 408, !7, i64 688, !7, i64 968, !9, i64 1248, !14, i64 1256}
!48 = !{!"_ZTS9Wire_type", !10, i64 0}
!49 = !{!"_ZTS14Wire_placement", !10, i64 0}
!50 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !51, i64 0}
!51 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !52, i64 0}
!52 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !53, i64 0}
!53 = !{!"_ZTSNSt8__detail17_List_node_headerE", !54, i64 0, !22, i64 16}
!54 = !{!"_ZTSNSt8__detail15_List_node_baseE", !14, i64 0, !14, i64 8}
!55 = !{!47, !9, i64 328}
!56 = !{!47, !9, i64 320}


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