File tree 3 files changed +5
-8
lines changed
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -517,14 +517,14 @@ pub fn assert_proofs_fail_for_invalid_witnesses_pilcom(
517
517
assert ! ( run_pilcom_with_backend_variant(
518
518
pipeline
519
519
. clone( )
520
- . with_backend ( powdr_backend:: BackendType :: EStarkDump , None )
520
+ . with_backend_factory ( powdr_backend:: BackendType :: EStarkDump )
521
521
. set_witness( convert_witness( witness) ) ,
522
522
BackendVariant :: Monolithic
523
523
)
524
524
. is_err( ) ) ;
525
525
assert ! ( run_pilcom_with_backend_variant(
526
526
pipeline
527
- . with_backend ( powdr_backend:: BackendType :: EStarkDumpComposite , None )
527
+ . with_backend_factory ( powdr_backend:: BackendType :: EStarkDumpComposite )
528
528
. set_witness( convert_witness( witness) ) ,
529
529
BackendVariant :: Composite
530
530
)
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ fn block_to_block_empty_submachine() {
173
173
. iter ( )
174
174
. for_each ( |backend| {
175
175
let mut pipeline = make_simple_prepared_pipeline :: < GoldilocksField > ( f, LinkerMode :: Bus )
176
- . with_backend ( * backend, None ) ;
176
+ . with_backend_factory ( * backend) ;
177
177
let witness = pipeline. compute_witness ( ) . unwrap ( ) ;
178
178
let arith_size = witness
179
179
. iter ( )
@@ -314,7 +314,7 @@ fn dynamic_vadcop() {
314
314
// Witness generation require backend to be known
315
315
for backend in [ BackendType :: Mock , BackendType :: Plonky3 ] . iter ( ) {
316
316
let mut pipeline = make_simple_prepared_pipeline :: < GoldilocksField > ( f, LinkerMode :: Bus )
317
- . with_backend ( * backend, None ) ;
317
+ . with_backend_factory ( * backend) ;
318
318
let witness = pipeline. compute_witness ( ) . unwrap ( ) ;
319
319
let witness_by_name = witness
320
320
. iter ( )
Original file line number Diff line number Diff line change 1
1
use :: powdr_pipeline:: Pipeline ;
2
- use powdr_backend:: BackendType ;
3
2
use powdr_number:: GoldilocksField ;
4
3
5
4
use powdr_riscv:: { compile_rust_crate_to_riscv, elf, CompilerOptions } ;
@@ -19,9 +18,7 @@ fn executor_benchmark(c: &mut Criterion) {
19
18
compile_rust_crate_to_riscv ( "./tests/riscv_data/keccak/Cargo.toml" , & tmp_dir, None ) ;
20
19
let options = CompilerOptions :: new_gl ( ) ;
21
20
let contents = elf:: translate ( & executable, options) ;
22
- let mut pipeline = Pipeline :: < T > :: default ( )
23
- . from_asm_string ( contents, None )
24
- . with_backend ( BackendType :: Mock , None ) ;
21
+ let mut pipeline = Pipeline :: < T > :: default ( ) . from_asm_string ( contents, None ) ;
25
22
pipeline. compute_backend_tuned_pil ( ) . unwrap ( ) ;
26
23
pipeline. compute_fixed_cols ( ) . unwrap ( ) ;
27
24
You can’t perform that action at this time.
0 commit comments