delete this;
}//End of cleanup()
- unsigned long hash(unsigned char *str)
+ unsigned long long hash(unsigned char *str)
{
- unsigned long hash = 5381;
- int c;
+ unsigned long long hash = 5381;
+ long long c;
while (c = *str++)
hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
//cout << "Hash value computed is: " << hash << endl;
- return hash;
+ return (unsigned long long)hash;
}
namespace BEEV
{
- unsigned long hash(unsigned char *str);
+ unsigned long long hash(unsigned char *str);
/******************************************************************
* Class ASTSymbol: *
void ClearAllTables(void)
{
- bm->ClearAllTables();
simp->ClearAllTables();
bvsolver->ClearAllTables();
arrayTransformer->ClearAllTables();
tosat->ClearAllTables();
Ctr_Example->ClearAllTables();
+ bm->ClearAllTables();
}
}; //End of Class STP
};//end of namespace
void ClearAllTables(void)
{
- // _interior_unique_table.clear();
- // _bvconst_unique_table.clear();
- // _symbol_unique_table.clear();
NodeLetVarMap.clear();
NodeLetVarMap1.clear();
PLPrintNodeSet.clear();
AlreadyPrintedSet.clear();
StatInfoSet.clear();
- //_asserts.clear();
+
+ //DO NOT UNCOMMENT
+ // _asserts.clear();
+ // _interior_unique_table.clear();
+ // _bvconst_unique_table.clear();
+ // _symbol_unique_table.clear();
} //End of ClearAllTables()
};//End of Class STPMgr
BEEV::FatalError("");
}
- //BEEV::GlobalSTP = (stpstar)vc;
+ BEEV::GlobalSTP = (stpstar)vc;
CONSTANTBV::ErrCode c = CONSTANTBV::BitVector_Boot();
if(0 != c) {
cout << CONSTANTBV::BitVector_Error(c) << endl;
cvcparse((void*)AssertsQuery);
BEEV::ASTNode asserts = (*(BEEV::ASTVec*)AssertsQuery)[0];
BEEV::ASTNode query = (*(BEEV::ASTVec*)AssertsQuery)[1];
- //BEEV::GlobalSTP->TopLevelSTP(asserts, query);
+ BEEV::GlobalSTP->TopLevelSTP(asserts, query);
node oo = b->CreateNode(BEEV::NOT,query);
node o = b->CreateNode(BEEV::AND,asserts,oo);
// delete aaa;
// }
delete decls;
- delete b;
+ delete (stpstar)vc;
}
void vc_DeleteExpr(Expr e) {
-CXXFLAGS=-DEXT_HASH_MAP -m32 -I../../src/c_interface -L../../lib
+include ../../scripts/Makefile.common
+CXXFLAGS=-DEXT_HASH_MAP $(CFLAGS) $(CFLAGS_M32) -I../../src/c_interface -L../../lib
all: 0 1 2 3 4 5 6 7 8 9 10 11 11 12 13 14 15 16 17 18 19