return 0;
}
- BEEV::ParserInterface pi(*b, b->defaultNodeFactory);
+ BEEV::Cpp_interface pi(*b, b->defaultNodeFactory);
BEEV::parserInterface = π
}
#endif
- BEEV::ParserInterface pi(*b, b->defaultNodeFactory);
+ BEEV::Cpp_interface pi(*b, b->defaultNodeFactory);
BEEV::parserInterface = π
BEEV::ASTVec AssertsQuery;
// Does some simple caching of prior results.
void
- ParserInterface::checkSat(vector<ASTVec> & assertionsSMT2)
+ Cpp_interface::checkSat(vector<ASTVec> & assertionsSMT2)
{
bm.GetRunTimes()->stop(RunTimes::Parsing);
assert(assertionsSMT2.size() == cache.size());
-// Wrapper around the main beevmgr class given to the parsers.
-// Over time I hope the parsers will interact entirely through this class.
-#ifndef PARSERINTERFACE_H_
-#define PARSERINTERFACE_H_
+#ifndef CPP_INTERFACE_H_
+#define CPP_INTERFACE_H_
#include "../AST/AST.h"
#include "../AST/NodeFactory/NodeFactory.h"
// There's no BVTypeCheck() function. Use a typechecking node factory instead.
-class ParserInterface
+class Cpp_interface
{
STPMgr& bm;
//boost::object_pool<ASTNode> node_pool;
LETMgr letMgr;
NodeFactory* nf;
- ParserInterface(STPMgr &bm_, NodeFactory* factory)
+ Cpp_interface(STPMgr &bm_, NodeFactory* factory)
: bm(bm_),
nf(factory),
letMgr(bm.ASTUndefined)
STPMgr * ParserBM;
// Used exclusively for parsing.
- ParserInterface * parserInterface;
+ Cpp_interface * parserInterface;
void (*vc_error_hdlr)(const char* err_msg) = NULL;
class ASTBVConst;
class BVSolver;
class STP;
- class ParserInterface;
+ class Cpp_interface;
/***************************************************************
* ENUM TYPES
//Useful global variables. Use for parsing only
extern STP * GlobalSTP;
extern STPMgr * ParserBM;
- extern ParserInterface * parserInterface;
+ extern Cpp_interface * parserInterface;
//Some constant global vars for the Main function. Once they are
//set, these globals will remain constants. These vars are not used
TypeChecker nfTypeCheckSimp(simpNF, *bm);
TypeChecker nfTypeCheckDefault(*bm->defaultNodeFactory, *bm);
- ParserInterface piTypeCheckSimp(*bm, &nfTypeCheckSimp);
- ParserInterface piTypeCheckDefault(*bm, &nfTypeCheckDefault);
+ Cpp_interface piTypeCheckSimp(*bm, &nfTypeCheckSimp);
+ Cpp_interface piTypeCheckDefault(*bm, &nfTypeCheckDefault);
// If you are converting formats, you probably don't want it simplifying (at least I dont).
if (onePrintBack)