Skip to content

Commit

Permalink
remove debug_info backend interface
Browse files Browse the repository at this point in the history
  • Loading branch information
katat committed Apr 17, 2024
1 parent 06290e5 commit 881a78c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/backends/kimchi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ impl Backend for KimchiVesta {
builtin::poseidon
}

fn debug_info(&self) -> &[DebugInfo] {
&self.debug_info
}

fn witness_vars(&self) -> &HashMap<usize, Value<Self>> {
&self.witness_vars
}
Expand Down Expand Up @@ -363,7 +359,7 @@ impl Backend for KimchiVesta {
let mut public_outputs_vars: Vec<(usize, CellVar)> = vec![];

for (row, (gate, row_of_vars, debug_info)) in
izip!(self.gates.iter(), &self.rows_of_vars, self.debug_info()).enumerate()
izip!(self.gates.iter(), &self.rows_of_vars, &self.debug_info).enumerate()
{
// create the witness row
let mut witness_row = [Self::Field::zero(); NUM_REGISTERS];
Expand Down Expand Up @@ -473,7 +469,7 @@ impl Backend for KimchiVesta {
}

for (row, (Gate { typ, coeffs }, debug_info)) in
self.gates.iter().zip(self.debug_info()).enumerate()
self.gates.iter().zip(&self.debug_info).enumerate()
{
println!("gate {:?}", row);
// gate #
Expand Down
1 change: 0 additions & 1 deletion src/backends/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub trait Backend: Clone {
span: Span,
) -> CellVar;

fn debug_info(&self) -> &[DebugInfo];
/// Add a gate to the circuit. Kimchi specific atm.
fn add_gate(
&mut self,
Expand Down

0 comments on commit 881a78c

Please sign in to comment.