Commit 908d08b
authored
feat(avm)!: WIP remove is_infinite flags from ECADD opcode (AVM only) (#22945)
This branch includes the changes to remove the `is_infinite` flags from
the ECADD opcode fn signature. The actual EC logic changes come above
this PR in the stack, and any changes outside the AVM will be below.
For ease of review, I've separated into commits:
- **feat: remove inf flags from ecadd opcode - ec flow only** Isolated
to the EC flow only (does not change registers so non avm tests will
fail)
- f**eat: rem infs from fuzzer (only gadget fuzzer tested)** Isolated
fixes to get the fuzzer(s) compiling
Will partially close [Foundation AVM Issue
19](https://linear.app/aztec-foundation/issue/AVM-19/) (the following PR
#23031 with ts/rs changes will fully close it).
Note that the opcode mismatches that in ts so **CI will fail** until
#23031 is merged into this branch!
---
Stack:
- #22745
- #22564
- #22921
- #22795
- `mw/avm-rem-inf-opcode-ecadd` <-- here
- #230311 parent dfaf685 commit 908d08b
11 files changed
Lines changed: 53 additions & 138 deletions
File tree
- barretenberg/cpp/src/barretenberg
- avm_fuzzer
- fuzz_lib
- harness
- mutations/instructions
- vm2
- common
- constraining
- relations
- simulation
- gadgets
- lib
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | 576 | | |
578 | 577 | | |
579 | | - | |
580 | 578 | | |
581 | | - | |
| 579 | + | |
582 | 580 | | |
583 | 581 | | |
584 | 582 | | |
| |||
881 | 879 | | |
882 | 880 | | |
883 | 881 | | |
884 | | - | |
885 | | - | |
| 882 | + | |
| 883 | + | |
886 | 884 | | |
887 | 885 | | |
888 | 886 | | |
| |||
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
1291 | 1290 | | |
1292 | 1291 | | |
1293 | | - | |
1294 | 1292 | | |
1295 | 1293 | | |
1296 | | - | |
1297 | | - | |
| 1294 | + | |
1298 | 1295 | | |
1299 | 1296 | | |
1300 | 1297 | | |
1301 | 1298 | | |
1302 | 1299 | | |
1303 | | - | |
1304 | 1300 | | |
1305 | 1301 | | |
1306 | | - | |
1307 | 1302 | | |
1308 | 1303 | | |
1309 | 1304 | | |
1310 | 1305 | | |
1311 | 1306 | | |
1312 | | - | |
1313 | 1307 | | |
1314 | 1308 | | |
1315 | | - | |
1316 | 1309 | | |
1317 | 1310 | | |
1318 | 1311 | | |
1319 | 1312 | | |
1320 | | - | |
| 1313 | + | |
1321 | 1314 | | |
1322 | 1315 | | |
1323 | | - | |
1324 | 1316 | | |
1325 | 1317 | | |
1326 | 1318 | | |
| |||
Lines changed: 15 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 271 | + | |
| 272 | + | |
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
279 | | - | |
| 277 | + | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
| |||
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
289 | | - | |
290 | | - | |
| 287 | + | |
| 288 | + | |
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
| |||
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
310 | | - | |
311 | | - | |
312 | | - | |
| 308 | + | |
| 309 | + | |
313 | 310 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 311 | + | |
| 312 | + | |
317 | 313 | | |
318 | | - | |
| 314 | + | |
319 | 315 | | |
320 | 316 | | |
321 | 317 | | |
| |||
Lines changed: 10 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | 431 | | |
433 | 432 | | |
434 | | - | |
435 | 433 | | |
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
439 | | - | |
| 437 | + | |
440 | 438 | | |
441 | | - | |
| 439 | + | |
442 | 440 | | |
443 | 441 | | |
444 | 442 | | |
| |||
447 | 445 | | |
448 | 446 | | |
449 | 447 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
| 448 | + | |
| 449 | + | |
454 | 450 | | |
455 | 451 | | |
456 | 452 | | |
457 | 453 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 454 | | |
462 | 455 | | |
463 | 456 | | |
| |||
466 | 459 | | |
467 | 460 | | |
468 | 461 | | |
469 | | - | |
470 | 462 | | |
471 | 463 | | |
472 | | - | |
473 | 464 | | |
474 | | - | |
475 | | - | |
| 465 | + | |
| 466 | + | |
476 | 467 | | |
477 | 468 | | |
478 | 469 | | |
479 | | - | |
480 | 470 | | |
481 | 471 | | |
482 | | - | |
483 | 472 | | |
484 | 473 | | |
485 | 474 | | |
| |||
1476 | 1465 | | |
1477 | 1466 | | |
1478 | 1467 | | |
1479 | | - | |
1480 | | - | |
| 1468 | + | |
| 1469 | + | |
1481 | 1470 | | |
1482 | 1471 | | |
1483 | 1472 | | |
| |||
1486 | 1475 | | |
1487 | 1476 | | |
1488 | 1477 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | 1478 | | |
1493 | 1479 | | |
1494 | | - | |
| 1480 | + | |
1495 | 1481 | | |
1496 | 1482 | | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
| 1483 | + | |
1501 | 1484 | | |
1502 | 1485 | | |
1503 | 1486 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
745 | 744 | | |
746 | | - | |
747 | | - | |
| 745 | + | |
748 | 746 | | |
749 | 747 | | |
750 | 748 | | |
| |||
0 commit comments