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

AND statements not flattened in dedup() #67

Open
AyanSinhaMahapatra opened this issue Jul 2, 2021 · 0 comments
Open

AND statements not flattened in dedup() #67

AyanSinhaMahapatra opened this issue Jul 2, 2021 · 0 comments
Assignees

Comments

@AyanSinhaMahapatra
Copy link
Member

For example licensing.dedup() should have simplified the following expression:

(gpl AND mit) AND mit AND (gpl OR mit) -> gpl AND mit AND (gpl OR mit)

But currently it does not flatten AND statements in parenthesis, but it should.

This can be done either by:

  1. licensing.dedup(str(expression.flatten())) (?)
  2. By replacing OR statements by one symbol, simplifying and then getting the OR statements back by using substitution tables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant