do attribute inference for auto functions