A function calling method based on temporal logic language msvl

A technology of sequential logic language and function call, applied in the direction of program control design, electrical digital data processing, instruments, etc., can solve the problems of MSVL program design inconvenience, difficult to understand, lengthy MSVL program, etc.

Active Publication Date: 2017-06-06
XIDIAN UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Function is a very useful building block in program design. Function can effectively encapsulate data and operations, and only provides a simple function interface to the outside world. When the program needs to perform the same function, it can directly call the written function. Instead of rewriting the code, thereby improving the code reuse rate, simplifying the program design, and making the program more concise and refined, but the implementation method of function definition and calling has not been given in MSVL, this defect brings inconvenience to MSVL program design, and at the same time Causes MSVL programs to be lengthy and difficult to understand

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
  • A function calling method based on temporal logic language msvl
  • A function calling method based on temporal logic language msvl
  • A function calling method based on temporal logic language msvl

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] The present invention will be further described below in conjunction with the accompanying drawings. It should be noted that this embodiment is based on the technical solution and provides detailed implementation and operation process, but the protection scope of the present invention is not limited to this embodiment.

[0073] Such as figure 1 As shown, a method of calling a function based on sequential logic language MSVL includes the following steps:

[0074] Step 1, judge whether the called function is an MSVL function, if yes, define the function; if not, judge whether the called function is an external function with return value, if yes, go to step 2, if the called function is no If the value is an external function, go to step 3;

[0075] When the called function is an MSVL function, according to different forms, the function is defined in four situations:

[0076] 1) If there are parameters and return values, the definition format is as follows:

[0077] def ...

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

The invention discloses a function call method based on a temporal logic language MSVL (modeling, simulation and verification language). The method includes: firstly, judging whether a called function is an MSVL function, an external function with a return value or an external function without a return value in type, and defining the called function or modifying the definition thereof according to different function types; secondly, judging the position of the called function, and calling the function via different modes according to different function call positions and the corresponding called function type. By the method, the called function is explained with different modes in the same program; the function compiled with the C language and the Java language can be called in the MSVL program, integration of various different programming language programs is facilitated, difficulty in program development is lowered effectively, and code reuse rate is increased.

Description

technical field [0001] The invention belongs to the technical field of formal modeling and verification of computer systems, and mainly relates to the realization of logic programming language, in particular, a method of calling functions based on sequential logic language MSVL, which can be used to call other various programs in MSVL programs. Language program is conducive to code reuse and integration, and simplifies program design. Background technique [0002] In 1977, A. Pnueli introduced temporal logic into the field of computer science, mainly for modeling and verification of real-time and concurrent systems. After nearly 40 years of research, the field of temporal logic has been greatly developed, forming three branches: linear temporal logic (Linear Temporal Logic), branching temporal logic (Branching Temporal Logic) and interval temporal logic (Interval Temporal Logic) . [0003] Projection Temporal Logic is a kind of interval temporal logic. The meaning of an in...

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 Patents(China)
IPC IPC(8): G06F9/45
Inventor 段振华张南田聪王小兵赵亮
Owner XIDIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products