@@ -271,15 +271,6 @@ where
271271 ) ;
272272 inventory. add_air ( fri_reduced_opening) ;
273273
274- let verify_batch = NativePoseidon2Air :: < _ , 1 > :: new (
275- exec_bridge,
276- memory_bridge,
277- hint_bridge,
278- VerifyBatchBus :: new ( inventory. new_bus_idx ( ) ) ,
279- Poseidon2Config :: default ( ) ,
280- ) ;
281- inventory. add_air ( verify_batch) ;
282-
283274 let hint_space_provider = HintSpaceProviderAir {
284275 hint_bus : hint_bridge. hint_bus ( ) ,
285276 lt_air : IsLtSubAir :: new (
@@ -289,6 +280,15 @@ where
289280 } ;
290281 inventory. add_air ( hint_space_provider) ;
291282
283+ let verify_batch = NativePoseidon2Air :: < _ , 1 > :: new (
284+ exec_bridge,
285+ memory_bridge,
286+ hint_bridge,
287+ VerifyBatchBus :: new ( inventory. new_bus_idx ( ) ) ,
288+ Poseidon2Config :: default ( ) ,
289+ ) ;
290+ inventory. add_air ( verify_batch) ;
291+
292292 let tower_evaluate = NativeSumcheckAir :: new ( exec_bridge, memory_bridge, hint_bridge) ;
293293 inventory. add_air ( tower_evaluate) ;
294294
@@ -365,13 +365,6 @@ where
365365 FriReducedOpeningChip :: new ( FriReducedOpeningFiller :: new ( ) , mem_helper. clone ( ) ) ;
366366 inventory. add_executor_chip ( fri_reduced_opening) ;
367367
368- inventory. next_air :: < NativePoseidon2Air < Val < SC > , 1 > > ( ) ?;
369- let poseidon2 = NativePoseidon2Chip :: < _ , 1 > :: new (
370- NativePoseidon2Filler :: new ( Poseidon2Config :: default ( ) ) ,
371- mem_helper. clone ( ) ,
372- ) ;
373- inventory. add_executor_chip ( poseidon2) ;
374-
375368 let hint_bus = inventory. airs ( ) . system ( ) . hint_bridge . hint_bus ( ) ;
376369 let hint_space_provider = Arc :: new ( HintSpaceProviderChip :: new (
377370 hint_bus,
@@ -382,8 +375,17 @@ where
382375 inventory. next_air :: < HintSpaceProviderAir > ( ) ?;
383376 inventory. add_periphery_chip ( hint_space_provider. clone ( ) ) ;
384377
378+ inventory. next_air :: < NativePoseidon2Air < Val < SC > , 1 > > ( ) ?;
379+
380+ let poseidon2 = NativePoseidon2Chip :: < _ , 1 > :: new (
381+ NativePoseidon2Filler :: new ( Poseidon2Config :: default ( ) , hint_space_provider. clone ( ) ) ,
382+ mem_helper. clone ( ) ,
383+ ) ;
384+ inventory. add_executor_chip ( poseidon2) ;
385+
386+ inventory. next_air :: < NativeSumcheckAir > ( ) ?;
385387 let tower_verify = NativeSumcheckChip :: new (
386- NativeSumcheckFiller :: new ( hint_space_provider) ,
388+ NativeSumcheckFiller :: new ( hint_space_provider. clone ( ) ) ,
387389 mem_helper. clone ( ) ,
388390 ) ;
389391 inventory. add_executor_chip ( tower_verify) ;
0 commit comments