File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed
crates/circuits/mod-builder/src Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -295,30 +295,11 @@ where
295
295
return ;
296
296
}
297
297
298
- if self . air . num_flags ( ) == 0 {
299
- // We will copy over the core part of last row to padded rows (all rows after num_records).
300
- let core_width = <Self :: Air as BaseAir < F > >:: width ( & self . air ) ;
301
- let adapter_width = trace. width ( ) - core_width;
302
- let last_row = trace
303
- . rows ( )
304
- . nth ( num_records - 1 )
305
- . unwrap ( )
306
- . collect :: < Vec < _ > > ( ) ;
307
- let last_row_core = last_row. split_at ( adapter_width) . 1 ;
308
- for row in trace. rows_mut ( ) . skip ( num_records) {
309
- let core_row = row. split_at_mut ( adapter_width) . 1 ;
310
- // The same as last row, except "is_valid" (the first element of core part) is zero.
311
- core_row. copy_from_slice ( last_row_core) ;
312
- core_row[ 0 ] = F :: ZERO ;
313
- }
314
- } else {
315
- // We will copy over the core part of first row to padded rows (all rows after num_records).
316
- let core_width = <Self :: Air as BaseAir < F > >:: width ( & self . air ) ;
317
- let adapter_width = trace. width ( ) - core_width;
318
- let dummy_row = self . generate_dummy_trace_row ( adapter_width, core_width) ;
319
- for row in trace. rows_mut ( ) . skip ( num_records) {
320
- row. copy_from_slice ( & dummy_row) ;
321
- }
298
+ let core_width = <Self :: Air as BaseAir < F > >:: width ( & self . air ) ;
299
+ let adapter_width = trace. width ( ) - core_width;
300
+ let dummy_row = self . generate_dummy_trace_row ( adapter_width, core_width) ;
301
+ for row in trace. rows_mut ( ) . skip ( num_records) {
302
+ row. copy_from_slice ( & dummy_row) ;
322
303
}
323
304
}
324
305
}
You can’t perform that action at this time.
0 commit comments