From 6b0accd22a7d28282ba35b10572fd188cad2d629 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 18 Feb 2015 20:42:48 -0800 Subject: Modifications to read SMTLIB file from stdin. --- src/base/main/mainReal.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/base/main') diff --git a/src/base/main/mainReal.c b/src/base/main/mainReal.c index 04152ae6..abe1f453 100644 --- a/src/base/main/mainReal.c +++ b/src/base/main/mainReal.c @@ -232,22 +232,7 @@ int Abc_RealMain( int argc, char * argv[] ) if ( fBatch == BATCH_SMT ) { - Wlc_Ntk_t * pNtk; - Vec_Str_t * vInput; - // collect stdin - vInput = Wlc_GenerateSmtStdin(); - // parse the input - pNtk = Wlc_ReadSmtBuffer( NULL, Vec_StrArray(vInput), Vec_StrArray(vInput) + Vec_StrSize(vInput) ); - Vec_StrFree( vInput ); - // install current network - Wlc_SetNtk( pAbc, pNtk ); - // execute command - fStatus = Cmd_CommandExecute( pAbc, sCommandUsr ); - // generate output - if ( !fStatus ) - Wlc_GenerateSmtStdout( pAbc ); - else - Abc_Print( 1, "Something did not work out with the command \"%s\".\n", sCommandUsr ); + Wlc_StdinProcessSmt( pAbc, sCommandUsr ); Abc_Stop(); return 0; } -- cgit v1.2.3