Generating code based at least on one or more output arguments designated as not being present
AssigneeThe MathWorks, Inc.
InventorSteve Johnson
Life of this patent
Estimating the term…
Abstract
In an embodiment, code may be acquired that calls a first function defined to return a plurality of output arguments. The code may designate, with a designator, one or more output arguments, in the plurality of output argument, that are not present. Processing logic may generate a second function based at least on the designated one or more output arguments being designated as not present.
Claims27
A method comprising:
- acquiring code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments, in the plurality of output arguments of the first function, that are not present;
- and
- generating, using processing logic, a second function based at least on the designated one or more output arguments being designated as not present.
A method comprising:
- acquiring code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments, in the plurality of output arguments of the first function, that are not present;
- determining whether a second function already exists based at least on the designated one or more output arguments being designated as not present;
- and
- omitting, using processing logic, the generation of the second function if the second function already exists.
A method comprising:
- calling a function defined to return a plurality of output arguments, the call to the function designating, with a designator, one or more output arguments, in the plurality of output arguments, that are not present;
- receiving one or more values for the designated one or more output arguments;
- and
- ignoring, using processing logic, the received one or more values for the designated one or more output arguments.
One or more non-transitory computer-readable storage media for storing computer-executable instructions executable by processing logic, the media storing one or more instructions for:
- acquiring code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments, in the plurality of output arguments of the first function, that are not present;
- and
- generating a second function based at least on the designated one or more output arguments being designated as not present.
One or more non-transitory computer-readable storage media for storing computer-executable instructions executable by processing logic, the media storing one or more instructions for:
- acquiring code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments, in the plurality of output arguments of the first function, that are not present;
- determining whether a second function already exists based at least on the designated one or more output arguments being designated as not being present;
- and
- omitting, using processing logic, the generation of the second function if the second function already exists.
An apparatus comprising:
- means for acquiring code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments of the first function, in the plurality of output arguments, that are not present;
- and
- means for generating a second function based at least on the designated one or more output arguments being designated as not present.
A system comprising:
- a memory storing code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments of the first function, in the plurality of output arguments, that are not present, and
- processing logic coupled to the memory, the processing logic configured to:
- generate a second function based at least on the designated one or more output arguments of the first function being designated with the designator as not present.
An apparatus comprising:
- a memory storing code that includes a call to a first function defined to return a plurality of output arguments, the call to the first function designating, with a designator, one or more output arguments, in the plurality of output arguments of the first function, that are not returned by the first function;
- and
- processing logic coupled to the memory, the processing logic configured to generate a second function based on the designated one or more output arguments being designated as not returned, wherein
- the first function includes an expression or a statement that tests the designated one or more output arguments to determine whether the designated one or more output arguments are designated as not returned, and
- the second function either includes code or excludes code from the first function based on the designated one or more output arguments being designated as not returned.
Dependencies are inferred from the claim text.