From: trevor_hansen Date: Mon, 31 Jan 2011 14:06:53 +0000 (+0000) Subject: Fix. If not simplifying during parsing an assertion was violated. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=0df8528f7dff3a32c0e445b097455186c4e1b10c;p=francis%2Fstp.git Fix. If not simplifying during parsing an assertion was violated. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1108 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/parser/smtlib2.y b/src/parser/smtlib2.y index cd75e60..463260b 100644 --- a/src/parser/smtlib2.y +++ b/src/parser/smtlib2.y @@ -196,8 +196,10 @@ cmd: commands END querysmt2 = parserInterface->CreateNode(FALSE); } - if (assertionsSMT2.size() > 0) + if (assertionsSMT2.size() > 1) ((ASTVec*)AssertsQuery)->push_back(parserInterface->nf->CreateNode(AND,assertionsSMT2)); + else if (assertionsSMT2.size() > 0) + ((ASTVec*)AssertsQuery)->push_back((assertionsSMT2[0])); else ((ASTVec*)AssertsQuery)->push_back(parserInterface->CreateNode(TRUE)); ((ASTVec*)AssertsQuery)->push_back(querysmt2);