action: refactor ATOMIC_READ printing
authorBrian Norris <banorris@uci.edu>
Wed, 12 Dec 2012 02:05:51 +0000 (18:05 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 12 Dec 2012 02:05:51 +0000 (18:05 -0800)
commitcb9bcfa58847b8261c41890d517918260d409bdd
treed6e3441e8d52ce62beea89ba6cefc644fb87b6c3
parent2cf946f3bf4f12d2a353fb0c4f4644a6b2f65e56
action: refactor ATOMIC_READ printing

For ATOMIC_READ, we don't need a special case to print VALUE_NONE,
because any action where the value isn't explicitly set (e.g., all
ATOMIC_READ actions) default to VALUE_NONE. And if this 'default'
changes in the future, we would want to print it.

(Right now it's confusing, for instance, when we have a failed promise
execution, since the model-checker trace gives no indication of what the
promised value actually *was*. This should be fixed sometime.)
action.cc