Skip to content

Commit 791fa43

Browse files
authored
chore(ssa): Do not print entire functions in underconstrained values check trace (#7665)
1 parent dde7a85 commit 791fa43

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

compiler/noirc_evaluator/src/ssa/checks/check_for_underconstrained_values.rs

+12-5
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,12 @@ impl DependencyContext {
316316
function: &Function,
317317
all_functions: &BTreeMap<FunctionId, Function>,
318318
) {
319-
trace!("processing instructions of block {} of function {}", block, function.id());
319+
trace!(
320+
"processing instructions of block {} of function {} {}",
321+
block,
322+
function.name(),
323+
function.id()
324+
);
320325

321326
// First, gather information on all Brillig calls in the block
322327
// to be able to follow their arguments first appearing in the
@@ -548,8 +553,9 @@ impl DependencyContext {
548553

549554
if !self.tainted.is_empty() {
550555
trace!(
551-
"number of Brillig calls in function {} left unchecked: {}",
552-
function,
556+
"number of Brillig calls in function {} {} left unchecked: {}",
557+
function.name(),
558+
function.id(),
553559
self.tainted.len()
554560
);
555561
}
@@ -573,9 +579,10 @@ impl DependencyContext {
573579
.collect();
574580

575581
trace!(
576-
"making {} reports on underconstrained Brillig calls for function {}",
582+
"making {} reports on underconstrained Brillig calls for function {} {}",
577583
warnings.len(),
578-
function.name()
584+
function.name(),
585+
function.id()
579586
);
580587
warnings
581588
}

0 commit comments

Comments
 (0)