Mercurial > pysmcl
changeset 240:43a154b5c1e2
Flow now considers the function itself as a statement
author | Sigurd Meldgaard <stm@daimi.au.dk> |
---|---|
date | Tue, 05 Jan 2010 14:42:45 +0100 |
parents | f4a00d87e209 |
children | e70d728fdc13 |
files | pysmcl/flow.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pysmcl/flow.py Tue Jan 05 14:42:07 2010 +0100 +++ b/pysmcl/flow.py Tue Jan 05 14:42:45 2010 +0100 @@ -37,6 +37,7 @@ Flow().flow(function) statements = [i for i in ast.walk(function) if isinstance(i,ast.stmt)] + statements.append(function) function.out_values[key]=copy(init) for s in statements: