diff options
author | Lukas Wölfer <lukas.woelfer@rwth-aachen.de> | 2017-06-24 19:31:04 +0200 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-05-15 15:18:36 +0100 |
commit | e5a18f47a8cdd37a5c2721e89df68ea7aafed8a0 (patch) | |
tree | 620bd0ab0ce7f737db5ab7f8f656d32ea0849f4a /lib/Core/ExecutionState.cpp | |
parent | 0cf0150da0f674c85f9eaccee8b487ed004c3edc (diff) | |
download | klee-e5a18f47a8cdd37a5c2721e89df68ea7aafed8a0.tar.gz |
Implemented incomplete merging
Diffstat (limited to 'lib/Core/ExecutionState.cpp')
-rw-r--r-- | lib/Core/ExecutionState.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/Core/ExecutionState.cpp b/lib/Core/ExecutionState.cpp index 522bdd15..00e372e4 100644 --- a/lib/Core/ExecutionState.cpp +++ b/lib/Core/ExecutionState.cpp @@ -73,7 +73,8 @@ ExecutionState::ExecutionState(KFunction *kf) : instsSinceCovNew(0), coveredNew(false), forkDisabled(false), - ptreeNode(0) { + ptreeNode(0), + steppedInstructions(0){ pushFrame(0, kf); } @@ -90,6 +91,11 @@ ExecutionState::~ExecutionState() { delete mo; } + for (auto cur_mergehandler: openMergeStack){ + cur_mergehandler->removeOpenState(this); + } + + while (!stack.empty()) popFrame(); } @@ -117,10 +123,14 @@ ExecutionState::ExecutionState(const ExecutionState& state): ptreeNode(state.ptreeNode), symbolics(state.symbolics), arrayNames(state.arrayNames), - openMergeStack(state.openMergeStack) + openMergeStack(state.openMergeStack), + steppedInstructions(state.steppedInstructions) { for (unsigned int i=0; i<symbolics.size(); i++) symbolics[i].first->refCount++; + + for (auto cur_mergehandler: openMergeStack) + cur_mergehandler->addOpenState(this); } ExecutionState *ExecutionState::branch() { |