bugfix - set backtrack events according to an *enabled* thread
authorBrian Norris <banorris@uci.edu>
Fri, 4 May 2012 06:46:43 +0000 (23:46 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 8 May 2012 17:35:33 +0000 (10:35 -0700)
commitc5e14aa2426f21f8de620cf24ed321447d75c989
treee93b6d38922aca603daeb03011ec3c5cdbff54c7
parentefd0e6cfa2827dfec2cf5932c02f9c6559389f4d
bugfix - set backtrack events according to an *enabled* thread

Previously, I naively set a backtracking point for the thread that performed
the conflicting action, whether or not that thread existed at the point to
which I am backtracking. Utilize the TreeNode::is_enabled() method, plus thread
parent walking, to find the correct thread for the backtracking.

Note that this also requires a model checking event for each THREAD_CREATE
event. So add this feature.
libthreads.cc
model.cc