summaryrefslogtreecommitdiffstats
path: root/src/base/main
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-02-18 20:42:48 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2015-02-18 20:42:48 -0800
commit6b0accd22a7d28282ba35b10572fd188cad2d629 (patch)
tree0fe2f3e87e997b0193c6f22e71dc5545acfcf859 /src/base/main
parent5ad773eda10692ee1877a04561ef51c06713f519 (diff)
downloadabc-6b0accd22a7d28282ba35b10572fd188cad2d629.tar.gz
abc-6b0accd22a7d28282ba35b10572fd188cad2d629.tar.bz2
abc-6b0accd22a7d28282ba35b10572fd188cad2d629.zip
Modifications to read SMTLIB file from stdin.
Diffstat (limited to 'src/base/main')
-rw-r--r--src/base/main/mainReal.c17
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;
}