From db655af90427e7c102108b14479130e07524f60e Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Fri, 14 Mar 2014 23:21:48 +0100 Subject: [Core] Documentation and cleanup * Removed unused member ShadowObjects in ExecutionState * Added documentation of members and reorder according to categories --- lib/Core/ExecutionState.cpp | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'lib') diff --git a/lib/Core/ExecutionState.cpp b/lib/Core/ExecutionState.cpp index 5d32c936..1dc08624 100644 --- a/lib/Core/ExecutionState.cpp +++ b/lib/Core/ExecutionState.cpp @@ -66,13 +66,16 @@ StackFrame::~StackFrame() { /***/ -ExecutionState::ExecutionState(KFunction *kf) - : fakeState(false), - depth(0), +ExecutionState::ExecutionState(KFunction *kf) : + underConstrained(0), pc(kf->instructions), prevPC(pc), + queryCost(0.), weight(1), + depth(0), + + fakeState(false), instsSinceCovNew(0), coveredNew(false), forkDisabled(false), @@ -80,12 +83,9 @@ ExecutionState::ExecutionState(KFunction *kf) pushFrame(0, kf); } -ExecutionState::ExecutionState(const std::vector > &assumptions) - : fakeState(true), - constraints(assumptions), - queryCost(0.), - ptreeNode(0) { -} +ExecutionState::ExecutionState(const std::vector > &assumptions) + : underConstrained(0), constraints(assumptions), queryCost(0.), + fakeState(true), ptreeNode(0) {} ExecutionState::~ExecutionState() { for (unsigned int i=0; irefCount++; -- cgit 1.4.1