mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-04-20 03:03:25 -04:00
remove wrapping behavior
This commit is contained in:
@@ -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!(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user