Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function pipe CFG (harmless redundancy) #80

Open
akashsridhar opened this issue Dec 17, 2019 · 0 comments
Open

function pipe CFG (harmless redundancy) #80

akashsridhar opened this issue Dec 17, 2019 · 0 comments
Assignees

Comments

@akashsridhar
Copy link
Contributor

akashsridhar commented Dec 17, 2019

Remove intermediate redundant statement in func pipe CFG (it doesn't affect the correctness of the CFG. Just adds extra redundant statements - fix this)

example 1
m = (1,2) |> foo(3,4) |> bar

1 0 0 SEQ0
2 1 0 0 28 () ___e 0d1 0d2
3 1 1 0 28 .() ___d foo 0d3 0d4 ___e
4 1 2 0 28 .() ___c bar ___d
5 1 3 0 28 .() ___b ___c
6 1 4 0 28 .() ___a ___b
7 1 5 0 28 = m ___a

example 2
x = a |> foo

1 0 0 SEQ0
2 1 0 31 43 .() ___c a
3 1 1 31 43 .() ___b foo ___c
4 1 2 31 43 .() ___a ___b
5 1 3 31 43 = x ___a

@akashsridhar akashsridhar self-assigned this Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant