diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-06 13:41:45 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-06 13:41:45 -0800 |
commit | cca7e038f2713b2ff9d2f23067f9befcc7ef654e (patch) | |
tree | 260802c4f6eb2998ce5b762f74f3557cdc55486a | |
parent | f402d09c7468e906b7f26f9c8a853383394b9ebf (diff) | |
download | abc-cca7e038f2713b2ff9d2f23067f9befcc7ef654e.tar.gz abc-cca7e038f2713b2ff9d2f23067f9befcc7ef654e.tar.bz2 abc-cca7e038f2713b2ff9d2f23067f9befcc7ef654e.zip |
Corner-case bug-fix in retiming.
-rw-r--r-- | src/base/wln/wlnRetime.c | 4 |
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 ) { |