remove wrapping behavior

This commit is contained in:
schaeff
2023-05-18 15:03:13 +02:00
parent 5e114fb6ba
commit f8cd4e4e75
2 changed files with 6 additions and 14 deletions

View File

@@ -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);
@@ -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.\nSet RUST_LOG=debug for more information.");
log::debug!(

View File

@@ -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;