git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1043
e59a4935-1847-0410-ae03-
e826735625c1
return true;
}
+ bool STPMgr::LookupSymbol(const char * const name)
+ {
+ ASTSymbol s(name);
+ ASTSymbol* s_ptr = &s; // it's a temporary key.
+
+ if (_symbol_unique_table.find(s_ptr) ==
+ _symbol_unique_table.end())
+ return false;
+ else
+ return true;
+ }
+
+
//Create a ASTBVConst node
ASTNode STPMgr::CreateBVConst(unsigned int width,
unsigned long long int bvconst)
CBV CreateBVConstVal;
public:
+
+ bool LookupSymbol(const char * const name);
/****************************************************************
* Public Flags *
{
char d[32 + prefix.length()];
sprintf(d, "%s_%d", prefix.c_str(), _symbol_count++);
+ assert(!LookupSymbol(d));
BEEV::ASTNode CurrentSymbol = CreateSymbol(d,indexWidth,valueWidth);
Introduced_SymbolsSet.insert(CurrentSymbol);