|
|
|
|
|
by govolckurself
1153 days ago
|
|
Pretty sure this is equivalent to solving the Halting Problem, which is... difficult, to say the least. But why should the OS try to stop you from making logic errors? Test your state machines. Test every transition you're interested in. In practice, it's not that big of an issue, and programs hang for more mundane reasons. |
|
https://en.wikipedia.org/wiki/Halting_problem#Common_pitfall...
I'd go so far to say that this is a key advantage of FSMs - without Turing completeness you get much better options for theoretical analysis.