Skip to content

Commit

Permalink
try to re-enable tests with executor witness
Browse files Browse the repository at this point in the history
  • Loading branch information
pacheco committed Nov 19, 2024
1 parent 6c96ba7 commit a344b32
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions riscv/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,27 @@ pub fn verify_riscv_asm_string<T: FieldElement, S: serde::Serialize + Send + Syn

test_plonky3_pipeline::<T>(pipeline.clone());

/* Commenting out these tests for now because auto witgen does not handle
* partial witnesses well with Poseidon.
// verify using executor generated witness
// TODO remove the guard once the executor is implemented for BB
if T::known_field().unwrap() == KnownField::GoldilocksField {
let analyzed = pipeline.compute_analyzed_asm().unwrap().clone();
let pil = pipeline.compute_optimized_pil().unwrap();
let fixed = pipeline.compute_fixed_cols().unwrap().clone();
let execution = powdr_riscv_executor::execute(
&analyzed,
&pil,
fixed,
Default::default(),
pipeline.data_callback().unwrap(),
&[],
None,
None,
);
pipeline.rollback_from_witness();
let executor_trace: Vec<_> = execution.trace.into_iter().collect();
let pipeline = pipeline.add_external_witness_values(executor_trace);
test_plonky3_pipeline::<T>(pipeline);
}
*/
// verify using executor generated witness
// TODO remove the guard once the executor is implemented for BB
if T::known_field().unwrap() == KnownField::GoldilocksField {
let analyzed = pipeline.compute_analyzed_asm().unwrap().clone();
let pil = pipeline.compute_optimized_pil().unwrap();
let fixed = pipeline.compute_fixed_cols().unwrap().clone();
let execution = powdr_riscv_executor::execute(
&analyzed,
&pil,
fixed,
Default::default(),
pipeline.data_callback().unwrap(),
&[],
None,
None,
);
pipeline.rollback_from_witness();
let executor_trace: Vec<_> = execution.trace.into_iter().collect();
let pipeline = pipeline.add_external_witness_values(executor_trace);
test_plonky3_pipeline::<T>(pipeline);
}
}

fn find_assembler() -> &'static str {
Expand Down

0 comments on commit a344b32

Please sign in to comment.