git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@939
e59a4935-1847-0410-ae03-
e826735625c1
USER_VAL_TOK
{
//cerr << "Printing user_value: " << *$1 << endl;
+ delete $1;
}
;
BVCONST_TOK
{
$$ = new ASTNode(parserInterface->CreateBVConst($1, 10, 32));
+ delete $1;
}
| BVCONST_TOK LBRACKET_TOK NUMERAL_TOK RBRACKET_TOK
{
delete $1;
}
| an_nonbvconst_term
+{
+$$ = $1;
+}
;
an_nonbvconst_term:
{
n = parserInterface->nf->CreateTerm(BVCONCAT,w*(i+1),n,*$5);
}
+ delete $5;
$$ = new ASTNode(n);
}
| BVSX_TOK LBRACKET_TOK NUMERAL_TOK RBRACKET_TOK an_term
{
// Expecting a division by zero. Just return one.
OutputNode = _bm->CreateOneConst(outputwidth);
+ CONSTANTBV::BitVector_Destroy(remainder);
+ CONSTANTBV::BitVector_Destroy(quotient);
}
else
{
{
// Expecting a division by zero. Just return one.
OutputNode = _bm->CreateOneConst(outputwidth);
-
+ CONSTANTBV::BitVector_Destroy(remainder);
}
else
{