-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove poseidon operation id (#2208)
In cases where the operation id was defined as a witness column, it seems the optimizer didn't remove them. So this can save a witness column (and lookup parameter) in some cases (e.g., poseidon machines)
- Loading branch information
Showing
17 changed files
with
21 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,59 @@ | ||
machine Byte with | ||
latch: latch, | ||
operation_id: operation_id, | ||
degree: 256 | ||
{ | ||
operation check<0> BYTE -> ; | ||
operation check BYTE -> ; | ||
|
||
let BYTE: col = |i| i & 0xff; | ||
col fixed latch = [1]*; | ||
col fixed operation_id = [0]*; | ||
} | ||
|
||
machine Byte2 with | ||
latch: latch, | ||
operation_id: operation_id, | ||
degree: 65536 | ||
{ | ||
operation check<0> BYTE2 -> ; | ||
operation check BYTE2 -> ; | ||
|
||
let BYTE2: col = |i| i & 0xffff; | ||
col fixed latch = [1]*; | ||
col fixed operation_id = [0]*; | ||
} | ||
|
||
machine Bit2 with | ||
latch: latch, | ||
operation_id: operation_id, | ||
degree: 4 | ||
{ | ||
operation check<0> BIT2 -> ; | ||
operation check BIT2 -> ; | ||
|
||
let BIT2: col = |i| i % 4; | ||
col fixed latch = [1]*; | ||
col fixed operation_id = [0]*; | ||
} | ||
|
||
machine Bit6 with | ||
latch: latch, | ||
operation_id: operation_id, | ||
degree: 64 | ||
{ | ||
operation check<0> BIT6 -> ; | ||
operation check BIT6 -> ; | ||
|
||
let BIT6: col = |i| i % 64; | ||
col fixed latch = [1]*; | ||
col fixed operation_id = [0]*; | ||
} | ||
|
||
machine Bit7 with | ||
latch: latch, | ||
operation_id: operation_id, | ||
degree: 128 | ||
{ | ||
operation check<0> BIT7 -> ; | ||
operation check BIT7 -> ; | ||
|
||
let BIT7: col = |i| i % 128; | ||
col fixed latch = [1]*; | ||
col fixed operation_id = [0]*; | ||
} | ||
|
||
machine Bit12 with | ||
latch: latch, | ||
operation_id: operation_id, | ||
degree: 4096 | ||
{ | ||
operation check<0> BIT12 -> ; | ||
operation check BIT12 -> ; | ||
|
||
let BIT12: col = |i| i % (2**12); | ||
let latch = 1; | ||
col fixed operation_id = [0]*; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters