Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Convert Bytecode into Structured Form #620
The WyIL bytecode has traditionally used unstructured control flow which gives a lot of flexibility. However, the reality is that using a structured notion of control-flow would make life easier:
The plan is to exploit nested bytecode blocks to implement a more traditional structured form of bytecode. The rough sequence is something like this:
Question: why not simply encode a full Abstract Syntax Tree for a cut-down version of Whiley?
This is not crazy, but there are some possible answers:
Overall, (2) seems a bit questionable because, in the end, the number of constructs is not that much smaller. The main differences are:
But, that's it, right?
Some problems encountered in the translation so far: