Skip to content

Commit

Permalink
o1vm/pickles: Don't forget the extra columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzixnerd committed Oct 17, 2024
1 parent 20624f1 commit 6db3291
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions o1vm/src/pickles/column_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ pub struct ColumnEnvironment<'a, F: FftField> {
}

pub fn get_all_columns() -> Vec<Column> {
let mut cols = Vec::<Column>::with_capacity(SCRATCH_SIZE + N_MIPS_SEL_COLS);
for i in 0..SCRATCH_SIZE {
let mut cols = Vec::<Column>::with_capacity(SCRATCH_SIZE + 2 + N_MIPS_SEL_COLS);
for i in 0..SCRATCH_SIZE + 2 {
cols.push(Column::Relation(i));
}
for i in 0..N_MIPS_SEL_COLS {
Expand Down
8 changes: 1 addition & 7 deletions o1vm/src/pickles/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ fn test_regression_selectors_for_instructions() {

#[test]
fn test_small_circuit() {
/* domain: EvaluationDomains<G::ScalarField>,
srs: &SRS<G>,
inputs: ProofInputs<G>,
constraints: &[E<G::ScalarField>],
rng: &mut RNG,
*/
debug!("0");
let domain = EvaluationDomains::<Fq>::create(8).unwrap();
let srs = SRS::create(8);
Expand Down Expand Up @@ -131,7 +125,7 @@ fn test_small_circuit() {
};
debug!("1");
let mut expr = Expr::literal(Fq::zero());
for i in 0..SCRATCH_SIZE {
for i in 0..SCRATCH_SIZE + 2 {
expr += Expr::cell(Column::Relation(i), CurrOrNext::Curr);
}
expr *= Expr::cell(Column::DynamicSelector(0), CurrOrNext::Curr);
Expand Down

0 comments on commit 6db3291

Please sign in to comment.