Program analysis support device
First Claim
1. A program analysis support device having a program that represents a circuit diagram of relay logic and includes a plurality of hierarchical program modules, which are units of the relay logic, the device comprising:
- a microprocessor configured toinput and hold a program analysis condition indicating a proposed change to the relay logic, the program analysis condition including at least one of the program modules and at least one device of the at least one of the program modules to be changed, as designated by a user,execute analysis of the at least one program module to identify dependent devices whose operation is dependent upon the at least one device to be changed and to identify program modules containing the dependent devices,output and store an analysis result including dependence directed graphs indicating hierarchical dependencies of the identified dependent devices,output and store a collection of the identified program modules containing the dependent devices, anddisplay the analysis result whereinthe executing and the outputting and storing a collection are performed iteratively to identify other dependent devices whose operation is dependent upon the dependent devices identified in previous iterations of the executing in the program modules of the collection output in previous iterations of the outputting and storing,thereby to improve efficiency of identifying devices and program modules affected by a change in the circuit diagram.
1 Assignment
0 Petitions
Accused Products
Abstract
A program analysis support device that can freely combine program analysis conditions and can realize desired program analysis. An analysis condition setting part inputs a program analysis condition in a form of a conditional equation (analysis command, an analysis subject, and analysis condition) having an inherent equation number. A POU list extraction processing executing part executes an analysis command that reads a program to generate a collection of POUs serving as analysis subjects constituting the program, and a variable use list extraction processing executing part executes an analysis command that extracts a cross-reference of a variable to extract a cross-reference of a variable to the POU collection serving as the analysis subject. Both the parts further extract a cross-reference of a variable to another POU collection. An AND processing part further performs processing of a logical product of the cross-references of both the variables and outputs a result thereof to an analysis result display part.
8 Citations
16 Claims
-
1. A program analysis support device having a program that represents a circuit diagram of relay logic and includes a plurality of hierarchical program modules, which are units of the relay logic, the device comprising:
a microprocessor configured to input and hold a program analysis condition indicating a proposed change to the relay logic, the program analysis condition including at least one of the program modules and at least one device of the at least one of the program modules to be changed, as designated by a user, execute analysis of the at least one program module to identify dependent devices whose operation is dependent upon the at least one device to be changed and to identify program modules containing the dependent devices, output and store an analysis result including dependence directed graphs indicating hierarchical dependencies of the identified dependent devices, output and store a collection of the identified program modules containing the dependent devices, and display the analysis result wherein the executing and the outputting and storing a collection are performed iteratively to identify other dependent devices whose operation is dependent upon the dependent devices identified in previous iterations of the executing in the program modules of the collection output in previous iterations of the outputting and storing, thereby to improve efficiency of identifying devices and program modules affected by a change in the circuit diagram. - View Dependent Claims (2, 3)
-
4. A program analysis support device having a program that represents a circuit diagram of relay logic and includes a plurality of hierarchical program modules, which are units of the relay logic, the device comprising:
-
a microprocessor configured to input and hold a program analysis condition indicating a proposed change to the relay logic, the program analysis condition including at least one of the program modules and at least one device of the at least one of the program modules to be changed, as designated by a user, execute analysis of the at least one program module to identify dependent devices whose operation is dependent upon the at least one device to be changed and to identify program modules containing the dependent devices based on the program analysis condition, extract and store an analysis result including a hierarchical relation of the identified program modules containing the identified dependent devices as dependence directed graphs indicating hierarchical dependencies of the program modules containing the dependent devices, output and store a collection of the identified program modules containing the dependent devices, and display the analysis result, wherein the executing and the outputting and storing a collection are performed iteratively to identify other program modules containing the dependent devices that are hierarchically below the program modules in the collection output in previous iterations of the outputting, thereby to improve efficiency of identifying devices and program modules affected by a change in the circuit diagram. - View Dependent Claims (5, 6)
-
-
7. A program analysis support device having a program that represents a circuit diagram of relay logic and includes a plurality of hierarchical program modules, which are units of the relay logic, the device comprising:
a microprocessor configured to input and hold a program analysis condition indicating a proposed change to the relay logic, the program analysis condition including at least one of the program modules and at least one device of the at least one of the program modules to be changed, as designated by a user, execute an analysis of the at least one program module to identify dependent devices whose operation is dependent upon the at least one device to be changed and to identify program modules containing the dependent devices, display an analysis result of the analysis processing, extract and store a cross-reference of the identified dependent devices included in the identified program modules, output and store dependence directed graphs of the identified dependent devices described in the identified program modules, output and store a collection of the identified program modules containing the identified dependent devices, extract and store a hierarchical relation of the identified program modules containing the identified dependent devices as dependence directed graphs, and process at least one of an AND, OR, and NOT logical operations using as arguments at least two of the stored cross-reference of the identified dependent devices, dependence directed graphs of the identified dependent devices, collection of the identified program modules and hierarchical relation of the identified program modules, thereby to improve efficiency of identifying devices and program modules affected by a change in the circuit diagram. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 15, 16)
Specification