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

Stateful transformation causes non-termination in Hoopl analysis. #1

Open
mlite opened this issue Apr 17, 2015 · 0 comments
Open

Stateful transformation causes non-termination in Hoopl analysis. #1

mlite opened this issue Apr 17, 2015 · 0 comments

Comments

@mlite
Copy link
Contributor

mlite commented Apr 17, 2015

This ticket was filed by Andreas at https://ghc.haskell.org/trac/ghc/ticket/9853.

I can think of the following solutions:

  1. investigate Andreas's proposal of rolling back the side effects when a rewritten graph is dropped.
    2a. declare it's a fact of life, and document the limitation: A dataflow analysis and transformation that use non-deterministic algorithm to generate new variables, and the dataflow fact includes the new variables should be split to two part. a) use a pre tranformation step to introduce all new variables, b) a analysis and tranformation step that only simplfies the pre transformed code.
    2b. declare it's a fact of life, document it, and provide the utility functions to support the pre transformation.

Any other better solutions?

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