Supercharge Your Innovation With Domain-Expert AI Agents!

Source code conversion method and source code conversion program

A conversion method and source code technology, which is applied in the field of converting software source codes into inspection codes by computers, and can solve problems such as heavy workload

Inactive Publication Date: 2013-04-17
HITACHI LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Furthermore, in the model checking technology, the workload of software that describes the inspection object in the input language of a specific model checker is large, which may become a practical problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Source code conversion method and source code conversion program
  • Source code conversion method and source code conversion program
  • Source code conversion method and source code conversion program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1)

[0064] Next, refer to Figure 3A The source code conversion apparatus and conversion processing method of the first embodiment of the present invention are explained through FIG. 8 .

[0065] Figure 3A It is a diagram showing a configuration example of a source code conversion system including a source code conversion device according to the first embodiment. The source code conversion device 1000 used in the embodiment of the present invention is a device for converting source code 0001 to be checked into a check code 0005, and has an input unit 1100, a conversion processing unit 1200, an output unit 1300, a storage unit 1400, and a control unit. 1500. 2000 means model checking tool, 3000 means checking result.

[0066] Figure 3B A configuration example of the source code conversion device 1000 is shown in . The input unit 1100 has a source code input unit 1101 and a conversion rule input unit 1102 . The conversion processing unit 1200 has a model construction unit 120...

Embodiment 2)

[0118] use Figure 9 A source code conversion device and conversion processing method according to a second embodiment of the present invention will be described. In this example, if Figure 9 As shown, it is also possible to proceed to the conversion rule input step S102 after the check code output step S104, and repeatedly use different conversion rule sets 0002 to convert the input source code 0001. In addition, in a certain embodiment, it is also possible to proceed to the conversion rule input step S102 after the check code output step S104, and combine all or part of the already input conversion rule set 0002 with the newly input conversion rule in the conversion rule input step S102. The set 0002 is used together as the conversion rule set 0002.

[0119]According to this embodiment, there is an interface for inputting a plurality of conversion rules divided into fine-grained ones, the input source code and the conversion rule set used for conversion can be saved, and ...

Embodiment 3)

[0121] use Figure 10 A source code conversion apparatus and conversion processing method according to a third embodiment of the present invention will be described. In this embodiment, there is a step of using constraint conditions to verify the implementation model, generalization model, and inspection model generated in the process of obtaining the inspection code from the source code.

[0122] use Figure 10 Details the verification process for the appropriateness of the transition.

[0123] If a specific conversion rule has a precondition for the object model during the conversion, the precondition of the specific conversion rule may not be satisfied in the model of the converted object due to the application of other conversion rules. If the preconditions are not satisfied in this way, when the model conversion is performed using the above-mentioned specific conversion rules, the model of the conversion result may be wrong. In addition, when an error is included in th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

In model checking for software, in order to reduce cost for describing a checking code using an input language of a model checker, there is an approach for converting a software source code into the checking code. Since the user can select only a single conversion method, however, there are problems such as, for example, difficulty in changing an abstraction level, a high rule modification cost for coping with change in source code design, and a high rule modification cost for checking by a different checking tool. The present invention provides a means for, when converting a source code to a checking code, selecting a plurality of conversion rules, enabling the user to easily change an abstraction level. The plurality of conversion rules includes the conversion rules for: converting the source code to an intermediate format; performing an abstraction in the intermediate format; and converting the intermediate format to a checking code.

Description

technical field [0001] The present invention relates to a source code conversion method and a source code conversion program, and in particular to a method for converting a software source code into a check code using a computer in order to reduce the cost of writing the check code in the input language of a model checker in software model checking method. Background technique [0002] In recent years, software systems have spread in the general society, and the reliability required for software has become very high. On the other hand, software has continued to become more complex and large-scale, and quality assurance through manual inspection and testing has changed. very difficult. [0003] The model checking technology is, for example, the method disclosed in Non-Patent Document 1, which is a technology that describes the behavior of software in an input language of a specific model checker, executes the specific model checker, and thereby traverses the state that the a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F11/28
CPCG06F11/3624G06F8/51G06F8/75G06F11/3604G06F8/40
Inventor 市井诚近久真章野口秀人长野岳彦
Owner HITACHI LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More