model: temporary fix for uninitialized loads
authorBrian Norris <banorris@uci.edu>
Fri, 16 Nov 2012 01:51:43 +0000 (17:51 -0800)
committerBrian Norris <banorris@uci.edu>
Fri, 16 Nov 2012 01:51:43 +0000 (17:51 -0800)
commit029af23cb3196ffdd986497d2c45a938af526362
tree136d1b2a2e603e7d3bb392496e9b9f40e7fb6aa1
parent1798c510e77f37e3d79cba6a1fdad3b13ccc9674
model: temporary fix for uninitialized loads

This patch does two things:

(1) Convert 'set_assert()' to 'assert_bug()' to provide:
    - More unified bug printing
    - Only printing the bug for a feasible prefix
(2) Avoids the work_queue loop if a bug was asserted

Part (1) mostly provides some cosmetic fixes.
Part (2) prevents an ASSERT() from being thrown in future values, since
we don't abort the trace early enough when there's nothing to read from.

This all needs better treatment of uninitialized loads, as there are
some loose ends.
model.cc