fix low hanging fruit when profiling...
[model-checker.git] / cyclegraph.cc
index 321ebe9e2f242babe1adad4e233dd7fe51427e71..f4d3b93314b4ad22dba40d4d56043fd5643c01d1 100644 (file)
@@ -173,8 +173,8 @@ bool CycleGraph::checkReachable(const ModelAction *from, const ModelAction *to)
  * @return True, @a from can reach @a to; otherwise, false
  */
 bool CycleGraph::checkReachable(CycleNode *from, CycleNode *to) {
-       std::vector<CycleNode *, MyAlloc<CycleNode *> > queue;
-       HashTable<CycleNode *, CycleNode *, uintptr_t, 4, model_malloc, model_calloc, model_free> discovered;
+       std::vector<CycleNode *, ModelAlloc<CycleNode *> > queue;
+       HashTable<CycleNode *, CycleNode *, uintptr_t, 4, model_malloc, model_calloc, model_free> discovered(64);
 
        queue.push_back(from);
        discovered.put(from, from);