Skip to content

Commit

Permalink
o1vm/pickles: fix selectors constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbeunardeau88 committed Oct 18, 2024
1 parent 0dab255 commit 978e51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions o1vm/src/interpreters/mips/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,9 @@ impl<Fp: Field> Env<Fp> {
(var.clone() - one.clone()) * var.clone()
})
.collect();
let enforce_one_activation = (0..N_MIPS_SEL_COLS).fold(E::<Fp>::zero(), |res, i| {
let enforce_one_activation = (0..N_MIPS_SEL_COLS).fold(E::<Fp>::one(), |res, i| {
let var = self.variable(MIPSColumn::Selector(i));
res + var.clone()
res - var.clone();
});

enforce_bool.push(enforce_one_activation);
Expand Down

0 comments on commit 978e51d

Please sign in to comment.