# US 2019/0377556 A1 · Methods and systems for verifying a software program

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

- Number: US 2019/0377556 A1
- Document ID: US20190377556A1
- Status: Published application
- Kind: A1
- Application number: 16/481,905
- Filed: 2017-09-05
- Published: 2019-12-12
- Earliest claimed: 2017-02-01
- Assignees: Siemens Industry Software Inc.
- Applicants: Siemens Industry Software NV
- Inventors: Sanjit MISHRA
- Web page: https://patentgrep.com/patent/US20190377556A1

## CPC

- G06F 8/35: model driven
- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and Systems for verifying a software program in an integrated-development environment are disclosed. In one embodiment, a method of verifying the software program in the integrated-development environment includes generating a source code of a software program in comprising logging statements based on a specification of the software program. Furthermore, the method includes executing the source code with the logging statements and generating one or more log files during execution of the source code based on the logging statements. Moreover, the method includes generating a representation of the source code in a modeling language based on the one or more log files. The method includes verifying compliance of the source code with the specification by comparing the representation of the source code in the modeling language with the specification in the modeling language.

## Claims

### Claim 1

A computer-implemented method of verifying a software program in an integrated-development environment (113), comprising:
generating, by a data processing system (100), a source code of a software program comprising logging statements based on a specification of the software program;
executing the source code with the logging statements;
generating one or more log files during execution of the source code based on the logging statements; and
generating a representation of the source code (500) in a modeling language using the one or more log files.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
verifying the source code of the software program using the representation of the source code (500) in the modeling language.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein generating the source code of the software program comprising the logging statements comprises:
appending the logging statements at one or more locations in the source code of the software program based on metadata tagged in the specification of the software program.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the source code of the software program is generated in procedural programming language.

### Claim 5 (depends on 2)

The computer-implemented method of claim 2, wherein verifying the source code of the software program comprises:
comparing the representation of the source code (500) in the modeling language with the specification of the software program, wherein the specification of the software program is in the modeling language;
determining whether the source code of the software program is in compliance with the specification of the software program based on the outcome of comparison; and
altering the source code of the software program if the source code of the software program is not in compliance with the specification of the software program.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the representation of the source code (500) in the modeling language comprises a unified modeling language (UML) diagram.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the specification of the software program specifies behavior of a system in a chronological sequence of interactions between different elements associated with the system.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein generating the log files during execution of the source code of the software program comprises:
determining one or more interactions between the elements of the system based on the logging statements during execution of the source code; and
logging the one or more interactions between the elements of the system in a chronological sequence in the log files.

### Claim 9

A data processing system (100) comprising:
a processing unit (102); and
a memory (104) coupled to the processing unit (102), wherein the memory (104) comprises a model-driven development module (114) configured to:
generate a source code of a software program comprising logging statements based on a specification of the software program;
execute the source code with the logging statements;
generate one or more log files during execution of the source code based on the logging statements; and
generate a representation of the source code (500) in a modeling language using the one or more log files.

### Claim 10 (depends on 9)

The data processing system (100) of claim 9, wherein the model-driven development module (114) is configured to verify the source code of the software program using the representation of the source code (500) in the modeling language.

### Claim 11 (depends on 9)

The data processing system (100) of claim 9, wherein, in generating the source code of the software program, the model-driven development module (114) is configured to append the logging statements at one or more locations in the source code of the software program based on metadata tagged in the specification of the software program.

### Claim 12 (depends on 9)

The data processing system (100) of claim 9, wherein the source code of the software program is generated in procedural programming language.

### Claim 13 (depends on 10)

The data processing system (100) of claim 10, wherein, in verifying the source code of the software program, the model-driven development module (114) is configured to:
compare the representation of the source code (500) in the modeling language with the specification of the software program, wherein the specification of the software program is in the modeling language;
determine whether the source code of the software program is in compliance with the specification of the software program; and
alter the source code of the software program if the source code of the software program is not in compliance with the specification of the software program.

### Claim 14 (depends on 9)

The data processing system (100) of claim 9, wherein the representation of the source code in the modeling language comprises a unified modeling language (UML) diagram.

### Claim 15 (depends on 9)

The data processing system (100) of claim 9, wherein the specification of the software program specifies behavior of a system in a chronological sequence of interactions between different elements associated with the system.

### Claim 16 (depends on 9)

The data processing system (100) of claim 9, wherein, in generating the one or more log files, the model-driven development module (114) is configured to:
determine one or more interactions between the elements of the system based on the logging statements during execution of the source code; and
log the one or more interactions between the elements of the system in a chronological sequence in the log files.

### Claim 17

A non-transitory computer-readable storage medium, having instructions stored therein, which when executed by a data processing system (100), cause the data processing system (100) to perform a method of verifying a software program in an integrated-development environment (113), the method comprises steps of:
generating a source code of a software program comprising logging statements based on a specification of the software program;
executing the source code with the logging statements;
generating one or more log files during execution of the source code based on the logging statements; and
generating a representation of the source code (500) in a modeling language using the one or more log files.

### Claim 18 (depends on 17)

The storage medium of claim 17, wherein the instructions cause the data processing system (100) to perform a method step comprising:
verifying the source code of the software program using the representation of the source code (500) in the modeling language.

### Claim 19 (depends on 17)

The storage medium of claim 17, wherein, in generating the source code of the software program comprising the logging statements, the instructions cause the data processing system (100) to perform method steps comprising:
appending the logging statements at one or more locations in the source code of the software program based on metadata tagged in the specification of the software program.

### Claim 20 (depends on 17)

The storage medium of claim 17, wherein in generating the one or more log files, the instructions cause the data processing system (100) to perform method steps comprising:
determining one or more interactions between the elements of the system based on the logging statements during execution of the source code; and
logging the one or more interactions between the elements of the system in a chronological sequence in the log files.
