Use inferred_name to trace anonymous functions