summaryrefslogtreecommitdiffstats
path: root/src/base/wlc/wlcReadSmt.c
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/wlc/wlcReadSmt.c
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/wlc/wlcReadSmt.c')
-rw-r--r--src/base/wlc/wlcReadSmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base/wlc/wlcReadSmt.c b/src/base/wlc/wlcReadSmt.c
index 3a249ec6..a3614dde 100644
--- a/src/base/wlc/wlcReadSmt.c
+++ b/src/base/wlc/wlcReadSmt.c
@@ -291,7 +291,9 @@ int Prs_SmtReadLines( Prs_Smt_t * p )
}
else if ( Prs_SmtIsWord(p, "assert") )
fAssert = 1;
- else if ( Prs_SmtIsWord(p, "set-option") || Prs_SmtIsWord(p, "set-logic") || Prs_SmtIsWord(p, "check-sat") )
+ else if ( Prs_SmtIsWord(p, "check-sat") )
+ break;
+ else if ( Prs_SmtIsWord(p, "set-option") || Prs_SmtIsWord(p, "set-logic") )
p->pCur = Prs_SmtFindNextPar(p) + 1;
// else
//return Prs_SmtErrorSet(p, "Unsupported directive.", 0);