bugfix: straighten out STL vector allocation (snapshotted vs. persistent)
authorBrian Norris <banorris@uci.edu>
Thu, 13 Sep 2012 22:42:21 +0000 (15:42 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 13 Sep 2012 22:46:33 +0000 (15:46 -0700)
commit04f478b27a93b7838f58a8480b9e3e22d41688f8
tree280a53ebf7ad8992551f8b99b304d3e282c8b335
parent2c43bb9930926c9671d6fce4c542a4a6c415f1b3
bugfix: straighten out STL vector allocation (snapshotted vs. persistent)

When using a STL data structure allocated on the stack, we must make sure its
elements are allocated with the same allocator as the structure. For instance,
in a model-checking context, the stack is persistent (non-snapshotting), so any
stack-allocated std::vector should use the non-snapshotting allocator (i.e.,
MyAlloc).

At the same time, clarify CycleGraph and CycleNode classes by labelling them as
SNAPSHOTALLOC.
action.cc
cyclegraph.h
model.cc
model.h