Add class to render to graphviz #8

Merged
merged 1 commit into from Jan 6, 2017

Projects

None yet

2 participants

@bakkot
Contributor
bakkot commented Jan 6, 2017 edited

This also involves making some previously private fields public.

For example, the program

a = b++;

renders as

1

and

"use strict";
function f(k) {
  for (var i = 0; i < k; ++i) {
    console.log(i);
  }
}

renders as:

2

@bakkot
Contributor
bakkot commented Jan 6, 2017

NB: This is the raw output of the explicator; it can be simplified substantially before rendering, if necessary.

@bakkot bakkot merged commit c9cdc7c into master Jan 6, 2017
@bakkot bakkot deleted the dottifier branch Jan 6, 2017
@michaelficarra
Member

The visualiser can be run using

String dot = Dottifier.render(asg);

Then pass that string to GraphViz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment