Skip to content

Update llzk-lib and fix idiv and mod#396

Closed
tim-hoffman wants to merge 117 commits intoiden3:masterfrom
project-llzk:th/update_llzk
Closed

Update llzk-lib and fix idiv and mod#396
tim-hoffman wants to merge 117 commits intoiden3:masterfrom
project-llzk:th/update_llzk

Conversation

@tim-hoffman
Copy link
Contributor

No description provided.

* [fix upstream] Comment out failing tests
* [fix upstream] use different paths to avoid flaky test failure
* [fix upstream] fix/hide warnings
* [fix upstream] add debug output for ProgramArchive
* add nix flake
* add LLZK dependencies
* add llzk output flag
* add testing framework
* Add '--dump_parse' flag for dev and use it for e2e test
* add CI workflow
* remove redundant dependency
`llzk` already brings in `llzk-sys` and other necessary crates
* update dependency version
…#153)

* refactor to support lints and clippy

restrict clippy to just llzk backend by running `cargo clippy -p llzk_backend -- --no-deps`

* fix clippy issues
* also remove undefined "matrix" reference
* fix ineffective "CHECK" lines
* add/update tests showing duplication of circom functions per call-site
* fix API-related `todo`
* add expected output for tests that now pass
iangneal and others added 28 commits January 9, 2026 14:57
* Implement constant dim expressions for prefix, infix ops

* Implement static computation of dimensions

* Run format

* Add tests
* fix documentation
* add missing Debug traits
* translate While statement in functions
* handle return statement within loop body
* update a comment to be consistent
* Checkpoint

* Implement Expression::ParallelOp in templates and functions

* Update parallel op handling
* First iteration of write chain

* Cleanup the current code

* Remove XFAIL from test

* Add test with subcomponents in arrays

* Update tests

* Revert change in ignore file

* Add script for updating test cases

* Cleanup warnings

* Fix broken merge

* Update test that passes in CI

* Stray line

* Update comment

* Autoformat crate

* Apply suggestions from code review

Co-authored-by: Timothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>

* Update incorrect comment

* Rename test files and remove comments

* Add use after if-then block for testing what SSA value is used

---------

Co-authored-by: Timothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>
* propagate `--verbose` flag to `LlzkCodegen`
* Print error with stacktrace if verbose flag is set
* use verbose flag to print current function/template
- Adds support for template parameters as array
- Refactors convert_dim_expr functionality to be context-specific
- Removed circom/tests/loops/vanguard-uc-comp.circom since it was redundant with other tests

---------

Co-authored-by: Tim Hoffman <timothy.hoffman@veridise.com>
* Add shared uniform array impl, add basic tests

* Update passing tests

* Run clippy

* Address code review comments, add test case

* make test output easier to understand

* Apply suggestions from code review

Co-authored-by: Timothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>

* Formatting

* Add clone

---------

Co-authored-by: Tim Hoffman <timothy.hoffman@veridise.com>
Co-authored-by: Timothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>
* Handle read/write consistently
* Use `MemoryKnowledge` for decl if available
* revert: debug printing on verify failure
@tim-hoffman tim-hoffman deleted the th/update_llzk branch January 27, 2026 18:55
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.

3 participants