Merge pull request #480 from mir-protocol/fix_mul_sub_typo

Fix `mul_add` -> `mul_sub` typo
This commit is contained in:
wborgeaud 2022-02-11 19:12:00 +01:00 committed by GitHub
commit 59d4e04bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ pub(crate) fn eval_arithmetic_unit_recursively<F: RichField + Extendable<D>, con
// Check that the operation flag values are binary.
for col in [IS_ADD, IS_SUB, IS_MUL, IS_DIV] {
let val = local_values[col];
let constraint = builder.mul_add_extension(val, val, val);
let constraint = builder.mul_sub_extension(val, val, val);
yield_constr.constraint_wrapping(builder, constraint);
}