; LLVM IR from gem5/gem5 :: ext/mcpat/cacti/decoder.ll (ZN7Decoder14compute_widthsEv)

; 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.Decoder = type { %class.Component, i8, i32, double, double, i32, i32, [20 x double], [20 x double], double, i8, i8, i8, ptr }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Decoder14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(656) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %8 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 11
  %9 = load i8, ptr %8, align 1, !tbaa !9, !range !18, !noundef !19
  %10 = trunc i8 %9 to i1
  %11 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 12
  %12 = load i8, ptr %11, align 2, !tbaa !20, !range !18, !noundef !19
  %13 = trunc i8 %12 to i1
  %14 = call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext %10, i1 noundef zeroext %13)
  store double %14, ptr %4, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %15 = load double, ptr %4, align 8, !tbaa !21
  %16 = fadd double 2.000000e+00, %15
  %17 = load double, ptr %4, align 8, !tbaa !21
  %18 = fadd double 1.000000e+00, %17
  %19 = fdiv double %16, %18
  store double %19, ptr %5, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %20 = load double, ptr %4, align 8, !tbaa !21
  %21 = fadd double 3.000000e+00, %20
  %22 = load double, ptr %4, align 8, !tbaa !21
  %23 = fadd double 1.000000e+00, %22
  %24 = fdiv double %21, %23
  store double %24, ptr %6, align 8, !tbaa !21
  %25 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 1
  %26 = load i8, ptr %25, align 8, !tbaa !22, !range !18, !noundef !19
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %113

28:                                               ; preds = %1
  %29 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !23
  %31 = icmp eq i32 %30, 2
  br i1 %31, label %36, label %32

32:                                               ; preds = %28
  %33 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 10
  %34 = load i8, ptr %33, align 8, !tbaa !24, !range !18, !noundef !19
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %47

36:                                               ; preds = %32, %28
  %37 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !25
  %38 = fmul double 2.000000e+00, %37
  %39 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 7
  %40 = getelementptr inbounds [20 x double], ptr %39, i64 0, i64 0
  store double %38, ptr %40, align 8, !tbaa !21
  %41 = load double, ptr %4, align 8, !tbaa !21
  %42 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !25
  %43 = fmul double %41, %42
  %44 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 8
  %45 = getelementptr inbounds [20 x double], ptr %44, i64 0, i64 0
  store double %43, ptr %45, align 8, !tbaa !21
  %46 = load double, ptr %5, align 8, !tbaa !21
  store double %46, ptr %3, align 8, !tbaa !21
  br label %58

47:                                               ; preds = %32
  %48 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !25
  %49 = fmul double 3.000000e+00, %48
  %50 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 7
  %51 = getelementptr inbounds [20 x double], ptr %50, i64 0, i64 0
  store double %49, ptr %51, align 8, !tbaa !21
  %52 = load double, ptr %4, align 8, !tbaa !21
  %53 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 1), align 8, !tbaa !25
  %54 = fmul double %52, %53
  %55 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 8
  %56 = getelementptr inbounds [20 x double], ptr %55, i64 0, i64 0
  store double %54, ptr %56, align 8, !tbaa !21
  %57 = load double, ptr %6, align 8, !tbaa !21
  store double %57, ptr %3, align 8, !tbaa !21
  br label %58

58:                                               ; preds = %47, %36
  %59 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 3
  %60 = load double, ptr %59, align 8, !tbaa !32
  %61 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 7
  %62 = getelementptr inbounds [20 x double], ptr %61, i64 0, i64 0
  %63 = load double, ptr %62, align 8, !tbaa !21
  %64 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 11
  %65 = load i8, ptr %64, align 1, !tbaa !9, !range !18, !noundef !19
  %66 = trunc i8 %65 to i1
  %67 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 12
  %68 = load i8, ptr %67, align 2, !tbaa !20, !range !18, !noundef !19
  %69 = trunc i8 %68 to i1
  %70 = call noundef double @_Z6gate_Cddbbb(double noundef %63, double noundef 0.000000e+00, i1 noundef zeroext %66, i1 noundef zeroext false, i1 noundef zeroext %69)
  %71 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 8
  %72 = getelementptr inbounds [20 x double], ptr %71, i64 0, i64 0
  %73 = load double, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 11
  %75 = load i8, ptr %74, align 1, !tbaa !9, !range !18, !noundef !19
  %76 = trunc i8 %75 to i1
  %77 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 12
  %78 = load i8, ptr %77, align 2, !tbaa !20, !range !18, !noundef !19
  %79 = trunc i8 %78 to i1
  %80 = call noundef double @_Z6gate_Cddbbb(double noundef %73, double noundef 0.000000e+00, i1 noundef zeroext %76, i1 noundef zeroext false, i1 noundef zeroext %79)
  %81 = fadd double %70, %80
  %82 = fdiv double %60, %81
  %83 = load double, ptr %3, align 8, !tbaa !21
  %84 = fmul double %83, %82
  store double %84, ptr %3, align 8, !tbaa !21
  %85 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 6
  %86 = load i32, ptr %85, align 4, !tbaa !33
  %87 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 2
  %88 = load i32, ptr %87, align 4, !tbaa !23
  %89 = icmp eq i32 %88, 2
  br i1 %89, label %90, label %92

90:                                               ; preds = %58
  %91 = load double, ptr %5, align 8, !tbaa !21
  br label %94

92:                                               ; preds = %58
  %93 = load double, ptr %6, align 8, !tbaa !21
  br label %94

94:                                               ; preds = %92, %90
  %95 = phi double [ %91, %90 ], [ %93, %92 ]
  %96 = load double, ptr %3, align 8, !tbaa !21
  %97 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 7
  %98 = getelementptr inbounds [20 x double], ptr %97, i64 0, i64 0
  %99 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 8
  %100 = getelementptr inbounds [20 x double], ptr %99, i64 0, i64 0
  %101 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 3
  %102 = load double, ptr %101, align 8, !tbaa !32
  %103 = load double, ptr %4, align 8, !tbaa !21
  %104 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 11
  %105 = load i8, ptr %104, align 1, !tbaa !9, !range !18, !noundef !19
  %106 = trunc i8 %105 to i1
  %107 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 12
  %108 = load i8, ptr %107, align 2, !tbaa !20, !range !18, !noundef !19
  %109 = trunc i8 %108 to i1
  %110 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 3), align 8, !tbaa !34
  %111 = call noundef i32 @_ZN9Component14logical_effortEiddPdS0_ddbbd(ptr noundef nonnull align 8 dereferenceable(280) %7, i32 noundef %86, double noundef %95, double noundef %96, ptr noundef %98, ptr noundef %100, double noundef %102, double noundef %103, i1 noundef zeroext %106, i1 noundef zeroext %109, double noundef %110)
  %112 = getelementptr inbounds %class.Decoder, ptr %7, i32 0, i32 5
  store i32 %111, ptr %112, align 8, !tbaa !35
  br label %113

113:                                              ; preds = %94, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

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

declare noundef i32 @_ZN9Component14logical_effortEiddPdS0_ddbbd(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef, double noundef, double noundef, ptr noundef, ptr noundef, double noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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, !16, i64 641}
!10 = !{!"_ZTS7Decoder", !11, i64 0, !16, i64 280, !17, i64 284, !13, i64 288, !13, i64 296, !17, i64 304, !17, i64 308, !7, i64 312, !7, i64 472, !13, i64 632, !16, i64 640, !16, i64 641, !16, i64 642, !6, i64 648}
!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 = !{!"bool", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!10, !16, i64 642}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !16, i64 280}
!23 = !{!10, !17, i64 284}
!24 = !{!10, !16, i64 640}
!25 = !{!26, !13, i64 8}
!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, !27, i64 352, !28, i64 360, !28, i64 528, !28, i64 696, !28, i64 864, !28, i64 1032, !29, i64 1200, !29, i64 1264, !29, i64 1328, !30, i64 1392, !31, i64 1416, !31, i64 1464, !31, i64 1512}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_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}
!29 = !{!"_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}
!30 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !13, i64 0, !13, i64 8, !13, i64 16}
!31 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!32 = !{!10, !13, i64 288}
!33 = !{!10, !17, i64 308}
!34 = !{!26, !13, i64 24}
!35 = !{!10, !17, i64 304}


; 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 uwtable
define dso_local void @_ZN7Decoder14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(656) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 641
  %3 = load i8, ptr %2, align 1, !tbaa !5, !range !17, !noundef !18
  %4 = trunc nuw i8 %3 to i1
  %5 = getelementptr inbounds i8, ptr %0, i64 642
  %6 = load i8, ptr %5, align 2, !tbaa !19, !range !17, !noundef !18
  %7 = trunc nuw i8 %6 to i1
  %8 = tail call noundef double @_Z21pmos_to_nmos_sz_ratiobb(i1 noundef zeroext %4, i1 noundef zeroext %7)
  %9 = fadd double %8, 2.000000e+00
  %10 = fadd double %8, 1.000000e+00
  %11 = fdiv double %9, %10
  %12 = fadd double %8, 3.000000e+00
  %13 = fdiv double %12, %10
  %14 = getelementptr inbounds i8, ptr %0, i64 280
  %15 = load i8, ptr %14, align 8, !tbaa !20, !range !17, !noundef !18
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %63

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 284
  %19 = load i32, ptr %18, align 4, !tbaa !21
  %20 = icmp eq i32 %19, 2
  br i1 %20, label %26, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 640
  %23 = load i8, ptr %22, align 8, !tbaa !22, !range !17, !noundef !18
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  br label %26

26:                                               ; preds = %17, %21, %25
  %.sink18 = phi double [ 3.000000e+00, %25 ], [ 2.000000e+00, %21 ], [ 2.000000e+00, %17 ]
  %.0 = phi double [ %13, %25 ], [ %11, %21 ], [ %11, %17 ]
  %27 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 8), align 8, !tbaa !23
  %28 = fmul double %27, %.sink18
  %29 = getelementptr inbounds i8, ptr %0, i64 312
  store double %28, ptr %29, align 8, !tbaa !30
  %30 = fmul double %8, %27
  %31 = getelementptr inbounds i8, ptr %0, i64 472
  store double %30, ptr %31, align 8, !tbaa !30
  %32 = getelementptr inbounds i8, ptr %0, i64 288
  %33 = load double, ptr %32, align 8, !tbaa !31
  %34 = getelementptr inbounds i8, ptr %0, i64 312
  %35 = load i8, ptr %2, align 1, !tbaa !5, !range !17, !noundef !18
  %36 = trunc nuw i8 %35 to i1
  %37 = load i8, ptr %5, align 2, !tbaa !19, !range !17, !noundef !18
  %38 = trunc nuw i8 %37 to i1
  %39 = tail call noundef double @_Z6gate_Cddbbb(double noundef %28, double noundef 0.000000e+00, i1 noundef zeroext %36, i1 noundef zeroext false, i1 noundef zeroext %38)
  %40 = getelementptr inbounds i8, ptr %0, i64 472
  %41 = load double, ptr %40, align 8, !tbaa !30
  %42 = load i8, ptr %2, align 1, !tbaa !5, !range !17, !noundef !18
  %43 = trunc nuw i8 %42 to i1
  %44 = load i8, ptr %5, align 2, !tbaa !19, !range !17, !noundef !18
  %45 = trunc nuw i8 %44 to i1
  %46 = tail call noundef double @_Z6gate_Cddbbb(double noundef %41, double noundef 0.000000e+00, i1 noundef zeroext %43, i1 noundef zeroext false, i1 noundef zeroext %45)
  %47 = fadd double %39, %46
  %48 = fdiv double %33, %47
  %49 = fmul double %.0, %48
  %50 = getelementptr inbounds i8, ptr %0, i64 308
  %51 = load i32, ptr %50, align 4, !tbaa !32
  %52 = load i32, ptr %18, align 4, !tbaa !21
  %53 = icmp eq i32 %52, 2
  %54 = select i1 %53, double %11, double %13
  %55 = load double, ptr %32, align 8, !tbaa !31
  %56 = load i8, ptr %2, align 1, !tbaa !5, !range !17, !noundef !18
  %57 = trunc nuw i8 %56 to i1
  %58 = load i8, ptr %5, align 2, !tbaa !19, !range !17, !noundef !18
  %59 = trunc nuw i8 %58 to i1
  %60 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 24), align 8, !tbaa !33
  %61 = tail call noundef i32 @_ZN9Component14logical_effortEiddPdS0_ddbbd(ptr noundef nonnull align 8 dereferenceable(280) %0, i32 noundef %51, double noundef %54, double noundef %49, ptr noundef nonnull %34, ptr noundef nonnull %40, double noundef %55, double noundef %8, i1 noundef zeroext %57, i1 noundef zeroext %59, double noundef %60)
  %62 = getelementptr inbounds i8, ptr %0, i64 304
  store i32 %61, ptr %62, align 8, !tbaa !34
  br label %63

63:                                               ; preds = %26, %1
  ret void
}

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

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

declare noundef i32 @_ZN9Component14logical_effortEiddPdS0_ddbbd(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef, double noundef, double noundef, ptr noundef, ptr noundef, double noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, double noundef) local_unnamed_addr #1

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 = { "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, !14, i64 641}
!6 = !{!"_ZTS7Decoder", !7, i64 0, !14, i64 280, !15, i64 284, !9, i64 288, !9, i64 296, !15, i64 304, !15, i64 308, !10, i64 312, !10, i64 472, !9, i64 632, !14, i64 640, !14, i64 641, !14, i64 642, !16, i64 648}
!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 = !{!"bool", !10, i64 0}
!15 = !{!"int", !10, i64 0}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !14, i64 642}
!20 = !{!6, !14, i64 280}
!21 = !{!6, !15, i64 284}
!22 = !{!6, !14, i64 640}
!23 = !{!24, !9, i64 8}
!24 = !{!"_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, !25, i64 352, !26, i64 360, !26, i64 528, !26, i64 696, !26, i64 864, !26, i64 1032, !27, i64 1200, !27, i64 1264, !27, i64 1328, !28, i64 1392, !29, i64 1416, !29, i64 1464, !29, i64 1512}
!25 = !{!"long", !10, i64 0}
!26 = !{!"_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}
!27 = !{!"_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}
!28 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!29 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}
!30 = !{!9, !9, i64 0}
!31 = !{!6, !9, i64 288}
!32 = !{!6, !15, i64 308}
!33 = !{!24, !9, i64 24}
!34 = !{!6, !15, i64 304}


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