From f2a94a6ffa1880802247bd355cd9885c9848c03a Mon Sep 17 00:00:00 2001 From: James Cherry Date: Thu, 5 Jun 2025 17:32:07 -0700 Subject: [PATCH] Properties::edgeDelay resolves #254 Signed-off-by: James Cherry --- search/Property.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/search/Property.cc b/search/Property.cc index 49956330..1613e3ae 100644 --- a/search/Property.cc +++ b/search/Property.cc @@ -1182,11 +1182,10 @@ Properties::edgeDelay(Edge *edge, DcalcAnalysisPt *dcalc_ap = corner->findDcalcAnalysisPt(min_max); ArcDelay arc_delay = sta_->arcDelay(edge, arc, dcalc_ap); if (!delay_exists - || ((min_max == MinMax::max() - && delayGreater(arc_delay, delay, sta_)) - || (min_max == MinMax::min() - && delayLess(arc_delay, delay, sta_)))) + || delayGreater(arc_delay, delay, min_max, sta_)) { delay = arc_delay; + delay_exists = true; + } } } }