Detecting errors for function calls with an implicit receiver object
AssigneeSynopsys, Inc.
InventorsPeter Hallam, Brett van Swelm, Peter Dillinger
Life of this patent
Estimating the term…
Loading patent…
AssigneeSynopsys, Inc.
InventorsPeter Hallam, Brett van Swelm, Peter Dillinger
Estimating the term…
A code testing system identifies possible code errors that may generate unexpected application behaviors. The code testing system identifies function calls in the system by identifying function call sites that do not specify a receiver object but may invoke a function that uses a receiver object. To identify these call sites, the code testing system analyzes function operation to determine receiver functions that use a receiver object, and may exclude functions that use the receiver object in a pro forma way or that does not rely on or affect properties of the object. A callgraph is generated for the functions in the code to identify possible functions called from a call site. When a call site, based on the callgraph, may invoke a receiver function, the call site is analyzed to determine whether it specifies a receiver object for the called function and identifies an error when the call site does not specify a receiver object.
A computer-implemented method for detecting errors in computer code, comprising:
A non-transitory computer-readable medium including instructions for execution on a processor, the instructions, when executed by the processor, causing the processor to:
A system comprising:
Dependencies are inferred from the claim text.