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 graphical model,the graphical model representing a dynamic system;
generate, based on the graphical model, a semantic representation of the executable graphical model;
generate textual code for the graphical model,the textual code being executable to simulate a behavior of the dynamic system;
generate a semantic representation of the textual code;
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 graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and
determine whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical model; and
output a result of the verification,the result indicating whether the semantic representation of the graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical 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.
36 Citations
20 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 graphical model, the graphical model representing a dynamic system; generate, based on the graphical model, a semantic representation of the executable graphical model; generate textual code for the graphical model, the textual code being executable to simulate a behavior of the dynamic system; generate a semantic representation of the textual code; 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 graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and
determine whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical model; andoutput a result of the verification, the result indicating whether the semantic representation of the graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical model. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
14. A method comprising:
-
obtaining a graphical model representing a dynamic system, obtaining the graphical model being performed by a device; generating, based on the graphical model, a semantic representation of the graphical model, generating the semantic representation of the graphical model being performed by the device; generating textual code for the graphical model, the textual code being executable to simulate a behavior of the dynamic system, and generating the textual code being performed by the device; generating a semantic representation of the textual code, generating the semantic representation of the textual code being performed by the device; performing a verification of the textual code, the verification being performed by the device, and performing the verification including; determining whether the semantic representation of the graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and determining whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical model; and outputting a result of the verification, outputting the result being performed by the device, and the result indicating whether the semantic representation of the graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical model. - View Dependent Claims (15, 16, 17, 18, 19)
-
-
20. A system comprising:
-
a memory storing; a semantic representation of an executable graphical model representing a dynamic system; and a semantic representation of textual code, the textual code being generated from the executable graphical model; and a processor to; perform a verification of the textual code, the processor, when performing the verification of the textual code, being to; determine whether the semantic representation of the graphical model includes a corresponding element for each element included in the semantic representation of the textual code; and output a result of the verification, the result indicating whether the semantic representation of the graphical model includes a corresponding element for each element included in the semantic representation of the textual code, and whether the semantic representation of the textual code includes a corresponding element for each element included in the semantic representation of the graphical model.
-
Specification