Patent ID: 8893099
Filing Date: 2014-11-18
Classification: G06F

Abstract:
1. A method performed by one or more processors, comprising: receiving a source program having at least one first function nested within a second function such that the first function is associated with an inner scope and the second function is associated with an outer scope relative to the inner scope; identifying variable names in the source program that are upward referencing by identifying variables that reference names defined in the inner scope; storing the upward referencing variable names with an identifier for the associated scope; determining one or more candidate shadow variables from variable names in the source program that are not among the identified upward referencing variable names; renaming, within the source program, one of the candidate shadow variables to a particular variable name selected from among the upward referencing variable names in response to an increase in a number of occurrences of that particular variable name within the source program; storing the source program with the renamed candidate shadow variable.