Skip to content

Commit

Permalink
fix under-constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosma committed Sep 10, 2024
1 parent 60ea85c commit d4e85a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ceno_zkvm/src/scheme/mock_prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ pub fn load_and_table<E: ExtensionField>(
) {
for i in 0..(1 << 16) {
let a = i >> 8;
let b = i & 0b0111_1111;
let b = i & 0xFF;
let c = a & b;
let rlc_record = cb.rlc_chip_record(vec![
Expression::Constant(E::BaseField::from(ROMType::And as u64)),
Expand Down
2 changes: 1 addition & 1 deletion ceno_zkvm/src/uint/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl<const M: usize, E: ExtensionField> UInt<M, 8, E> {
circuit_builder.lookup_and_byte(
high_limb_no_msb.expr(),
high_limb.clone(),
Expression::from(0xFF),
Expression::from(0b0111_1111),
)?;

let inv_128 = F::from(128).invert().unwrap();
Expand Down

0 comments on commit d4e85a6

Please sign in to comment.