Skip to content

Commit

Permalink
Fix Arithmetic trace length (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
hratoanina authored Jul 30, 2024
1 parent 8f5c343 commit f24c826
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion evm_arithmetization/src/witness/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ impl<T: Copy> Traces<T> {
.map(|op| match op {
Operation::TernaryOperation { .. } => 2,
Operation::BinaryOperation { operator, .. } => match operator {
BinaryOperator::Div | BinaryOperator::Mod => 2,
BinaryOperator::Div
| BinaryOperator::Mod
| BinaryOperator::AddFp254
| BinaryOperator::SubFp254
| BinaryOperator::MulFp254
| BinaryOperator::Shr => 2,
_ => 1,
},
Operation::RangeCheckOperation { .. } => 1,
Expand Down

0 comments on commit f24c826

Please sign in to comment.