mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 09:13:09 +00:00
Merge conflicts
This commit is contained in:
parent
afda9db00a
commit
4e848c77db
@ -63,7 +63,7 @@ mod tests {
|
||||
use crate::config::StarkConfig;
|
||||
use crate::cpu;
|
||||
use crate::cpu::cpu_stark::CpuStark;
|
||||
use crate::cross_table_lookup::CrossTableLookup;
|
||||
use crate::cross_table_lookup::{CrossTableLookup, TableWithColumns};
|
||||
use crate::keccak::keccak_stark::{KeccakStark, INPUT_LIMBS, NUM_ROUNDS};
|
||||
use crate::proof::AllProof;
|
||||
use crate::prover::prove;
|
||||
@ -116,11 +116,13 @@ mod tests {
|
||||
|
||||
// TODO: temporary until cross-table-lookup filters are implemented
|
||||
let cross_table_lookups = vec![CrossTableLookup::new(
|
||||
vec![Table::Cpu],
|
||||
vec![vec![cpu::columns::OPCODE]],
|
||||
Table::Keccak,
|
||||
vec![keccak_looked_col],
|
||||
default,
|
||||
vec![TableWithColumns::new(
|
||||
Table::Cpu,
|
||||
vec![cpu::columns::OPCODE],
|
||||
vec![],
|
||||
)],
|
||||
TableWithColumns::new(Table::Keccak, vec![keccak_looked_col], vec![]),
|
||||
Some(default),
|
||||
)];
|
||||
|
||||
let all_stark = AllStark {
|
||||
|
||||
@ -68,9 +68,12 @@ impl<F: Field> CrossTableLookup<F> {
|
||||
.iter()
|
||||
.all(|twc| twc.filter_columns.is_empty())
|
||||
== default.is_some()
|
||||
&& default.is_some() == looked_table.filter_columns.is_empty()
|
||||
&& default.is_some() == looked_table.filter_columns.is_empty(),
|
||||
"Default values should be provided iff there are no filter columns."
|
||||
);
|
||||
assert!(default.len() == looked_columns.len());
|
||||
if let Some(default) = &default {
|
||||
assert_eq!(default.len(), looked_table.columns.len());
|
||||
}
|
||||
Self {
|
||||
looking_tables,
|
||||
looked_table,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user