Commit 7d19956
Fix modulo builtin constraints (#1841)
* Fix Zero segment location.
* Fixed has_zero_segment naming
* Fix prover input.
* Fixed version reading when no version is supplied
* Added change to changelog.
* fix test_from_serializable()
* fix panic_impl error
* fix cairo version
* Add dummy changelog
* Pin wasm-bindgen
* Register change in CHANGELOG
* Update Cargo.lock
* Remove changes from CHANGELOG
* Add argument parsing for layout params file
* Add dynamic support (no implement)
* Add cairo_layout_params_file.example.json
* Implement dynamic layout creation
* Update CHANGELOG
* Add cli dynamic support for cairo 1
* Make wasm compatible
* Use public_memory_fraction = 4 vy default
* Deserialize bool from int
* Add comparison with python-vm (failing)
* Rebuild .rs files in makefile
* Use 8 as dynamic public_memory_fraction
The same value is used in python-vm
* Use None ratio for dynamic unused builtins
* Add rangecheck96 to private inputs
* Make dyn py files depend on params_file
* Use cpu_component_step=1 by default
* Fix typo in private inputs
* Add range check value to air private input test
* Fix zero segment location
* Use zero builtin instead of None
* Add debug scripts
* Remove dup makefile recipes
* remove outdated test
* Enable ensure-no_std on test
* Fix tests
* Add correct test
* Rename tset
* Add comment
* Add debugging document
* Update cairo layout params file
* Remove duplicated range check
* Remove dup
* Remove debugging and scrippts (moveed to another branch)
* Add comment
* Add tests
* Add dynamic test to cairo-vm-cli
* Add parse test
* Remove compare all dynamic
* Add script for comparing with dynamic layouts
* Add tests to workflow
* Delete logic changes
They are going to be moved to another branch
* Delete more logic changes
* Update rust.yml
* Rename compare_outputs_dynamic_layout.sh to compare_outputs_dynamic_layouts.sh
* Update test script
* Enforce prover constraints in add, sub, and mul
* Remove debug prints
* Add tests
* Update CHANGELOG.md
* Fix serialization
* Comment failing test
* Uncomment test
* Fix tests
* Remove operation struct and use builtin type instead
* Add unit tests to modulo builtin operations
* Fix security error message
* Test custom serde impl
* Upload mod_builtin coverage
---------
Co-authored-by: Alon Titelman <[email protected]>
Co-authored-by: Yuval Goldberg <[email protected]>
Co-authored-by: Omri Eshhar <[email protected]>1 parent 14ec3e3 commit 7d19956
File tree
5 files changed
+306
-75
lines changed- .github/workflows
- vm/src
- tests
- vm/runners/builtin_runner
5 files changed
+306
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
603 | 633 | | |
604 | 634 | | |
605 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
208 | 292 | | |
209 | 293 | | |
210 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
0 commit comments