diff --git a/src/compiler/cse.rs b/src/compiler/cse.rs index a5807827..4cab009c 100644 --- a/src/compiler/cse.rs +++ b/src/compiler/cse.rs @@ -13,7 +13,7 @@ use crate::{ cse::{create_common_ses_signal, replace_expr}, Expr, HashResult, VarAssignments, }, - sbpir::{query::Queriable, ForwardSignal, InternalSignal, SBPIRLegacy, StepType}, + sbpir::{query::Queriable, sbpir_machine::SBPIRMachine, ForwardSignal, InternalSignal, StepType}, wit_gen::NullTraceGenerator, }; @@ -55,9 +55,9 @@ pub fn config(min_degree: usize, min_occurrences: usize, max_iterations: Option< /// with high probability. #[allow(dead_code)] pub(super) fn cse( - mut circuit: SBPIRLegacy, + mut circuit: SBPIRMachine, config: CseConfig, -) -> SBPIRLegacy { +) -> SBPIRMachine { for (_, step_type) in circuit.step_types.iter_mut() { cse_for_step(step_type, &circuit.forward_signals, &config) } @@ -264,7 +264,7 @@ mod test { compiler::cse::{cse, CseConfig}, field::Field, poly::{Expr, VarAssignments}, - sbpir::{query::Queriable, InternalSignal, SBPIRLegacy, StepType}, + sbpir::{query::Queriable, sbpir_machine::SBPIRMachine, InternalSignal, StepType}, util::uuid, wit_gen::NullTraceGenerator, }; @@ -343,7 +343,7 @@ mod test { step.add_constr("expr4".into(), expr4.clone()); step.add_constr("expr5".into(), expr5); - let mut circuit: SBPIRLegacy = SBPIRLegacy::default(); + let mut circuit: SBPIRMachine = SBPIRMachine::default(); let step_uuid = circuit.add_step_type_def(step); let circuit = cse(circuit, CseConfig::default());