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

Don't verify @external-generated wrapper functions #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

langfield
Copy link
Contributor

In this commit, we add a function userAnnotatedSources which replaces isStandardSource. It generates a list of all the user annotated ScopedFunctions. This list is used to filter modules for solving. This requires a slight refactor within FunctionAnalysis.hs.

  • Add extern_remove_dirty test.

The basic idea is this:

  1. Find all wrapper functions.
  2. Compute their respective set of reachable functions.
  3. Mark them all as 'don't check' unless they are referenced from a different source as well.

In this commit, we add a function `userAnnotatedSources` which replaces
`isStandardSource`. It generates a list of all the user annotated
ScopedFunctions. This list is used to filter modules for solving. This
requires a slight refactor within `FunctionAnalysis.hs`.

* Add `extern_remove_dirty` test.

The basic idea is this:
1. Find all wrapper functions.
2. Compute their respective set of reachable functions.
3. Mark them all as 'don't check' unless they are referenced from a
   different source as well.
@langfield
Copy link
Contributor Author

The fromJust call must be removed.

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

Successfully merging this pull request may close these issues.

2 participants