; LLVM IR from gem5/gem5 :: ext/mcpat/logic.ll (ZN27dep_resource_conflict_check16leakage_feedbackEd)

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_Z14init_interfaceP14InputParameterRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%class.uca_org_t) align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200)) unnamed_addr #2 align 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 @_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) #1

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

declare noundef double @_Z23simplified_nmos_leakagedbbb(double noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN27dep_resource_conflict_check16leakage_feedbackEd(ptr noundef nonnull align 8 dereferenceable(10632) %0, double noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca %class.uca_org_t, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %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
  %11 = load double, ptr %4, align 8, !tbaa !9
  %12 = fdiv double %11, 1.000000e+01
  %13 = call double @llvm.round.f64(double %12)
  %14 = fptoui double %13 to i32
  %15 = mul i32 %14, 10
  %16 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 1
  %17 = getelementptr inbounds %class.InputParameter, ptr %16, i32 0, i32 26
  store i32 %15, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8200, ptr %5) #5
  %18 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 1
  %19 = getelementptr inbounds %class.McPATComponent, ptr %10, i32 0, i32 4
  call void @_Z14init_interfaceP14InputParameterRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%class.uca_org_t) align 8 %5, ptr noundef %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %20 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 10
  %21 = getelementptr inbounds %class.CoreParameters, ptr %20, i32 0, i32 18
  %22 = load i32, ptr %21, align 4, !tbaa !38
  %23 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 10
  %24 = getelementptr inbounds %class.CoreParameters, ptr %23, i32 0, i32 18
  %25 = load i32, ptr %24, align 4, !tbaa !38
  %26 = mul nsw i32 %22, %25
  %27 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 10
  %28 = getelementptr inbounds %class.CoreParameters, ptr %27, i32 0, i32 18
  %29 = load i32, ptr %28, align 4, !tbaa !38
  %30 = sub nsw i32 %26, %29
  %31 = mul nsw i32 3, %30
  store i32 %31, ptr %6, align 4, !tbaa !39
  %32 = load i32, ptr %6, align 4, !tbaa !39
  %33 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 11
  %34 = load i32, ptr %33, align 8, !tbaa !40
  %35 = mul nsw i32 %32, %34
  %36 = mul nsw i32 %35, 2
  %37 = sitofp i32 %36 to double
  %38 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 7
  %39 = load double, ptr %38, align 8, !tbaa !41
  %40 = invoke noundef double @_Z23simplified_nmos_leakagedbbb(double noundef %39, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %41 unwind label %78

41:                                               ; preds = %2
  %42 = fmul double %37, %40
  %43 = getelementptr inbounds i8, ptr %10, i64 8
  %44 = getelementptr inbounds %class.Component, ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds %class.powerDef, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %class.powerComponents, ptr %45, i32 0, i32 1
  store double %42, ptr %46, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %47 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 10
  %48 = getelementptr inbounds %class.CoreParameters, ptr %47, i32 0, i32 3
  %49 = load i32, ptr %48, align 4, !tbaa !43
  %50 = invoke noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 0, i32 noundef %49)
          to label %51 unwind label %82

51:                                               ; preds = %41
  store double %50, ptr %9, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %10, i64 8
  %53 = getelementptr inbounds %class.Component, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %class.powerDef, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %class.powerComponents, ptr %54, i32 0, i32 1
  %56 = load double, ptr %55, align 8, !tbaa !42
  %57 = load double, ptr %9, align 8, !tbaa !9
  %58 = fmul double %56, %57
  %59 = getelementptr inbounds i8, ptr %10, i64 8
  %60 = getelementptr inbounds %class.Component, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %class.powerDef, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %class.powerComponents, ptr %61, i32 0, i32 4
  store double %58, ptr %62, align 8, !tbaa !44
  %63 = load i32, ptr %6, align 4, !tbaa !39
  %64 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 11
  %65 = load i32, ptr %64, align 8, !tbaa !40
  %66 = mul nsw i32 %63, %65
  %67 = mul nsw i32 %66, 2
  %68 = sitofp i32 %67 to double
  %69 = getelementptr inbounds %class.dep_resource_conflict_check, ptr %10, i32 0, i32 7
  %70 = load double, ptr %69, align 8, !tbaa !41
  %71 = invoke noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %70, double noundef 0.000000e+00, i32 noundef 2, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
          to label %72 unwind label %82

72:                                               ; preds = %51
  %73 = fmul double %68, %71
  %74 = getelementptr inbounds i8, ptr %10, i64 8
  %75 = getelementptr inbounds %class.Component, ptr %74, i32 0, i32 1
  %76 = getelementptr inbounds %class.powerDef, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %class.powerComponents, ptr %76, i32 0, i32 2
  store double %73, ptr %77, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %5) #5
  call void @llvm.lifetime.end.p0(i64 8200, ptr %5) #5
  ret void

78:                                               ; preds = %2
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %86

82:                                               ; preds = %51, %41
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %5) #5
  call void @llvm.lifetime.end.p0(i64 8200, ptr %5) #5
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %7, align 8
  %89 = load i32, ptr %8, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !19, i64 1452}
!12 = !{!"_ZTS27dep_resource_conflict_check", !13, i64 0, !18, i64 1352, !32, i64 1720, !10, i64 9920, !10, i64 9928, !10, i64 9936, !10, i64 9944, !10, i64 9952, !10, i64 9960, !10, i64 9968, !34, i64 9976, !19, i64 10456, !20, i64 10460, !30, i64 10464}
!13 = !{!"_ZTS14McPATComponent", !14, i64 8, !6, i64 288, !18, i64 296, !22, i64 664, !10, i64 696, !25, i64 704, !29, i64 728, !30, i64 776, !30, i64 944, !16, i64 1112, !16, i64 1232}
!14 = !{!"_ZTS9Component", !15, i64 0, !16, i64 24, !16, i64 144, !10, i64 264, !10, i64 272}
!15 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!"_ZTS8powerDef", !17, i64 0, !17, i64 40, !17, i64 80}
!17 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!18 = !{!"_ZTS14InputParameter", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !19, i64 16, !20, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !19, i64 40, !19, i64 44, !10, i64 48, !10, i64 56, !19, i64 64, !19, i64 68, !19, i64 72, !19, i64 76, !19, i64 80, !20, i64 84, !20, i64 85, !20, i64 86, !20, i64 87, !20, i64 88, !19, i64 92, !19, i64 96, !19, i64 100, !19, i64 104, !19, i64 108, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !19, i64 140, !19, i64 144, !19, i64 148, !21, i64 152, !19, i64 156, !20, i64 160, !19, i64 164, !19, i64 168, !19, i64 172, !19, i64 176, !19, i64 180, !19, i64 184, !19, i64 188, !20, i64 192, !19, i64 196, !19, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !19, i64 220, !19, i64 224, !19, i64 228, !19, i64 232, !19, i64 236, !19, i64 240, !19, i64 244, !19, i64 248, !19, i64 252, !19, i64 256, !19, i64 260, !19, i64 264, !19, i64 268, !19, i64 272, !19, i64 276, !19, i64 280, !19, i64 284, !19, i64 288, !19, i64 292, !19, i64 296, !20, i64 300, !19, i64 304, !19, i64 308, !19, i64 312, !20, i64 316, !20, i64 317, !19, i64 320, !19, i64 324, !20, i64 328, !10, i64 336, !10, i64 344, !20, i64 352, !19, i64 356, !19, i64 360, !20, i64 364}
!19 = !{!"int", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTS9Wire_type", !7, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTS11McPATOutput", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!30 = !{!"_ZTS8statsDef", !31, i64 0, !31, i64 24, !31, i64 48, !31, i64 72, !31, i64 96, !31, i64 120, !31, i64 144}
!31 = !{!"_ZTS15statsComponents", !10, i64 0, !10, i64 8, !10, i64 16}
!32 = !{!"_ZTS9uca_org_t", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !16, i64 48, !10, i64 168, !10, i64 176, !10, i64 184, !7, i64 192, !10, i64 296, !20, i64 304, !33, i64 312, !33, i64 4256}
!33 = !{!"_ZTS17results_mem_array", !19, i64 0, !19, i64 4, !10, i64 8, !19, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !16, i64 272, !16, i64 392, !16, i64 512, !16, i64 632, !16, i64 752, !16, i64 872, !16, i64 992, !16, i64 1112, !16, i64 1232, !16, i64 1352, !16, i64 1472, !16, i64 1592, !16, i64 1712, !16, i64 1832, !16, i64 1952, !16, i64 2072, !16, i64 2192, !16, i64 2312, !16, i64 2432, !16, i64 2552, !16, i64 2672, !16, i64 2792, !16, i64 2912, !16, i64 3032, !16, i64 3152, !16, i64 3272, !16, i64 3392, !16, i64 3512, !16, i64 3632, !10, i64 3752, !10, i64 3760, !10, i64 3768, !10, i64 3776, !10, i64 3784, !10, i64 3792, !10, i64 3800, !10, i64 3808, !10, i64 3816, !10, i64 3824, !10, i64 3832, !10, i64 3840, !10, i64 3848, !10, i64 3856, !10, i64 3864, !10, i64 3872, !10, i64 3880, !10, i64 3888, !10, i64 3896, !10, i64 3904, !10, i64 3912, !10, i64 3920, !10, i64 3928, !10, i64 3936}
!34 = !{!"_ZTS14CoreParameters", !20, i64 0, !20, i64 1, !20, i64 2, !35, i64 4, !36, i64 8, !37, i64 12, !10, i64 16, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !19, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !19, i64 56, !19, i64 60, !19, i64 64, !19, i64 68, !19, i64 72, !19, i64 76, !19, i64 80, !19, i64 84, !19, i64 88, !19, i64 92, !19, i64 96, !19, i64 100, !19, i64 104, !19, i64 108, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !19, i64 140, !19, i64 144, !19, i64 148, !10, i64 152, !19, i64 160, !19, i64 164, !19, i64 168, !19, i64 172, !20, i64 176, !20, i64 177, !7, i64 184, !19, i64 216, !19, i64 220, !19, i64 224, !19, i64 228, !19, i64 232, !19, i64 236, !19, i64 240, !10, i64 248, !10, i64 256, !19, i64 264, !19, i64 268, !19, i64 272, !19, i64 276, !19, i64 280, !19, i64 284, !19, i64 288, !19, i64 292, !19, i64 296, !19, i64 300, !19, i64 304, !19, i64 308, !19, i64 312, !19, i64 316, !19, i64 320, !19, i64 324, !19, i64 328, !19, i64 332, !19, i64 336, !19, i64 340, !19, i64 344, !19, i64 348, !19, i64 352, !19, i64 356, !19, i64 360, !19, i64 364, !19, i64 368, !19, i64 372, !19, i64 376, !19, i64 380, !19, i64 384, !19, i64 388, !19, i64 392, !19, i64 396, !19, i64 400, !19, i64 404, !19, i64 408, !19, i64 412, !19, i64 416, !19, i64 420, !21, i64 424, !21, i64 428, !19, i64 432, !10, i64 440, !10, i64 448, !19, i64 456, !10, i64 464, !10, i64 472}
!35 = !{!"_ZTS9Core_type", !7, i64 0}
!36 = !{!"_ZTS13Renaming_type", !7, i64 0}
!37 = !{!"_ZTS14Scheduler_type", !7, i64 0}
!38 = !{!12, !19, i64 10044}
!39 = !{!19, !19, i64 0}
!40 = !{!12, !19, i64 10456}
!41 = !{!12, !10, i64 9952}
!42 = !{!14, !10, i64 32}
!43 = !{!12, !35, i64 9980}
!44 = !{!14, !10, i64 56}
!45 = !{!14, !10, i64 40}


; 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.uca_org_t = type { ptr, ptr, double, double, double, double, %class.powerDef, double, double, double, [100 x i8], double, i8, %struct.results_mem_array, %struct.results_mem_array }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%struct.results_mem_array = type { i32, i32, double, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

declare i32 @__gxx_personality_v0(...)

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

declare void @_Z14init_interfaceP14InputParameterRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%class.uca_org_t) align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN27dep_resource_conflict_check16leakage_feedbackEd(ptr noundef nonnull align 8 dereferenceable(10632) %0, double noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.uca_org_t, align 8
  %4 = fdiv double %1, 1.000000e+01
  %5 = tail call double @llvm.round.f64(double %4)
  %6 = fptoui double %5 to i32
  %7 = mul i32 %6, 10
  %8 = getelementptr inbounds i8, ptr %0, i64 1352
  %9 = getelementptr inbounds i8, ptr %0, i64 1452
  store i32 %7, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8200, ptr nonnull %3) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 664
  call void @_Z14init_interfaceP14InputParameterRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%class.uca_org_t) align 8 %3, ptr noundef nonnull %8, ptr noundef nonnull align 8 dereferenceable(32) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 10044
  %12 = load i32, ptr %11, align 4, !tbaa !36
  %13 = add i32 %12, -1
  %14 = mul i32 %12, 3
  %15 = mul i32 %14, %13
  %16 = getelementptr inbounds i8, ptr %0, i64 10456
  %17 = load i32, ptr %16, align 8, !tbaa !37
  %18 = getelementptr inbounds i8, ptr %0, i64 9952
  %19 = load double, ptr %18, align 8, !tbaa !38
  %20 = invoke noundef double @_Z23simplified_nmos_leakagedbbb(double noundef %19, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %21 unwind label %43

21:                                               ; preds = %2
  %22 = shl i32 %17, 1
  %23 = mul i32 %22, %15
  %24 = sitofp i32 %23 to double
  %25 = fmul double %20, %24
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  store double %25, ptr %26, align 8, !tbaa !39
  %27 = getelementptr inbounds i8, ptr %0, i64 9980
  %28 = load i32, ptr %27, align 4, !tbaa !40
  %29 = invoke noundef double @_Z31longer_channel_device_reduction9Device_ty9Core_type(i32 noundef 0, i32 noundef %28)
          to label %30 unwind label %45

30:                                               ; preds = %21
  %31 = load double, ptr %26, align 8, !tbaa !39
  %32 = fmul double %29, %31
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  store double %32, ptr %33, align 8, !tbaa !41
  %34 = load i32, ptr %16, align 8, !tbaa !37
  %35 = load double, ptr %18, align 8, !tbaa !38
  %36 = invoke noundef double @_Z15cmos_Ig_leakageddi9Gate_typebbb17Half_net_topology(double noundef %35, double noundef 0.000000e+00, i32 noundef 2, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 1)
          to label %37 unwind label %45

37:                                               ; preds = %30
  %38 = shl i32 %15, 1
  %39 = mul i32 %38, %34
  %40 = sitofp i32 %39 to double
  %41 = fmul double %36, %40
  %42 = getelementptr inbounds i8, ptr %0, i64 48
  store double %41, ptr %42, align 8, !tbaa !42
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %3) #5
  call void @llvm.lifetime.end.p0(i64 8200, ptr nonnull %3) #5
  ret void

43:                                               ; preds = %2
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %30, %21
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %3) #5
  call void @llvm.lifetime.end.p0(i64 8200, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !17, i64 1452}
!6 = !{!"_ZTS27dep_resource_conflict_check", !7, i64 0, !16, i64 1352, !30, i64 1720, !10, i64 9920, !10, i64 9928, !10, i64 9936, !10, i64 9944, !10, i64 9952, !10, i64 9960, !10, i64 9968, !32, i64 9976, !17, i64 10456, !18, i64 10460, !28, i64 10464}
!7 = !{!"_ZTS14McPATComponent", !8, i64 8, !15, i64 288, !16, i64 296, !20, i64 664, !10, i64 696, !23, i64 704, !27, i64 728, !28, i64 776, !28, i64 944, !13, i64 1112, !13, i64 1232}
!8 = !{!"_ZTS9Component", !9, i64 0, !13, i64 24, !13, i64 144, !10, i64 264, !10, i64 272}
!9 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!10 = !{!"double", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTS8powerDef", !14, i64 0, !14, i64 40, !14, i64 80}
!14 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!15 = !{!"any pointer", !11, i64 0}
!16 = !{!"_ZTS14InputParameter", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !18, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !10, i64 48, !10, i64 56, !17, i64 64, !17, i64 68, !17, i64 72, !17, i64 76, !17, i64 80, !18, i64 84, !18, i64 85, !18, i64 86, !18, i64 87, !18, i64 88, !17, i64 92, !17, i64 96, !17, i64 100, !17, i64 104, !17, i64 108, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136, !17, i64 140, !17, i64 144, !17, i64 148, !19, i64 152, !17, i64 156, !18, i64 160, !17, i64 164, !17, i64 168, !17, i64 172, !17, i64 176, !17, i64 180, !17, i64 184, !17, i64 188, !18, i64 192, !17, i64 196, !17, i64 200, !17, i64 204, !17, i64 208, !17, i64 212, !17, i64 216, !17, i64 220, !17, i64 224, !17, i64 228, !17, i64 232, !17, i64 236, !17, i64 240, !17, i64 244, !17, i64 248, !17, i64 252, !17, i64 256, !17, i64 260, !17, i64 264, !17, i64 268, !17, i64 272, !17, i64 276, !17, i64 280, !17, i64 284, !17, i64 288, !17, i64 292, !17, i64 296, !18, i64 300, !17, i64 304, !17, i64 308, !17, i64 312, !18, i64 316, !18, i64 317, !17, i64 320, !17, i64 324, !18, i64 328, !10, i64 336, !10, i64 344, !18, i64 352, !17, i64 356, !17, i64 360, !18, i64 364}
!17 = !{!"int", !11, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTS9Wire_type", !11, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !11, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!22 = !{!"long", !11, i64 0}
!23 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!27 = !{!"_ZTS11McPATOutput", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!28 = !{!"_ZTS8statsDef", !29, i64 0, !29, i64 24, !29, i64 48, !29, i64 72, !29, i64 96, !29, i64 120, !29, i64 144}
!29 = !{!"_ZTS15statsComponents", !10, i64 0, !10, i64 8, !10, i64 16}
!30 = !{!"_ZTS9uca_org_t", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !10, i64 168, !10, i64 176, !10, i64 184, !11, i64 192, !10, i64 296, !18, i64 304, !31, i64 312, !31, i64 4256}
!31 = !{!"_ZTS17results_mem_array", !17, i64 0, !17, i64 4, !10, i64 8, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !13, i64 272, !13, i64 392, !13, i64 512, !13, i64 632, !13, i64 752, !13, i64 872, !13, i64 992, !13, i64 1112, !13, i64 1232, !13, i64 1352, !13, i64 1472, !13, i64 1592, !13, i64 1712, !13, i64 1832, !13, i64 1952, !13, i64 2072, !13, i64 2192, !13, i64 2312, !13, i64 2432, !13, i64 2552, !13, i64 2672, !13, i64 2792, !13, i64 2912, !13, i64 3032, !13, i64 3152, !13, i64 3272, !13, i64 3392, !13, i64 3512, !13, i64 3632, !10, i64 3752, !10, i64 3760, !10, i64 3768, !10, i64 3776, !10, i64 3784, !10, i64 3792, !10, i64 3800, !10, i64 3808, !10, i64 3816, !10, i64 3824, !10, i64 3832, !10, i64 3840, !10, i64 3848, !10, i64 3856, !10, i64 3864, !10, i64 3872, !10, i64 3880, !10, i64 3888, !10, i64 3896, !10, i64 3904, !10, i64 3912, !10, i64 3920, !10, i64 3928, !10, i64 3936}
!32 = !{!"_ZTS14CoreParameters", !18, i64 0, !18, i64 1, !18, i64 2, !33, i64 4, !34, i64 8, !35, i64 12, !10, i64 16, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !17, i64 64, !17, i64 68, !17, i64 72, !17, i64 76, !17, i64 80, !17, i64 84, !17, i64 88, !17, i64 92, !17, i64 96, !17, i64 100, !17, i64 104, !17, i64 108, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136, !17, i64 140, !17, i64 144, !17, i64 148, !10, i64 152, !17, i64 160, !17, i64 164, !17, i64 168, !17, i64 172, !18, i64 176, !18, i64 177, !11, i64 184, !17, i64 216, !17, i64 220, !17, i64 224, !17, i64 228, !17, i64 232, !17, i64 236, !17, i64 240, !10, i64 248, !10, i64 256, !17, i64 264, !17, i64 268, !17, i64 272, !17, i64 276, !17, i64 280, !17, i64 284, !17, i64 288, !17, i64 292, !17, i64 296, !17, i64 300, !17, i64 304, !17, i64 308, !17, i64 312, !17, i64 316, !17, i64 320, !17, i64 324, !17, i64 328, !17, i64 332, !17, i64 336, !17, i64 340, !17, i64 344, !17, i64 348, !17, i64 352, !17, i64 356, !17, i64 360, !17, i64 364, !17, i64 368, !17, i64 372, !17, i64 376, !17, i64 380, !17, i64 384, !17, i64 388, !17, i64 392, !17, i64 396, !17, i64 400, !17, i64 404, !17, i64 408, !17, i64 412, !17, i64 416, !17, i64 420, !19, i64 424, !19, i64 428, !17, i64 432, !10, i64 440, !10, i64 448, !17, i64 456, !10, i64 464, !10, i64 472}
!33 = !{!"_ZTS9Core_type", !11, i64 0}
!34 = !{!"_ZTS13Renaming_type", !11, i64 0}
!35 = !{!"_ZTS14Scheduler_type", !11, i64 0}
!36 = !{!6, !17, i64 10044}
!37 = !{!6, !17, i64 10456}
!38 = !{!6, !10, i64 9952}
!39 = !{!8, !10, i64 32}
!40 = !{!6, !33, i64 9980}
!41 = !{!8, !10, i64 56}
!42 = !{!8, !10, i64 40}


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