diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-02-08 13:06:20 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-02-08 13:06:20 -0800 |
commit | 881b5a24a0bcc6439b78fb6b0fdbf601d8b9a46e (patch) | |
tree | 3364b104df2489c97dafe0a618894cd1331f09ae /src | |
parent | 4d838e7513a4ec13ea2a88bea4c2e0385f1a504a (diff) | |
download | abc-881b5a24a0bcc6439b78fb6b0fdbf601d8b9a46e.tar.gz abc-881b5a24a0bcc6439b78fb6b0fdbf601d8b9a46e.tar.bz2 abc-881b5a24a0bcc6439b78fb6b0fdbf601d8b9a46e.zip |
Add skip feature to CEX printing.
Diffstat (limited to 'src')
-rw-r--r-- | src/base/io/io.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/base/io/io.c b/src/base/io/io.c index ea46ac66..2984e785 100644 --- a/src/base/io/io.c +++ b/src/base/io/io.c @@ -2292,6 +2292,14 @@ ABC_NAMESPACE_IMPL_END ABC_NAMESPACE_IMPL_START +int Abc_NtkCheckSpecialPi( Abc_Ntk_t * pNtk ) +{ + Abc_Obj_t * pObj; int i; + Abc_NtkForEachPi( pNtk, pObj, i ) + if ( !strcmp(Abc_ObjName(pObj), "_abc_190121_abc_") ) + return 1; + return 0; +} /**Function************************************************************* @@ -2448,7 +2456,7 @@ int IoCommandWriteCex( Abc_Frame_t * pAbc, int argc, char **argv ) } fprintf( pFile, "\n"); fprintf( pFile, "# COUNTEREXAMPLE LENGTH: %u\n", pCex->iFrame+1); - if ( fUseFfNames ) + if ( fUseFfNames && Abc_NtkCheckSpecialPi(pNtk) ) { int * pValues; int nXValues = 0, iFlop = 0, iPivotPi = -1; |