main, model: don't 'initialize' system_context
authorBrian Norris <banorris@uci.edu>
Fri, 10 Aug 2012 22:15:24 +0000 (15:15 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 16 Aug 2012 17:30:26 +0000 (10:30 -0700)
commitc36dd97a0b4924e1c906f7931d7ed515d5d7dc61
treef443e5626c84109aaae17ff8384c9b8104bcf6f5
parent16c741a1826b66ff5bb1f2b29311aa95cad08089
main, model: don't 'initialize' system_context

I was unnecessarily giving main.cc control of the system_context variable,
since I thought I needed to use getcontext() before entering the model checker.
However, the structure of the runtime scheduling is such that this
"initialization" would be obliterated by the first swapcontext() call
(switching form system-context to user-context).

So, the point is that the model-checker can just declare its own
("uninitialized") context that will be initialized as soon as the model-checker
makes a thread swap. Thus, I remove the external interface for initializing the
context (set_system_context()).
main.cc
model.cc
model.h