Skip to content

Commit

Permalink
Refactor block machine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgwiese committed Dec 20, 2024
1 parent eaa9c65 commit a8413f4
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions executor/src/witgen/jit/test_util.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
use itertools::Itertools;
use powdr_ast::analyzed::{Analyzed, Identity};
use powdr_ast::analyzed::Analyzed;
use powdr_executor_utils::VariablySizedColumn;
use powdr_number::{FieldElement, GoldilocksField};

use crate::{
constant_evaluator,
witgen::{
data_structures::mutable_state::MutableState,
global_constraints,
jit::effect::MachineCallArgument,
machines::{machine_extractor::MachineExtractor, KnownMachine},
FixedData, QueryCallback,
},
};
use crate::{constant_evaluator, witgen::jit::effect::MachineCallArgument};

use super::{
effect::{Assertion, Effect},
Expand Down Expand Up @@ -59,30 +50,3 @@ pub fn read_pil<T: FieldElement>(
let fixed_col_vals = constant_evaluator::generate(&analyzed);
(analyzed, fixed_col_vals)
}

// TODO: Doesn't compile
// pub fn prepare<'a, T: FieldElement, Q: QueryCallback<T>>(
// analyzed: &'a Analyzed<T>,
// fixed_col_vals: &'a [(String, VariablySizedColumn<T>)],
// external_witness_values: &'a [(String, Vec<T>)],
// query_callback: &'a Q,
// ) -> (
// FixedData<'a, T>,
// MutableState<'a, T, _>,
// Vec<&'a Identity<T>>,
// ) {
// let fixed_data = FixedData::new(
// analyzed,
// fixed_col_vals,
// external_witness_values,
// Default::default(),
// 0,
// );
// let (fixed_data, retained_identities) =
// global_constraints::set_global_constraints(fixed_data, &analyzed.identities);

// let machines =
// MachineExtractor::new(&fixed_data).split_out_machines(retained_identities.clone());
// let mutable_state = MutableState::new(machines.into_iter(), query_callback);
// (fixed_data, mutable_state, retained_identities)
// }

0 comments on commit a8413f4

Please sign in to comment.