Skip to content

Commit

Permalink
mockprover error hint (#270)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Görgens <[email protected]>
  • Loading branch information
hero78119 and matthiasgoergens authored Oct 10, 2024
1 parent 992bc30 commit 06590d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ceno_zkvm/src/scheme/mock_prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,15 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
println!("======================================================");
println!("Error: {} constraints not satisfied", errors.len());

println!(
r"Hints:
- If you encounter a constraint error that sporadically occurs in different environments
(e.g., passes locally but fails in CI),
this often points to unassigned witnesses during the assignment phase.
Accessing these cells before they are properly written leads to undefined behavior.
"
);

for error in errors {
error.print(wits_in, &cb.cs.witin_namespace_map);
}
Expand Down

0 comments on commit 06590d1

Please sign in to comment.