Skip to content

Commit ea9beb3

Browse files
committed
do not print entire function is underconstrained values trace
1 parent bdbdb63 commit ea9beb3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

+7-5
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ 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!("processing instructions of block {} of function {} {}", block, function.name(), function.id());
320320

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

549549
if !self.tainted.is_empty() {
550550
trace!(
551-
"number of Brillig calls in function {} left unchecked: {}",
552-
function,
551+
"number of Brillig calls in function {} {} left unchecked: {}",
552+
function.name(),
553+
function.id(),
553554
self.tainted.len()
554555
);
555556
}
@@ -573,9 +574,10 @@ impl DependencyContext {
573574
.collect();
574575

575576
trace!(
576-
"making {} reports on underconstrained Brillig calls for function {}",
577+
"making {} reports on underconstrained Brillig calls for function {} {}",
577578
warnings.len(),
578-
function.name()
579+
function.name(),
580+
function.id()
579581
);
580582
warnings
581583
}

0 commit comments

Comments
 (0)