# US 2004/0210873 A1 · Automatic devlopment of software codes

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0210873 A1
- Document ID: US20040210873A1
- Status: Published application
- Kind: A1
- Application number: 10/480,023
- Filed: 2004-05-18
- Published: 2004-10-21
- Earliest claimed: 2001-06-08
- Inventors: Nicholas James Tudor
- Web page: https://patentgrep.com/patent/US20040210873A1

## CPC

- G06F 11/3608: {using formal methods, e.g. model checking, abstract interpretation (theorem proving G06N5/013)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Development of verified software codes is a very laborious process and is important especially where safety critical applications are concerned. A method is provided for the generation of verified software code against a requirement, which method comprises the steps of: i. using software to generate a static model of the requirement, ii. using the state model to develop a software code representation of the state model and a mathematical representation of the state model. iii. comparing the software code and mathematical representations to verify that the software code representation is a correct implementation of the mathematical representation.

## Claims

### Claim 1

A method for the generation of verified software code against a requirement, which method comprises the steps of:
i. using software to generate a state model of the requirement,
ii. using the state model to develop a software code representation of the state model and a mathematical representation of the state model,
iii. comparing the software code and mathematical representations to verify that the software code representation is a correct implementation of the mathematical representation.

### Claim 2 (depends on 1)

A method according to claim 1, wherein the method comprises an additional step of performing Model Checking to demonstrate absence of state-related errors such as dead-lock and live-lock.

### Claim 3 (depends on 1)

A method according to claim 1, wherein the software used to generate the state model of the requirement is Stateflow®.

### Claim 4 (depends on 1)

A method according to claim 1, wherein the software code representation of the state model is produced using RavenSPARK Ada.

### Claim 5 (depends on 1)

A method according to claim 1, wherein the mathematical representation of the state model is produced using ‘Circus’ or some other comparable formal language.

### Claim 6 (depends on 1)

A method according to claim 1, wherein the verified software code produced is a software control code.

### Claim 7

A method for the generation of verified software code, which method comprises the steps of:
i. developing a statement of requirements,
ii. using software to generate a state model from the statement of requirements,
iii. developing from the state model a formal specification in a mathematical representation,
iv. using the state model to develop software code which represents the state model,
v. constructing a compliance argument using the mathematical representation and the developed software code to provide verification conditions,
vi. generating new software code where there is disparity between the mathematical representation and the developed software code,
vii. discharging the verification conditions to prove that the new software code is a correct representation of the mathematical representation and hence the statement of requirements.

### Claim 8 (depends on 7)

A method as claimed in claim 7, wherein the method comprises an additional step of performing Model Checking on the formal specification.

### Claim 9 (depends on 1)

Verified software code generated in accordance with claim 1.
