clkTreeDelay to check arc without assuming it exists

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
This commit is contained in:
dsengupta0628 2026-03-19 16:54:09 +00:00
parent 69e11bbd0d
commit 8e45eff4b9
1 changed files with 1 additions and 1 deletions

View File

@ -2761,7 +2761,7 @@ LibertyPort::clkTreeDelay(float in_slew,
|| (arc_set->role() == TimingRole::clockTreePathMax()
&& min_max == MinMax::max())) {
const TimingArc *arc = arc_set->arcTo(to_rf);
if (arc->fromEdge()->asRiseFall() == from_rf) {
if (arc && arc->fromEdge()->asRiseFall() == from_rf) {
const GateTableModel *gate_model = dynamic_cast<GateTableModel*>(arc->model());
if (gate_model)
return gate_model->delayModel()->findValue(in_slew, 0.0, 0.0);