aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Core/Searcher.cpp
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2019-09-11 21:19:24 +0100
committerMartinNowack <martin.nowack@gmail.com>2019-09-20 15:45:39 +0100
commitd773e3f762affd7189d34fbd6d1e7e0e5af3f712 (patch)
tree1a3b6aff102055d84caefdc2ccf758aaefb1b8b4 /lib/Core/Searcher.cpp
parent6b2c98ba795a1edf81647482ae9f2560397f56bb (diff)
downloadklee-d773e3f762affd7189d34fbd6d1e7e0e5af3f712.tar.gz
refactor PTree: remove split(), add attach() method
Diffstat (limited to 'lib/Core/Searcher.cpp')
-rw-r--r--lib/Core/Searcher.cpp6
1 files changed, 3 insertions, 3 deletions
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