calculate statement coverage for a given function (we also add the coverage of callee functions that are called by this function)