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

fix: allow empty selector #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sorawee
Copy link
Contributor

@sorawee sorawee commented May 9, 2024

While unconventional, there may be no selector at all. In that case, the constraints will always be on (and can't be turned off). See the added test no_selector for an example.
However, halo2-analyzer instead skips the constraints completely, causing a failure. This commit fixes the issue.

Note that this commit only includes the fix for the under-constrained circuit analysis. Other types of analysis may still be incorrect, and require further fixes.

The bug is originally discovered by @shankarapailoor.

While unconventional, there may be no selector at all. In that case,
the constraints will always be on (and can't be turned off).
See the added test `no_selector` for an example.
However, halo2-analyzer instead skips the constraints completely,
causing a failure. This commit fixes the issue.

Note that this commit only includes the fix for the under-constrained
circuit analysis. Other types of analysis may still be incorrect,
and require further fixes.

The bug is originally discovered by @shankarapailoor.
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.

None yet

1 participant