Skip to content

Commit

Permalink
remove wrapping behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaeff committed May 19, 2023
1 parent 5abcd3c commit 6ad42f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
14 changes: 6 additions & 8 deletions executor/src/witgen/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,13 @@ where
.into()
});

if result.is_err() {
identity_failed = true;
}

match &result {
Ok(e) if e.is_complete() => {
*complete = true;
Ok(e) => {
*complete = e.is_complete();
}
Err(_) => {
identity_failed = true;
}
_ => {}
};

self.handle_eval_result(result);
Expand Down Expand Up @@ -150,7 +148,7 @@ where
}
// Identity check failure on the first row is not fatal. We will proceed with
// "unknown", report zero and re-check the wrap-around against the zero values at the end.
if identity_failed && next_row != 0 {
if identity_failed {
log::error!(
"\nError: Row {next_row}: Identity check failed or unable to derive values for some witness columns.");
log::debug!(
Expand Down
6 changes: 0 additions & 6 deletions executor/src/witgen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ pub fn generate<'a, T: FieldElement>(
values[col].1.push(v);
}
}
for (col, v) in generator.compute_next_row(0).into_iter().enumerate() {
if v != values[col].1[0] {
eprintln!("Wrap-around value for column {} does not match: {} (wrap-around) vs. {} (first row).",
witness_cols[col].poly, v, values[col].1[0]);
}
}
for (name, data) in generator.machine_witness_col_values() {
let (_, col) = values.iter_mut().find(|(n, _)| *n == name).unwrap();
*col = data;
Expand Down

0 comments on commit 6ad42f4

Please sign in to comment.