Skip to content
Snippets Groups Projects
Commit 2f4240a4 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Added LIVE and REACH sets to block comments,

parent 821bdbe6
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,26 @@ class Program(Block): ...@@ -28,10 +28,26 @@ class Program(Block):
for b in self.blocks: for b in self.blocks:
message = ' Block %d (%d statements), edges from: %s' \ message = ' Block %d (%d statements), edges from: %s' \
% (b.bid, len(b), map(get_id, b.edges_from)) % (b.bid, len(b), map(get_id, b.edges_from))
if hasattr(b, 'live_in'):
message += ', LIVE_in: %s' % list(b.live_in)
if hasattr(b, 'reach_in'):
message += ', REACH_in: %s' % list(b.reach_in)
statements.append(S('comment', message, block=False)) statements.append(S('comment', message, block=False))
statements += b.statements statements += b.statements
message = ' End of block %d, edges to: %s' \ message = ' End of block %d, edges to: %s' \
% (b.bid, map(get_id, b.edges_to)) % (b.bid, map(get_id, b.edges_to))
if hasattr(b, 'live_out'):
message += ', LIVE_out: %s' % list(b.live_out)
if hasattr(b, 'reach_out'):
message += ', REACH_out: %s' % list(b.reach_out)
statements.append(S('comment', message, block=False)) statements.append(S('comment', message, block=False))
return statements return statements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment