From d773e3f762affd7189d34fbd6d1e7e0e5af3f712 Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Wed, 11 Sep 2019 21:19:24 +0100 Subject: refactor PTree: remove split(), add attach() method --- lib/Core/Searcher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Core/Searcher.cpp') diff --git a/lib/Core/Searcher.cpp b/lib/Core/Searcher.cpp index 49f6e52b..8d35b7ef 100644 --- a/lib/Core/Searcher.cpp +++ b/lib/Core/Searcher.cpp @@ -264,8 +264,8 @@ RandomPathSearcher::~RandomPathSearcher() { ExecutionState &RandomPathSearcher::selectState() { unsigned flips=0, bits=0; - PTree::Node *n = executor.processTree->root; - while (!n->data) { + PTreeNode *n = executor.processTree->root; + while (!n->state) { if (!n->left) { n = n->right; } else if (!n->right) { @@ -280,7 +280,7 @@ ExecutionState &RandomPathSearcher::selectState() { } } - return *n->data; + return *n->state; } void -- cgit 1.4.1