Skip to content

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

Open
langfield wants to merge 1 commit intomasterfrom
ferinko/extern_fix
Open

Don't verify @external-generated wrapper functions#198
langfield wants to merge 1 commit intomasterfrom
ferinko/extern_fix

Conversation

@langfield
Copy link
Copy Markdown
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
Copy Markdown
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