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

chore: simplify AcirVarData where possible in multiplication #3124

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

TomAFrench
Copy link
Member

Description

Problem*

Resolves

Summary*

This PR fixes an issue I was experiencing on another branch where I was getting an infinite loop due to 1 * witness being represented as an expression instead of a witness. We now automatically simplify any AcirVarData to the simplest allowed form to avoid this.

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@TomAFrench TomAFrench added this pull request to the merge queue Oct 12, 2023
Merged via the queue into master with commit 8e3fb4a Oct 12, 2023
28 checks passed
@TomAFrench TomAFrench deleted the tf/simplify-acir-var branch October 12, 2023 15:28
TomAFrench added a commit that referenced this pull request Oct 12, 2023
* master:
  feat: Optimize euclidean division acir-gen (#3121)
  chore: simplify `AcirVarData` where possible in multiplication (#3124)
  feat: Remove unnecessary truncation of boolean multiplication (#3122)
  chore: use `circuit.get_assert_message` instead of closure/helper function (#3127)
  fix: minor problems with `aztec` publishing (#3095)
  chore: clean up JS dependencies (#3114)
  chore: add call formatter (#3102)
  chore: remove unnecessary clone when executing brillig (#3120)
  feat: return compilation errors from noir_wasm (#3091)
Sakapoi pushed a commit to Sakapoi/noir_fork that referenced this pull request Oct 19, 2023
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.

2 participants