vc_printVarDeclsToStream(vc, cout);
}
+void vc_clearDecls(VC vc) {
+ decls->clear();
+}
+
static void vc_printAssertsToStream(VC vc, ostream &os, int simplify_print) {
bmstar b = (bmstar)(((stpstar)vc)->bm);
BEEV::ASTVec v = b->GetAsserts();
return c;
}
-Expr vc_getTermFromCounterExample(VC vc, Expr e, CompleteCEStar cc) {
+Expr vc_getTermFromCounterExample(VC vc, Expr e, WholeCounterExample cc) {
//bmstar b = (bmstar)(((stpstar)vc)->bm);
nodestar n = (nodestar)e;
CompleteCEStar c = (CompleteCEStar)cc;
return output;
}
+void vc_deleteWholeCounterExample(WholeCounterExample cc) {
+ CompleteCEStar c = (CompleteCEStar)cc;
+
+ delete c;
+}
+
int vc_getBVLength(VC vc, Expr ex) {
nodestar e = (nodestar)ex;
//! Prints variable declarations to stdout.
void vc_printVarDecls(VC vc);
+ //! Clear the internal list of variables to declare maintained for
+ // vc_printVarDecls. Do this after you've printed them, or if you
+ // never want to print them, to prevent a memory leak.
+ void vc_clearDecls(VC vc);
+
//! Prints asserts to stdout. The flag simplify_print must be set to
//"1" if you wish simplification to occur dring printing. It must be
//set to "0" otherwise
//Get the value of a term expression from the CounterExample
Expr vc_getTermFromCounterExample(VC vc, Expr e, WholeCounterExample c);
+
+ // Free the return value of vc_getWholeCounterExample
+ void vc_deleteWholeCounterExample(WholeCounterExample cc);
+
//Kinds of Expr
enum exprkind_t{
UNDEFINED,