Friday, May 6, 2016

Folding If-Then-Else structures

One of the steps processing lower level code to higher level one is to detect/fold control flow structures.

Here is example showing graph before and after folding If-Then-Else and If-Else structures. New graph has fewer nodes and is cleaner.

After folding

Before folding

No comments:

Post a Comment