Verification of computer-executable code generated from a model
First Claim
Patent Images
1. A non-transitory computer-readable medium storing instructions, the instructions comprising:
- one or more instructions that, when executed by a processor, cause the processor to;
obtain a semantic representation of a model and a semantic representation of textual code generated based on the model;
perform a verification of the textual code,the one or more instructions to perform the verification of the textual code including;
one or more instructions that, when executed by the processor, cause the processor to;
determine whether the semantic representation of the model includes a corresponding element for one or more elements included in the semantic representation of the textual code, and
determine whether the semantic representation of the textual code includes a corresponding element for one or more elements included in the semantic representation of the model; and
output a result of the verification,the result indicating;
whether the semantic representation of the model includes the corresponding element for the one or more elements included in the semantic representation of the textual code, andwhether the semantic representation of the textual code includes the corresponding element for the one or more elements included in the semantic representation of the model.
1 Assignment
0 Petitions
Accused Products
Abstract
A code verification tool verifies that code generated from a model represents all of the functionality of the model and does not contain any unintended functionality. The code verification tool may receive for examination a model or an intermediate representation (IR) of the model and the generated code or an intermediate representation of the generated code. The code verification tool may create further intermediate representations of the model and/or the generated code in order to compare the functionality presented in both.
-
Citations
23 Claims
-
1. A non-transitory computer-readable medium storing instructions, the instructions comprising:
one or more instructions that, when executed by a processor, cause the processor to; obtain a semantic representation of a model and a semantic representation of textual code generated based on the model; perform a verification of the textual code, the one or more instructions to perform the verification of the textual code including; one or more instructions that, when executed by the processor, cause the processor to;
determine whether the semantic representation of the model includes a corresponding element for one or more elements included in the semantic representation of the textual code, and
determine whether the semantic representation of the textual code includes a corresponding element for one or more elements included in the semantic representation of the model; andoutput a result of the verification, the result indicating; whether the semantic representation of the model includes the corresponding element for the one or more elements included in the semantic representation of the textual code, and whether the semantic representation of the textual code includes the corresponding element for the one or more elements included in the semantic representation of the model. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A device comprising:
one or more processors to; obtain a semantic representation of textual code associated with a model and a semantic representation of the model; determine whether; the semantic representation of the textual code includes a corresponding element for elements included in the semantic representation of the model, and the semantic representation of the model includes a corresponding element for elements included in the semantic representation of the textual code; and selectively verify, based on the determining, that the textual code represents a functionality of the model, the textual code representing the functionality of the model when; the semantic representation of the textual code includes the corresponding element for elements included in the semantic representation of the model, and the semantic representation of the model includes the corresponding element for each element included in the semantic representation of the textual code. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
17. A method comprising:
-
obtaining a semantic representation of textual code associated with a model and a semantic representation of the model, the obtaining being performed by a computing device; determining whether the semantic representation of the textual code includes a corresponding element for elements included in the semantic representation of the model and whether the semantic representation of the model includes a corresponding element for elements included in the semantic representation of the textual code, the determining being performed by the computing device; and providing, based on the determining, information indicating whether the textual code represents a functionality of the model, the providing being performed by the computing device, and the textual code representing the functionality of the model when; the semantic representation of the textual code includes the corresponding element for elements included in the semantic representation of the model, and the semantic representation of the model includes the corresponding element for each element included in the semantic representation of the textual code. - View Dependent Claims (18, 19, 20, 21, 22, 23)
-
Specification