rust-lang / rust-lang/rust-clippy
nonminimal_bool can produce minimal but not human readable expressions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
E.g. !a && (b || c) || a && (d || e) || !a && f produces
!(!a && !b && !c && !f || a && !d && !e)(a || b || c || f) && (!a || d || e)
But a human would rather have
a && (d || e) || !a && (b || c || f)
which is three operators deep, and our algorithm always produces expressions two operators deep.
There must be some scientific papers, theses or blog posts about different models of "simple" boolean expressions. Lets find some and implement them.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the examples in the issue and investigate scientific papers, theses, or blog posts that define alternative models of simple Boolean expressions. Compare those models against the current minimal-but-hard-to-read outputs, then define an approach that produces the human-preferred expression while preserving correctness; the issue is complete when that approach is implemented and validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100