@@ -410,7 +410,7 @@ impl ColumnAllocator {
410410}
411411
412412#[ derive( Serialize , Deserialize ) ]
413- pub struct JsonExport {
413+ pub struct ExecutionStats {
414414 pub air_id_by_pc : BTreeMap < u32 , usize > ,
415415 pub column_names_by_air_id : BTreeMap < usize , Vec < String > > ,
416416 pub column_ranges_by_pc : BTreeMap < u32 , Vec < ( u32 , u32 ) > > ,
@@ -422,6 +422,7 @@ pub fn build<A: Adapter>(
422422 vm_config : AdapterVmConfig < A > ,
423423 degree_bound : DegreeBound ,
424424 apc_candidates_dir_path : Option < & Path > ,
425+ execution_stats : & ExecutionStats ,
425426) -> Result < AdapterApc < A > , crate :: constraint_optimizer:: Error > {
426427 let start = std:: time:: Instant :: now ( ) ;
427428
@@ -430,14 +431,8 @@ pub fn build<A: Adapter>(
430431 vm_config. instruction_handler ,
431432 & vm_config. bus_map ,
432433 ) ;
433-
434- let pgo_range_constraints_json = std:: fs:: read_to_string ( "pgo_range_constraints.json" )
435- . expect ( "Failed to read pgo range constraints json file" ) ;
436-
437- let pgo_range_constraints: JsonExport = serde_json:: from_str ( & pgo_range_constraints_json)
438- . expect ( "JSON format does not match JsonExport struct" ) ;
439- let range_constraints = pgo_range_constraints. column_ranges_by_pc ;
440- let equivalence_classes_by_block = pgo_range_constraints. equivalence_classes_by_block ;
434+ let range_constraints = & execution_stats. column_ranges_by_pc ;
435+ let equivalence_classes_by_block = & execution_stats. equivalence_classes_by_block ;
441436
442437 // Mapping (instruction index, column index) -> AlgebraicReference
443438 let reverse_subs = column_allocator
0 commit comments