Minor bug fix in 'testcex' (made it consider outputs in direct order).

This commit is contained in:
Alan Mishchenko 2011-08-01 11:24:02 +07:00
parent 34811655f2
commit 88251e97e3
1 changed files with 2 additions and 1 deletions

View File

@ -1211,7 +1211,8 @@ int Gia_ManFindFailedPoCex( Gia_Man_t * pAig, Abc_Cex_t * p, int nOutputs )
assert( iBit == p->nBits );
// figure out the number of failed output
RetValue = -1;
for ( i = Gia_ManPoNum(pAig) - 1; i >= nOutputs; i-- )
// for ( i = Gia_ManPoNum(pAig) - 1; i >= nOutputs; i-- )
for ( i = nOutputs; i < Gia_ManPoNum(pAig); i++ )
{
if ( Gia_ManPo(pAig, i)->fMark0 )
{