summaryrefslogtreecommitdiffstats
path: root/src/base/abci/abcDetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/abci/abcDetect.c')
-rw-r--r--src/base/abci/abcDetect.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/base/abci/abcDetect.c b/src/base/abci/abcDetect.c
index 4325f49c..8b8bba64 100644
--- a/src/base/abci/abcDetect.c
+++ b/src/base/abci/abcDetect.c
@@ -63,7 +63,7 @@ typedef enum {
SeeAlso []
***********************************************************************/
-void Abc_NtkGenFaultList( Abc_Ntk_t * pNtk, char * pFileName )
+void Abc_NtkGenFaultList( Abc_Ntk_t * pNtk, char * pFileName, int fStuckAt )
{
Mio_Library_t * pLib = (Mio_Library_t *)pNtk->pManFunc;
Mio_Gate_t * pGate;
@@ -84,14 +84,16 @@ void Abc_NtkGenFaultList( Abc_Ntk_t * pNtk, char * pFileName )
fprintf( pFile, "%d %s %s\n", Count, Abc_ObjName(pObj), "SA0" ), Count++;
fprintf( pFile, "%d %s %s\n", Count, Abc_ObjName(pObj), "SA1" ), Count++;
fprintf( pFile, "%d %s %s\n", Count, Abc_ObjName(pObj), "NEG" ), Count++;
+ if ( fStuckAt )
+ continue;
// add other faults, which correspond to changing the given gate
// by another gate with the same support-size from the same library
Mio_LibraryForEachGate( pLib, pGate )
if ( pGate != pGateObj && Mio_GateReadPinNum(pGate) == nInputs )
fprintf( pFile, "%d %s %s\n", Count, Abc_ObjName(pObj), Mio_GateReadName(pGate) ), Count++;
}
- printf( "Generated fault list \"%s\" for network \"%s\" with %d nodes and %d faults.\n",
- pFileName, Abc_NtkName(pNtk), Abc_NtkNodeNum(pNtk), Count-1 );
+ printf( "Generated fault list \"%s\" for network \"%s\" with %d nodes and %d %sfaults.\n",
+ pFileName, Abc_NtkName(pNtk), Abc_NtkNodeNum(pNtk), Count-1, fStuckAt ? "stuck-at ":"" );
fclose( pFile );
}