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

; 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.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%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
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@_ZN4Wire6globalE = external dso_local global %class.Component, align 8
@_ZN4Wire8global_5E = external dso_local global %class.Component, align 8
@_ZN4Wire9global_10E = external dso_local global %class.Component, align 8
@_ZN4Wire9global_20E = external dso_local global %class.Component, align 8
@_ZN4Wire9global_30E = external dso_local global %class.Component, align 8
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Wire20calculate_wire_statsEv = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Wire20calculate_wire_statsEv(ptr noundef nonnull align 8 dereferenceable(1264) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 4
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = icmp eq i32 %5, 0
  br i1 %6, label %7, label %10

7:                                                ; preds = %1
  %8 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 52), align 8, !tbaa !25
  %9 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 3
  store double %8, ptr %9, align 8, !tbaa !31
  br label %21

10:                                               ; preds = %1
  %11 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 4
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %14, label %17

14:                                               ; preds = %10
  %15 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 51), align 8, !tbaa !32
  %16 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 3
  store double %15, ptr %16, align 8, !tbaa !31
  br label %20

17:                                               ; preds = %10
  %18 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), align 8, !tbaa !33
  %19 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 3
  store double %18, ptr %19, align 8, !tbaa !31
  br label %20

20:                                               ; preds = %17, %14
  br label %21

21:                                               ; preds = %20, %7
  %22 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 3
  %23 = load double, ptr %22, align 8, !tbaa !31
  %24 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 2
  store double %23, ptr %24, align 8, !tbaa !34
  %25 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 11
  %26 = load double, ptr %25, align 8, !tbaa !35
  %27 = fmul double %26, 0x3EB0C6F7A0B5ED8D
  %28 = fdiv double %27, 2.000000e+00
  %29 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 3
  %30 = load double, ptr %29, align 8, !tbaa !31
  %31 = fmul double %30, %28
  store double %31, ptr %29, align 8, !tbaa !31
  %32 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 12
  %33 = load double, ptr %32, align 8, !tbaa !36
  %34 = fmul double %33, 0x3EB0C6F7A0B5ED8D
  %35 = fdiv double %34, 2.000000e+00
  %36 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 2
  %37 = load double, ptr %36, align 8, !tbaa !34
  %38 = fmul double %37, %35
  store double %38, ptr %36, align 8, !tbaa !34
  %39 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !37
  %41 = icmp ne i32 %40, 5
  br i1 %41, label %42, label %323

42:                                               ; preds = %21
  %43 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !37
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %95

46:                                               ; preds = %42
  %47 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire6globalE, i32 0, i32 3), align 8, !tbaa !38
  %48 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %49 = load double, ptr %48, align 8, !tbaa !39
  %50 = fmul double %47, %49
  %51 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 3
  store double %50, ptr %51, align 8, !tbaa !38
  %52 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire6globalE, i32 0, i32 1), align 8, !tbaa !40
  %53 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %54 = load double, ptr %53, align 8, !tbaa !39
  %55 = fmul double %52, %54
  %56 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %57 = getelementptr inbounds %class.powerDef, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %class.powerComponents, ptr %57, i32 0, i32 0
  store double %55, ptr %58, align 8, !tbaa !40
  %59 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire6globalE, i32 0, i32 1), i32 0, i32 1), align 8, !tbaa !41
  %60 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %61 = load double, ptr %60, align 8, !tbaa !39
  %62 = fmul double %59, %61
  %63 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %64 = getelementptr inbounds %class.powerDef, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %class.powerComponents, ptr %64, i32 0, i32 1
  store double %62, ptr %65, align 8, !tbaa !41
  %66 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire6globalE, i32 0, i32 1), i32 0, i32 2), align 8, !tbaa !42
  %67 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %68 = load double, ptr %67, align 8, !tbaa !39
  %69 = fmul double %66, %68
  %70 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %71 = getelementptr inbounds %class.powerDef, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %class.powerComponents, ptr %71, i32 0, i32 2
  store double %69, ptr %72, align 8, !tbaa !42
  %73 = load double, ptr @_ZN4Wire6globalE, align 8, !tbaa !43
  %74 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  store double %73, ptr %74, align 8, !tbaa !44
  %75 = load double, ptr getelementptr inbounds (%class.Area, ptr @_ZN4Wire6globalE, i32 0, i32 1), align 8, !tbaa !45
  %76 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  store double %75, ptr %76, align 8, !tbaa !46
  %77 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 0
  %78 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %79 = load double, ptr %78, align 8, !tbaa !39
  %80 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  %81 = load double, ptr %80, align 8, !tbaa !44
  %82 = fdiv double %79, %81
  %83 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 18
  %84 = load double, ptr %83, align 8, !tbaa !47
  %85 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %86 = load double, ptr %85, align 8, !tbaa !46
  %87 = fmul double %84, %86
  %88 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !48
  %89 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %90 = load double, ptr %89, align 8, !tbaa !46
  %91 = fmul double %88, %90
  %92 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !49
  %93 = call noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280) %3, i32 noundef 0, i32 noundef 1, double noundef %87, double noundef %91, double noundef %92)
  %94 = fmul double %82, %93
  call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %77, double noundef %94)
  br label %311

95:                                               ; preds = %42
  %96 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !37
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %148

99:                                               ; preds = %95
  %100 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire8global_5E, i32 0, i32 3), align 8, !tbaa !38
  %101 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %102 = load double, ptr %101, align 8, !tbaa !39
  %103 = fmul double %100, %102
  %104 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 3
  store double %103, ptr %104, align 8, !tbaa !38
  %105 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire8global_5E, i32 0, i32 1), align 8, !tbaa !40
  %106 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %107 = load double, ptr %106, align 8, !tbaa !39
  %108 = fmul double %105, %107
  %109 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %110 = getelementptr inbounds %class.powerDef, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %class.powerComponents, ptr %110, i32 0, i32 0
  store double %108, ptr %111, align 8, !tbaa !40
  %112 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire8global_5E, i32 0, i32 1), i32 0, i32 1), align 8, !tbaa !41
  %113 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %114 = load double, ptr %113, align 8, !tbaa !39
  %115 = fmul double %112, %114
  %116 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %117 = getelementptr inbounds %class.powerDef, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %class.powerComponents, ptr %117, i32 0, i32 1
  store double %115, ptr %118, align 8, !tbaa !41
  %119 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire8global_5E, i32 0, i32 1), i32 0, i32 2), align 8, !tbaa !42
  %120 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %121 = load double, ptr %120, align 8, !tbaa !39
  %122 = fmul double %119, %121
  %123 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %124 = getelementptr inbounds %class.powerDef, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %class.powerComponents, ptr %124, i32 0, i32 2
  store double %122, ptr %125, align 8, !tbaa !42
  %126 = load double, ptr @_ZN4Wire8global_5E, align 8, !tbaa !43
  %127 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  store double %126, ptr %127, align 8, !tbaa !44
  %128 = load double, ptr getelementptr inbounds (%class.Area, ptr @_ZN4Wire8global_5E, i32 0, i32 1), align 8, !tbaa !45
  %129 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  store double %128, ptr %129, align 8, !tbaa !46
  %130 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 0
  %131 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %132 = load double, ptr %131, align 8, !tbaa !39
  %133 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  %134 = load double, ptr %133, align 8, !tbaa !44
  %135 = fdiv double %132, %134
  %136 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 18
  %137 = load double, ptr %136, align 8, !tbaa !47
  %138 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %139 = load double, ptr %138, align 8, !tbaa !46
  %140 = fmul double %137, %139
  %141 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !48
  %142 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %143 = load double, ptr %142, align 8, !tbaa !46
  %144 = fmul double %141, %143
  %145 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !49
  %146 = call noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280) %3, i32 noundef 0, i32 noundef 1, double noundef %140, double noundef %144, double noundef %145)
  %147 = fmul double %135, %146
  call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %130, double noundef %147)
  br label %310

148:                                              ; preds = %95
  %149 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %150 = load i32, ptr %149, align 8, !tbaa !37
  %151 = icmp eq i32 %150, 2
  br i1 %151, label %152, label %201

152:                                              ; preds = %148
  %153 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_10E, i32 0, i32 3), align 8, !tbaa !38
  %154 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %155 = load double, ptr %154, align 8, !tbaa !39
  %156 = fmul double %153, %155
  %157 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 3
  store double %156, ptr %157, align 8, !tbaa !38
  %158 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_10E, i32 0, i32 1), align 8, !tbaa !40
  %159 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %160 = load double, ptr %159, align 8, !tbaa !39
  %161 = fmul double %158, %160
  %162 = getelementptr inbounds %class.Component, ptr %3, 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 0
  store double %161, ptr %164, align 8, !tbaa !40
  %165 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_10E, i32 0, i32 1), i32 0, i32 1), align 8, !tbaa !41
  %166 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %167 = load double, ptr %166, align 8, !tbaa !39
  %168 = fmul double %165, %167
  %169 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %170 = getelementptr inbounds %class.powerDef, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %class.powerComponents, ptr %170, i32 0, i32 1
  store double %168, ptr %171, align 8, !tbaa !41
  %172 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_10E, i32 0, i32 1), i32 0, i32 2), align 8, !tbaa !42
  %173 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %174 = load double, ptr %173, align 8, !tbaa !39
  %175 = fmul double %172, %174
  %176 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %177 = getelementptr inbounds %class.powerDef, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %class.powerComponents, ptr %177, i32 0, i32 2
  store double %175, ptr %178, align 8, !tbaa !42
  %179 = load double, ptr @_ZN4Wire9global_10E, align 8, !tbaa !43
  %180 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  store double %179, ptr %180, align 8, !tbaa !44
  %181 = load double, ptr getelementptr inbounds (%class.Area, ptr @_ZN4Wire9global_10E, i32 0, i32 1), align 8, !tbaa !45
  %182 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  store double %181, ptr %182, align 8, !tbaa !46
  %183 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 0
  %184 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %185 = load double, ptr %184, align 8, !tbaa !39
  %186 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  %187 = load double, ptr %186, align 8, !tbaa !44
  %188 = fdiv double %185, %187
  %189 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 18
  %190 = load double, ptr %189, align 8, !tbaa !47
  %191 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %192 = load double, ptr %191, align 8, !tbaa !46
  %193 = fmul double %190, %192
  %194 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !48
  %195 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %196 = load double, ptr %195, align 8, !tbaa !46
  %197 = fmul double %194, %196
  %198 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !49
  %199 = call noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280) %3, i32 noundef 0, i32 noundef 1, double noundef %193, double noundef %197, double noundef %198)
  %200 = fmul double %188, %199
  call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %183, double noundef %200)
  br label %309

201:                                              ; preds = %148
  %202 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %203 = load i32, ptr %202, align 8, !tbaa !37
  %204 = icmp eq i32 %203, 3
  br i1 %204, label %205, label %254

205:                                              ; preds = %201
  %206 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_20E, i32 0, i32 3), align 8, !tbaa !38
  %207 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %208 = load double, ptr %207, align 8, !tbaa !39
  %209 = fmul double %206, %208
  %210 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 3
  store double %209, ptr %210, align 8, !tbaa !38
  %211 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_20E, i32 0, i32 1), align 8, !tbaa !40
  %212 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %213 = load double, ptr %212, align 8, !tbaa !39
  %214 = fmul double %211, %213
  %215 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %216 = getelementptr inbounds %class.powerDef, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds %class.powerComponents, ptr %216, i32 0, i32 0
  store double %214, ptr %217, align 8, !tbaa !40
  %218 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_20E, i32 0, i32 1), i32 0, i32 1), align 8, !tbaa !41
  %219 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %220 = load double, ptr %219, align 8, !tbaa !39
  %221 = fmul double %218, %220
  %222 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %223 = getelementptr inbounds %class.powerDef, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds %class.powerComponents, ptr %223, i32 0, i32 1
  store double %221, ptr %224, align 8, !tbaa !41
  %225 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_20E, i32 0, i32 1), i32 0, i32 2), align 8, !tbaa !42
  %226 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %227 = load double, ptr %226, align 8, !tbaa !39
  %228 = fmul double %225, %227
  %229 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %230 = getelementptr inbounds %class.powerDef, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %class.powerComponents, ptr %230, i32 0, i32 2
  store double %228, ptr %231, align 8, !tbaa !42
  %232 = load double, ptr @_ZN4Wire9global_20E, align 8, !tbaa !43
  %233 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  store double %232, ptr %233, align 8, !tbaa !44
  %234 = load double, ptr getelementptr inbounds (%class.Area, ptr @_ZN4Wire9global_20E, i32 0, i32 1), align 8, !tbaa !45
  %235 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  store double %234, ptr %235, align 8, !tbaa !46
  %236 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 0
  %237 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %238 = load double, ptr %237, align 8, !tbaa !39
  %239 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  %240 = load double, ptr %239, align 8, !tbaa !44
  %241 = fdiv double %238, %240
  %242 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 18
  %243 = load double, ptr %242, align 8, !tbaa !47
  %244 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %245 = load double, ptr %244, align 8, !tbaa !46
  %246 = fmul double %243, %245
  %247 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !48
  %248 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %249 = load double, ptr %248, align 8, !tbaa !46
  %250 = fmul double %247, %249
  %251 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !49
  %252 = call noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280) %3, i32 noundef 0, i32 noundef 1, double noundef %246, double noundef %250, double noundef %251)
  %253 = fmul double %241, %252
  call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %236, double noundef %253)
  br label %308

254:                                              ; preds = %201
  %255 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %256 = load i32, ptr %255, align 8, !tbaa !37
  %257 = icmp eq i32 %256, 4
  br i1 %257, label %258, label %307

258:                                              ; preds = %254
  %259 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_30E, i32 0, i32 3), align 8, !tbaa !38
  %260 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %261 = load double, ptr %260, align 8, !tbaa !39
  %262 = fmul double %259, %261
  %263 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 3
  store double %262, ptr %263, align 8, !tbaa !38
  %264 = load double, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_30E, i32 0, i32 1), align 8, !tbaa !40
  %265 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %266 = load double, ptr %265, align 8, !tbaa !39
  %267 = fmul double %264, %266
  %268 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %269 = getelementptr inbounds %class.powerDef, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds %class.powerComponents, ptr %269, i32 0, i32 0
  store double %267, ptr %270, align 8, !tbaa !40
  %271 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_30E, i32 0, i32 1), i32 0, i32 1), align 8, !tbaa !41
  %272 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %273 = load double, ptr %272, align 8, !tbaa !39
  %274 = fmul double %271, %273
  %275 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %276 = getelementptr inbounds %class.powerDef, ptr %275, i32 0, i32 0
  %277 = getelementptr inbounds %class.powerComponents, ptr %276, i32 0, i32 1
  store double %274, ptr %277, align 8, !tbaa !41
  %278 = load double, ptr getelementptr inbounds (%class.powerComponents, ptr getelementptr inbounds (%class.Component, ptr @_ZN4Wire9global_30E, i32 0, i32 1), i32 0, i32 2), align 8, !tbaa !42
  %279 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %280 = load double, ptr %279, align 8, !tbaa !39
  %281 = fmul double %278, %280
  %282 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 1
  %283 = getelementptr inbounds %class.powerDef, ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds %class.powerComponents, ptr %283, i32 0, i32 2
  store double %281, ptr %284, align 8, !tbaa !42
  %285 = load double, ptr @_ZN4Wire9global_30E, align 8, !tbaa !43
  %286 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  store double %285, ptr %286, align 8, !tbaa !44
  %287 = load double, ptr getelementptr inbounds (%class.Area, ptr @_ZN4Wire9global_30E, i32 0, i32 1), align 8, !tbaa !45
  %288 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  store double %287, ptr %288, align 8, !tbaa !46
  %289 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 0
  %290 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %291 = load double, ptr %290, align 8, !tbaa !39
  %292 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  %293 = load double, ptr %292, align 8, !tbaa !44
  %294 = fdiv double %291, %293
  %295 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 18
  %296 = load double, ptr %295, align 8, !tbaa !47
  %297 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %298 = load double, ptr %297, align 8, !tbaa !46
  %299 = fmul double %296, %298
  %300 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !48
  %301 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  %302 = load double, ptr %301, align 8, !tbaa !46
  %303 = fmul double %300, %302
  %304 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !49
  %305 = call noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280) %3, i32 noundef 0, i32 noundef 1, double noundef %299, double noundef %303, double noundef %304)
  %306 = fmul double %294, %305
  call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %289, double noundef %306)
  br label %307

307:                                              ; preds = %258, %254
  br label %308

308:                                              ; preds = %307, %205
  br label %309

309:                                              ; preds = %308, %152
  br label %310

310:                                              ; preds = %309, %99
  br label %311

311:                                              ; preds = %310, %46
  %312 = getelementptr inbounds %class.Component, ptr %3, i32 0, i32 3
  %313 = load double, ptr %312, align 8, !tbaa !38
  %314 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  %315 = load double, ptr %314, align 8, !tbaa !44
  %316 = fmul double %313, %315
  %317 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 19
  %318 = load ptr, ptr %317, align 8, !tbaa !50
  %319 = getelementptr inbounds %"class.TechnologyParameter::DeviceType", ptr %318, i32 0, i32 10
  %320 = load double, ptr %319, align 8, !tbaa !51
  %321 = fdiv double %316, %320
  %322 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 9
  store double %321, ptr %322, align 8, !tbaa !52
  br label %334

323:                                              ; preds = %21
  %324 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 1
  %325 = load i32, ptr %324, align 8, !tbaa !37
  %326 = icmp eq i32 %325, 5
  br i1 %326, label %327, label %332

327:                                              ; preds = %323
  call void @_ZN4Wire15low_swing_modelEv(ptr noundef nonnull align 8 dereferenceable(1264) %3)
  %328 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 7
  %329 = load double, ptr %328, align 8, !tbaa !39
  %330 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 6
  store double %329, ptr %330, align 8, !tbaa !44
  %331 = getelementptr inbounds %class.Wire, ptr %3, i32 0, i32 5
  store double 1.000000e+00, ptr %331, align 8, !tbaa !46
  br label %333

332:                                              ; preds = %323
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 210, ptr noundef @__PRETTY_FUNCTION__._ZN4Wire20calculate_wire_statsEv) #4
  unreachable

333:                                              ; preds = %327
  br label %334

334:                                              ; preds = %333, %311
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #2 align 2

declare noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef, i32 noundef, double noundef, double noundef, double noundef) #3

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

attributes #0 = { 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }

!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, !17, i64 304}
!10 = !{!"_ZTS4Wire", !11, i64 0, !16, i64 280, !13, i64 288, !13, i64 296, !17, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !18, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !19, i64 384, !11, i64 408, !11, i64 688, !11, i64 968, !13, i64 1248, !6, i64 1256}
!11 = !{!"_ZTS9Component", !12, i64 0, !14, i64 24, !14, i64 144, !13, i64 264, !13, i64 272}
!12 = !{!"_ZTS4Area", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTS8powerDef", !15, i64 0, !15, i64 40, !15, i64 80}
!15 = !{!"_ZTS15powerComponents", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!"_ZTS9Wire_type", !7, i64 0}
!17 = !{!"_ZTS14Wire_placement", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !22, i64 0}
!22 = !{!"_ZTSNSt8__detail17_List_node_headerE", !23, i64 0, !24, i64 16}
!23 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!24 = !{!"long", !7, i64 0}
!25 = !{!26, !13, i64 1328}
!26 = !{!"_ZTS19TechnologyParameter", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !24, i64 352, !27, i64 360, !27, i64 528, !27, i64 696, !27, i64 864, !27, i64 1032, !28, i64 1200, !28, i64 1264, !28, i64 1328, !29, i64 1392, !30, i64 1416, !30, i64 1464, !30, i64 1512}
!27 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160}
!28 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56}
!29 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !13, i64 0, !13, i64 8, !13, i64 16}
!30 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!31 = !{!10, !13, i64 296}
!32 = !{!26, !13, i64 1264}
!33 = !{!26, !13, i64 1200}
!34 = !{!10, !13, i64 288}
!35 = !{!10, !13, i64 360}
!36 = !{!10, !13, i64 368}
!37 = !{!10, !16, i64 280}
!38 = !{!11, !13, i64 264}
!39 = !{!10, !13, i64 328}
!40 = !{!11, !13, i64 24}
!41 = !{!11, !13, i64 32}
!42 = !{!11, !13, i64 40}
!43 = !{!11, !13, i64 0}
!44 = !{!10, !13, i64 320}
!45 = !{!11, !13, i64 8}
!46 = !{!10, !13, i64 312}
!47 = !{!10, !13, i64 1248}
!48 = !{!26, !13, i64 8}
!49 = !{!26, !13, i64 312}
!50 = !{!10, !6, i64 1256}
!51 = !{!27, !13, i64 80}
!52 = !{!10, !13, i64 344}


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

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

@g_tp = external local_unnamed_addr global %class.TechnologyParameter, align 8
@_ZN4Wire6globalE = external dso_local local_unnamed_addr global %class.Component, align 8
@_ZN4Wire8global_5E = external dso_local local_unnamed_addr global %class.Component, align 8
@_ZN4Wire9global_10E = external dso_local local_unnamed_addr global %class.Component, align 8
@_ZN4Wire9global_20E = external dso_local local_unnamed_addr global %class.Component, align 8
@_ZN4Wire9global_30E = external dso_local local_unnamed_addr global %class.Component, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Wire20calculate_wire_statsEv(ptr noundef nonnull align 8 dereferenceable(1264) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 304
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %switch.selectcmp = icmp eq i32 %3, 1
  %switch.select = select i1 %switch.selectcmp, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1264), ptr getelementptr inbounds (i8, ptr @g_tp, i64 1200)
  %switch.selectcmp44 = icmp eq i32 %3, 0
  %switch.select45 = select i1 %switch.selectcmp44, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1328), ptr %switch.select
  %4 = load double, ptr %switch.select45, align 8, !tbaa !24
  %5 = getelementptr inbounds i8, ptr %0, i64 288
  %6 = getelementptr inbounds i8, ptr %0, i64 360
  %7 = load <2 x double>, ptr %6, align 8, !tbaa !24
  %8 = fmul <2 x double> %7, <double 0x3EB0C6F7A0B5ED8D, double 0x3EB0C6F7A0B5ED8D>
  %9 = fmul <2 x double> %8, <double 5.000000e-01, double 5.000000e-01>
  %10 = insertelement <2 x double> poison, double %4, i64 0
  %11 = shufflevector <2 x double> %10, <2 x double> poison, <2 x i32> zeroinitializer
  %12 = fmul <2 x double> %11, %9
  %13 = shufflevector <2 x double> %12, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  store <2 x double> %13, ptr %5, align 8, !tbaa !24
  %14 = getelementptr inbounds i8, ptr %0, i64 280
  %15 = load i32, ptr %14, align 8, !tbaa !25
  switch i32 %15, label %49 [
    i32 5, label %60
    i32 0, label %.sink.split
    i32 1, label %16
    i32 2, label %17
    i32 3, label %18
    i32 4, label %19
  ]

16:                                               ; preds = %1
  br label %.sink.split

17:                                               ; preds = %1
  br label %.sink.split

18:                                               ; preds = %1
  br label %.sink.split

19:                                               ; preds = %1
  br label %.sink.split

.sink.split:                                      ; preds = %1, %17, %19, %18, %16
  %.sink40 = phi ptr [ getelementptr inbounds (i8, ptr @_ZN4Wire8global_5E, i64 264), %16 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_20E, i64 264), %18 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_30E, i64 264), %19 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_10E, i64 264), %17 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire6globalE, i64 264), %1 ]
  %.sink34 = phi ptr [ getelementptr inbounds (i8, ptr @_ZN4Wire8global_5E, i64 24), %16 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_20E, i64 24), %18 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_30E, i64 24), %19 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_10E, i64 24), %17 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire6globalE, i64 24), %1 ]
  %.sink29 = phi ptr [ getelementptr inbounds (i8, ptr @_ZN4Wire8global_5E, i64 32), %16 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_20E, i64 32), %18 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_30E, i64 32), %19 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_10E, i64 32), %17 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire6globalE, i64 32), %1 ]
  %.sink24 = phi ptr [ getelementptr inbounds (i8, ptr @_ZN4Wire8global_5E, i64 40), %16 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_20E, i64 40), %18 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_30E, i64 40), %19 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_10E, i64 40), %17 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire6globalE, i64 40), %1 ]
  %_ZN4Wire8global_5E.sink = phi ptr [ @_ZN4Wire8global_5E, %16 ], [ @_ZN4Wire9global_20E, %18 ], [ @_ZN4Wire9global_30E, %19 ], [ @_ZN4Wire9global_10E, %17 ], [ @_ZN4Wire6globalE, %1 ]
  %.sink17 = phi ptr [ getelementptr inbounds (i8, ptr @_ZN4Wire8global_5E, i64 8), %16 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_20E, i64 8), %18 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_30E, i64 8), %19 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire9global_10E, i64 8), %17 ], [ getelementptr inbounds (i8, ptr @_ZN4Wire6globalE, i64 8), %1 ]
  %20 = load double, ptr %.sink40, align 8, !tbaa !26
  %21 = getelementptr inbounds i8, ptr %0, i64 328
  %22 = load double, ptr %21, align 8, !tbaa !27
  %23 = fmul double %20, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 264
  store double %23, ptr %24, align 8, !tbaa !26
  %25 = load double, ptr %.sink34, align 8, !tbaa !28
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  %27 = load double, ptr %.sink29, align 8, !tbaa !29
  %28 = insertelement <2 x double> poison, double %22, i64 0
  %29 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> zeroinitializer
  %30 = insertelement <2 x double> poison, double %25, i64 0
  %31 = insertelement <2 x double> %30, double %27, i64 1
  %32 = fmul <2 x double> %29, %31
  store <2 x double> %32, ptr %26, align 8, !tbaa !24
  %33 = load double, ptr %.sink24, align 8, !tbaa !30
  %34 = fmul double %22, %33
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  store double %34, ptr %35, align 8, !tbaa !30
  %36 = load double, ptr %_ZN4Wire8global_5E.sink, align 8, !tbaa !31
  %37 = getelementptr inbounds i8, ptr %0, i64 320
  store double %36, ptr %37, align 8, !tbaa !32
  %38 = load double, ptr %.sink17, align 8, !tbaa !33
  %39 = getelementptr inbounds i8, ptr %0, i64 312
  store double %38, ptr %39, align 8, !tbaa !34
  %40 = fdiv double %22, %36
  %41 = getelementptr inbounds i8, ptr %0, i64 1248
  %42 = load double, ptr %41, align 8, !tbaa !35
  %43 = fmul double %38, %42
  %44 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !36
  %45 = fmul double %38, %44
  %46 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !42
  %47 = tail call noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280) %0, i32 noundef 0, i32 noundef 1, double noundef %43, double noundef %45, double noundef %46)
  %48 = fmul double %40, %47
  tail call void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24) %0, double noundef %48)
  br label %49

49:                                               ; preds = %.sink.split, %1
  %50 = getelementptr inbounds i8, ptr %0, i64 264
  %51 = load double, ptr %50, align 8, !tbaa !26
  %52 = getelementptr inbounds i8, ptr %0, i64 320
  %53 = load double, ptr %52, align 8, !tbaa !32
  %54 = fmul double %51, %53
  %55 = getelementptr inbounds i8, ptr %0, i64 1256
  %56 = load ptr, ptr %55, align 8, !tbaa !43
  %57 = getelementptr inbounds i8, ptr %56, i64 80
  %58 = load double, ptr %57, align 8, !tbaa !44
  %59 = fdiv double %54, %58
  br label %64

60:                                               ; preds = %1
  tail call void @_ZN4Wire15low_swing_modelEv(ptr noundef nonnull align 8 dereferenceable(1264) %0)
  %61 = getelementptr inbounds i8, ptr %0, i64 328
  %62 = load double, ptr %61, align 8, !tbaa !27
  %63 = getelementptr inbounds i8, ptr %0, i64 320
  store double %62, ptr %63, align 8, !tbaa !32
  br label %64

64:                                               ; preds = %60, %49
  %.sink43 = phi i64 [ 312, %60 ], [ 344, %49 ]
  %.sink41 = phi double [ 1.000000e+00, %60 ], [ %59, %49 ]
  %65 = getelementptr inbounds i8, ptr %0, i64 %.sink43
  store double %.sink41, ptr %65, align 8, !tbaa !24
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Area8set_areaEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #1 align 2

declare noundef double @_ZN9Component17compute_gate_areaEiiddd(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef, i32 noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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, !15, i64 304}
!6 = !{!"_ZTS4Wire", !7, i64 0, !14, i64 280, !9, i64 288, !9, i64 296, !15, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !16, i64 352, !9, i64 360, !9, i64 368, !9, i64 376, !17, i64 384, !7, i64 408, !7, i64 688, !7, i64 968, !9, i64 1248, !22, i64 1256}
!7 = !{!"_ZTS9Component", !8, i64 0, !12, i64 24, !12, i64 144, !9, i64 264, !9, i64 272}
!8 = !{!"_ZTS4Area", !9, i64 0, !9, i64 8, !9, i64 16}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS8powerDef", !13, i64 0, !13, i64 40, !13, i64 80}
!13 = !{!"_ZTS15powerComponents", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32}
!14 = !{!"_ZTS9Wire_type", !10, i64 0}
!15 = !{!"_ZTS14Wire_placement", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!"_ZTSNSt7__cxx114listI9ComponentSaIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSNSt7__cxx1110_List_baseI9ComponentSaIS1_EE10_List_implE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail17_List_node_headerE", !21, i64 0, !23, i64 16}
!21 = !{!"_ZTSNSt8__detail15_List_node_baseE", !22, i64 0, !22, i64 8}
!22 = !{!"any pointer", !10, i64 0}
!23 = !{!"long", !10, i64 0}
!24 = !{!9, !9, i64 0}
!25 = !{!6, !14, i64 280}
!26 = !{!7, !9, i64 264}
!27 = !{!6, !9, i64 328}
!28 = !{!7, !9, i64 24}
!29 = !{!7, !9, i64 32}
!30 = !{!7, !9, i64 40}
!31 = !{!7, !9, i64 0}
!32 = !{!6, !9, i64 320}
!33 = !{!7, !9, i64 8}
!34 = !{!6, !9, i64 312}
!35 = !{!6, !9, i64 1248}
!36 = !{!37, !9, i64 8}
!37 = !{!"_ZTS19TechnologyParameter", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160, !9, i64 168, !9, i64 176, !9, i64 184, !9, i64 192, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !9, i64 296, !9, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !23, i64 352, !38, i64 360, !38, i64 528, !38, i64 696, !38, i64 864, !38, i64 1032, !39, i64 1200, !39, i64 1264, !39, i64 1328, !40, i64 1392, !41, i64 1416, !41, i64 1464, !41, i64 1512}
!38 = !{!"_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}
!39 = !{!"_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}
!40 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!41 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}
!42 = !{!37, !9, i64 312}
!43 = !{!6, !22, i64 1256}
!44 = !{!38, !9, i64 80}


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