summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2020-03-06 13:41:45 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2020-03-06 13:41:45 -0800
commitcca7e038f2713b2ff9d2f23067f9befcc7ef654e (patch)
tree260802c4f6eb2998ce5b762f74f3557cdc55486a /src/base
parentf402d09c7468e906b7f26f9c8a853383394b9ebf (diff)
downloadabc-cca7e038f2713b2ff9d2f23067f9befcc7ef654e.tar.gz
abc-cca7e038f2713b2ff9d2f23067f9befcc7ef654e.tar.bz2
abc-cca7e038f2713b2ff9d2f23067f9befcc7ef654e.zip
Corner-case bug-fix in retiming.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/wln/wlnRetime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/wln/wlnRetime.c b/src/base/wln/wlnRetime.c
index 2d7c814b..4e886c5d 100644
--- a/src/base/wln/wlnRetime.c
+++ b/src/base/wln/wlnRetime.c
@@ -370,7 +370,7 @@ static inline int Wln_RetCheckForwardOne( Wln_Ret_t * p, int iObj )
else if ( Class != Vec_IntEntry( &p->vFfClasses, iFlop ) )
return 0;
}
- return 1;
+ return Class == -1 ? 0 : 1;
}
int Wln_RetCheckForward( Wln_Ret_t * p, Vec_Int_t * vSet )
{
@@ -398,7 +398,7 @@ static inline int Wln_RetCheckBackwardOne( Wln_Ret_t * p, int iObj )
else if ( Class != Vec_IntEntry( &p->vFfClasses, iFlop ) )
return 0;
}
- return 1;
+ return Class == -1 ? 0 : 1;
}
int Wln_RetCheckBackward( Wln_Ret_t * p, Vec_Int_t * vSet )
{