And with that, the CFG analysis is now completed and documented, completing the fourth milestone. There are still a couple of things that could be improved upon, but they are not applicable to SCUMM, so I'll leave those things alone for now and then I can get back to them if KYRA needs them (or if time permits later in the project).
Here's an example of a script with all of the analysis complete:
It may seem a little messy, but I've verified it, and the analysis gives the expected results for everything.
The next milestone is code generation for SCUMMv6 - so each of these boxes must be converted to a piece of code. Once that milestone is complete, the decompiler should be able to fully decompile all SCUMMv6 scripts.
Warning: Use of undefined constant PHP - assumed 'PHP' (this will throw an Error in a future version of PHP) in /customers/f/a/e/birdiesoft.dk/httpd.www/blog/index.php on line 90