Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Do not print entire functions when running debug trace #6814

Merged
merged 7 commits into from
Dec 13, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct DependencyContext {
}

/// Structure keeping track of value ids descending from Brillig calls'
/// arguments and results, also storing information on results
/// arguments and results, also storing information osn results
vezenovm marked this conversation as resolved.
Show resolved Hide resolved
/// already properly constrained
#[derive(Clone, Debug)]
struct BrilligTaintedIds {
Expand Down Expand Up @@ -229,7 +229,7 @@ impl DependencyContext {
function: &Function,
all_functions: &BTreeMap<FunctionId, Function>,
) {
trace!("processing instructions of block {} of function {}", block, function);
trace!("processing instructions of block {} of function {}", block, function.id());

for instruction in function.dfg[block].instructions() {
let mut arguments = Vec::new();
Expand Down Expand Up @@ -321,7 +321,7 @@ impl DependencyContext {
// Record arguments/results for each Brillig call for the check
trace!(
"Brillig function {} called at {}",
all_functions[&callee],
callee,
instruction
);
self.tainted.insert(
Expand Down
Loading