diff options
Diffstat (limited to 'src/base/main')
-rw-r--r-- | src/base/main/mainReal.c | 17 |
1 files changed, 1 insertions, 16 deletions
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; } |