Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Take shortcuts if we're after a run-time issue #20

Open
mvdan opened this issue Jun 2, 2017 · 0 comments
Open

Take shortcuts if we're after a run-time issue #20

mvdan opened this issue Jun 2, 2017 · 0 comments

Comments

@mvdan
Copy link
Owner

mvdan commented Jun 2, 2017

As suggested by @rogpeppe, if we know we're after a run-time crash, we can take many assumptions safely that we can't if we're after compiler bugs. Some examples:

  • Code that isn't being run can be removed (via code coverage)
  • Statements after a panic/return can be removed (likely covered by the item above)
  • Packace members (vars, consts, types) that aren't used can be removed (perhaps exclude exported ones)

Anything else?

Also note that none of these should make the tool better at reducing a program (I think?). They should only make it faster since it can get rid of many things at once instead of one by one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant