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

Confusing dead code warning at module include #155

Open
sim642 opened this issue May 17, 2022 · 1 comment
Open

Confusing dead code warning at module include #155

sim642 opened this issue May 17, 2022 · 1 comment

Comments

@sim642
Copy link

sim642 commented May 17, 2022

Running reanalyze 389dd68 on Goblint goblint/analyzer@a544002 revealed the following.

At this include of Batteries into a module named All, reanalyze complains about Ana.result.Error being dead:

module All = struct
  include (Batteries : module type of Batteries with module Format := Batteries.Format [@dead "Ana.result.Error"] )
  (* ... *)
end

The complete file can be viewed here: https://github.com/goblint/analyzer/blob/a544002114324a207df72f9e79eb656c3ebe7b5b/src/prelude.ml.

I could not figure out what it's complaining about there or why.

@cristianoc
Copy link
Collaborator

If you have a standalone example send it over.

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

2 participants