Skip to content

Commit a271428

Browse files
Remove counter-productive 'debug' option (#1547)
Alas, sticking a debug option in the PackedField evaluator ain't the right place: thanks to some cryptographic shenanigans, a non-zero entry there doesn't actually mean that our constraints are failing. We can introduce a debug-evaluator later that does what this was trying to do.
1 parent 7b41684 commit a271428

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: circuits/src/expr.rs

-8
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,7 @@ pub fn build_packed<F, FE, P, const D: usize, const D2: usize>(
185185
.map(|c| c.map(|constraint| evaluator.eval(constraint)))
186186
.collect::<Vec<_>>();
187187

188-
let mozak_stark_debug = std::env::var("MOZAK_STARK_DEBUG").is_ok();
189188
for c in evaluated {
190-
if mozak_stark_debug && !c.term.is_zeros() {
191-
log::error!(
192-
"ConstraintConsumer - DEBUG trace (non-zero-constraint): {}",
193-
c.location
194-
);
195-
}
196-
197189
(match c.constraint_type {
198190
ConstraintType::FirstRow => ConstraintConsumer::constraint_first_row,
199191
ConstraintType::Always => ConstraintConsumer::constraint,

0 commit comments

Comments
 (0)