Identifying potentially uninitialized source code variables
AssigneeInternational Business Machines Corporation
InventorsCary L. Bates, Lee N. Helgeson, Justin K. King, Michelle A. Schlicht
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsCary L. Bates, Lee N. Helgeson, Justin K. King, Michelle A. Schlicht
Estimating the term…
Computer program source code is represented by nodes in a control flow graph. A set of target nodes is identified, where each node in the set of target nodes includes at least one line of source code that defines a modification to a particular variable used in the computer program. A usage score relating to the variable is calculated for each target node. Each usage score is then recalculated based on the earlier scores and also based on the modifications to the variable that are defined by the lines of source code. Each recalculated score is compared to its corresponding earlier score, and if any score has changed, then the process repeats. Scores are recalculated based on the most recently calculated scores until the scores stop changing. The final scores may then be displayed.
A method for evaluating usage of a variable in computer program source code, the source code represented by a plurality of nodes in a control flow graph, the method comprising:
Dependencies are inferred from the claim text.