From b414a547d7bacfffe73df41ead138ee0d72904aa Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 19 Apr 2012 13:21:02 -0700 Subject: [PATCH] model: stash each backtrack event in ModelChecker::backtrack_list --- model.cc | 5 ++--- model.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/model.cc b/model.cc index e496abd..17ff0f9 100644 --- a/model.cc +++ b/model.cc @@ -91,9 +91,8 @@ void ModelChecker::set_backtracking(ModelAction *act) prev->print(); act->print(); - /* FIXME */ - //Backtrack *back = new Backtrack(prev, actionList); - //backtrackList->Append(back); + Backtrack *back = new Backtrack(prev, action_trace); + backtrack_list.push_back(back); } void ModelChecker::check_current_action(void) diff --git a/model.h b/model.h index 2097d29..117c645 100644 --- a/model.h +++ b/model.h @@ -86,6 +86,7 @@ private: action_list_t *action_trace; std::map thread_map; class TreeNode *rootNode, *currentNode; + std::list backtrack_list; }; extern ModelChecker *model; -- 2.34.1