From 128ea3cf283ba2ac0af699543c8e037cc9bfc0a5 Mon Sep 17 00:00:00 2001 From: Mike Inouye Date: Fri, 9 Jan 2026 10:49:00 -0700 Subject: [PATCH] Use Map with a deterministic instance power iterator (#359) * Use deterministic instance power iterator * Use deterministic instance power iterator * Use std::map instead of sta::Map --- power/Power.cc | 1 + power/Power.hh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/power/Power.cc b/power/Power.cc index 8a9aed76..3265fe96 100644 --- a/power/Power.cc +++ b/power/Power.cc @@ -101,6 +101,7 @@ Power::Power(StaState *sta) : seq_activity_map_(100, SeqPinHash(network_), SeqPinEqual()), activities_valid_(false), bdd_(sta), + instance_powers_(InstanceIdLess(network_)), instance_powers_valid_(false), corner_(nullptr) { diff --git a/power/Power.hh b/power/Power.hh index 5c45fd60..abed2f40 100644 --- a/power/Power.hh +++ b/power/Power.hh @@ -238,7 +238,7 @@ private: PwrSeqActivityMap seq_activity_map_; bool activities_valid_; Bdd bdd_; - std::map instance_powers_; + std::map instance_powers_; bool instance_powers_valid_; const Corner *corner_;