From ed90ce20df9c7c4d6e1db5d3f786f9b52e06bab1 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 5 Mar 2020 14:43:40 -0800 Subject: Updating and extending simulation data structures. --- src/base/abci/abc.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index e6d9a986..934f8fbe 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -32653,7 +32653,6 @@ int Abc_CommandAbc9MLTest( Abc_Frame_t * pAbc, int argc, char ** argv ) { extern void Gia_ManTestOneFile( Gia_Man_t * p, char * pFileName ); int c, fVerbose = 0; - char * pFileName = NULL; char ** pArgvNew; int nArgcNew; Extra_UtilGetoptReset(); @@ -32672,29 +32671,23 @@ int Abc_CommandAbc9MLTest( Abc_Frame_t * pAbc, int argc, char ** argv ) } if ( pAbc->pGia == NULL ) { - Abc_Print( -1, "Abc_CommandAbc9MLGen(): There is no AIG.\n" ); + Abc_Print( -1, "Abc_CommandAbc9MLTest(): There is no AIG.\n" ); return 1; } if ( Gia_ManRegNum(pAbc->pGia) > 0 ) { - Abc_Print( -1, "Abc_CommandAbc9MLGen(): This command works only for combinational AIGs.\n" ); + Abc_Print( -1, "Abc_CommandAbc9MLTest(): This command works only for combinational AIGs.\n" ); return 0; } Vec_WrdFreeP( &pAbc->pGia->vSimsPi ); pArgvNew = argv + globalUtilOptind; nArgcNew = argc - globalUtilOptind; - if ( nArgcNew == 0 ) - { - printf( "Expecting data file name on the command line.\n" ); - return 0; - } - pFileName = pArgvNew[0]; if ( nArgcNew != 1 ) { - Abc_Print( -1, "File name is not given on the command line.\n" ); - return 1; + Abc_Print( -1, "Abc_CommandAbc9MLTest(): Expecting data file name on the command line.\n" ); + return 0; } - Gia_ManTestOneFile( pAbc->pGia, pFileName ); + Gia_ManTestOneFile( pAbc->pGia, pArgvNew[0] ); return 0; usage: @@ -47594,7 +47587,7 @@ int Abc_CommandAbc9Test( Abc_Frame_t * pAbc, int argc, char ** argv ) // Extra_TestGia2( pAbc->pGia ); //pTemp = Dau_ConstructAigFromFile( "lib4var2.txt" ); //Abc_FrameUpdateGia( pAbc, pTemp ); - Gia_Sim5TestPolarities( pAbc->pGia ); + //Gia_Sim5TestPolarities( pAbc->pGia ); return 0; usage: Abc_Print( -2, "usage: &test [-FW num] [-svh]\n" ); -- cgit v1.2.3