Logic statement graphical expression design method and device and related product

By abstracting the logical statement into a logical statement block with two inputs and one output, a graphical programming method is provided, which solves the problem that the existing technology cannot meet the high-performance requirements of autonomous driving, and realizes the low-code development of autonomous driving function software and Improved reusability.

CN119065638APending Publication Date: 2024-12-03BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310633778.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing low-code design platform cannot effectively develop autonomous driving function software, graphical programming methods cannot meet the high-performance needs of autonomous driving, and cannot compile, deploy and run the code of logical statements.

Method used

By abstracting the logical statement into a logical statement block with two inputs and one output, it provides a graphic expression design method and device for logical statements. Users can fill in the graphical interface with logical judgment input and run entity input to generate logical statement execution result output , supports graphical programming of statements such as if...else, switch...case, for loop and while.

Benefits of technology

It lowers the threshold for the development of autonomous driving function software, improves the reusability of autonomous driving function software, realizes the low-code development of autonomous driving function software, and can deploy the programmed code in the domain controller to run.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065638A_ABST
    Figure CN119065638A_ABST
Patent Text Reader

Abstract

The invention relates to a logic statement graphical expression design method and device and a related product. The method comprises the steps that a logic statement is abstracted into a logic statement block with two input ends and one output end according to a logic statement grammar rule; wherein two input ends are respectively a logical judgment input end and an operation entity input end, and one output end is a logical statement execution result output end. According to the logic statement graphical expression design method and device and the related product provided by the embodiment of the invention, the logic statement is abstracted to generate the logic statement block with the two input sections and one output end, so that the process of low-code development of automatic driving function software is promoted, the basis of low-code development of the automatic driving function software is provided, and the development efficiency of the automatic driving function software is improved. Therefore, the automatic driving development threshold is further reduced, and the reusability of automatic driving function software is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a method, device, program product, medium, and computer device for designing graphical expression of logical statements. Background Art

[0002] Low-code design platforms require less manual coding and enable rapid software application development. By using visual modeling in a graphical interface to assemble and configure applications, developers can skip all infrastructure and increase development speed. The main features of low-code development platforms are: providing an environment for visually defining the user interface (UI), workflow, and data model of an application, and adding handwritten code when necessary. Secondly, it provides a connector for the backend or service to handle automatic processing of data structures, storage, and retrieval. Finally, it provides an application lifecycle manager, an automated tool for building, debugging, deploying, and maintaining applications in testing, staging, and production. Among them, logical statements are the most basic statement units in C++ syntax, so basically all low-code design platforms implement their own graphical logical statements.

[0003] At present, one type of low-code design platform is graphical programming, such as Scratch. This graphical programming turns complex programming languages ​​into building blocks. Users do not need to type codes or recite any programming instructions. They only need to drag and connect the building blocks together to easily program, so as to quickly create animations, games, and interactive programs. It also contains a system of logical statement expressions to achieve some complex animation interactions. The other is a graphical modeling tool, such as Simulink, which is a graphical modeling tool based on MATLAB. After the introduction of Simulink, designers can focus more on design, and the steps from design to code are automatically completed. There are two ways to implement logic design in Simulink. One is to use Simulink components through S-function, and the other is to use graphical components.

[0004] Graphical programming is generally within the scope of children's programming. The logical statements it implements are only used for some simple animation and image operations to improve children's programming interest. For autonomous driving, there is a lack of performance constraints and it cannot meet the high-performance requirements of autonomous driving. It is impossible to compile the code combined with logical statements and deploy and run it in the domain controller to correctly execute the autonomous driving function logic. The data connection of graphical modeling tools is often a weak type connection, and the code execution performance generated by it cannot meet the requirements related to autonomous driving. At the same time, it cannot cover the definition of C++ logical statements, which limits the user's use. Summary of the invention

[0005] The purpose of the present invention is to provide a method, device, medium, and computer device for graphical expression design of logical statements in response to the defects of the prior art, so as to solve the problem that the low-code design platform in the prior art cannot develop low-code application software for autonomous driving.

[0006] To achieve the above object, the present invention provides a first aspect of a method for designing a graphical expression of a logic statement, comprising:

[0007] According to the grammatical rules of logical statements, logical statements are abstracted into logical statement blocks with two input terminals and one output terminal; wherein the two input terminals are respectively a logical judgment input terminal and an operation entity input terminal, and the one output terminal is a logical statement execution result output terminal.

[0008] Furthermore, when the logic statement block is if...else, the logic judgment input terminal is an expression function; and the running entity input terminal is an if function body and an else function body.

[0009] Furthermore, when the logic statement block is switch...case, the logic judgment input end is an expression function; and the running entity input end is a plurality of constant expression statement groups and a default statement group.

[0010] Further, when the logic statement block is a for loop, the logic judgment input end is a first expression function and a second expression function; and the running entity input end is a loop function body.

[0011] Furthermore, when the logic statement block is while, the logic judgment input end is an expression condition function; and the running entity input end is a loop function body.

[0012] Furthermore, the aforementioned method also includes: upon receiving an operation instruction for performing a preset operation on the logic statement block, displaying the internal element structure of the logic statement block.

[0013] A second aspect of the present invention provides a logical statement graphical expression design device, comprising:

[0014] The logic statement abstraction module is used to abstract the logic statement and generate a logic statement block with two input terminals and one output terminal; wherein the two input terminals are the logic judgment input terminal and the running entity input terminal, and the one output terminal is the logic statement execution result output terminal.

[0015] Furthermore, the logic statement graphical expression design device also includes:

[0016] The display module is used to display the internal element structure of the logic statement block when receiving an operation instruction to perform a preset operation on the logic statement block.

[0017] A third aspect of the present invention provides a computer program product, which, when executed on a computer, enables the computer to execute the method for graphically expressing and designing logical statements as described in any one of the first aspects.

[0018] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0019] A fifth aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any method described in the first aspect.

[0020] The graphical expression design method and device for logical statements, as well as related products, provided in the embodiments of the present invention, abstract logical statements to generate logical statement blocks with two input segments and one output end, thereby promoting the process of low-code development of autonomous driving functional software and providing a basis for low-code development of autonomous driving functional software, thereby further lowering the threshold for autonomous driving development and improving the reusability of autonomous driving functional software. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 One of the flow charts of the method for designing a graphical expression of a logical statement provided in the first embodiment of the present invention;

[0022] Figure 2 The second flowchart of the method for designing the graphical expression of logical statements provided in the first embodiment of the present invention;

[0023] Figure 3 One of the external structure schematic diagrams of the graphical expression design of the logical statement provided in the first embodiment of the present invention;

[0024] Figure 4 The second schematic diagram of the external structure of the graphical expression design of the logical statement provided in the first embodiment of the present invention;

[0025] Figure 5 One of the internal structure diagrams of the graphical expression design of the logic statement provided in the first embodiment of the present invention;

[0026] Figure 6 The second schematic diagram of the internal structure of the graphical expression design of the logic statement provided in the first embodiment of the present invention;

[0027] Figure 7The third schematic diagram of the internal structure of the graphical expression design of the logical statement provided in the first embodiment of the present invention;

[0028] Figure 8 A fourth schematic diagram of the internal structure of the graphical expression design of the logic statement provided in the first embodiment of the present invention;

[0029] Fig. 9 One of the schematic diagrams of the structure of the logical statement graphical expression design device provided in the first embodiment of the present invention;

[0030] Fig.10 The second structural diagram of the device for graphically expressing and designing logical statements provided in the first embodiment of the present invention;

[0031] Fig.11 A schematic diagram of the structure of a computer program product provided in Embodiment 3 of the present invention;

[0032] Fig.12 This is a schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0035] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0036] In the present invention, "module", "device", "system" and the like refer to related entities applied to computers, such as hardware, a combination of hardware and software, software or software in execution, etc. In detail, for example, an element can be, but is not limited to, a process, a processor, an object, an executable element, an execution thread, a program and / or a computer running on a processor. In addition, an application or script program running on a server, a server can all be an element. One or more elements can be in an execution process and / or thread, and an element can be localized on a computer and / or distributed between two or more computers, and can be operated by various computer-readable media. An element can also communicate through local and / or remote processes according to a signal with one or more data packets, for example, a signal from a data that interacts with another element in a local system, a distributed system, and / or a network on the Internet through a signal to interact with other systems.

[0037] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.

[0038] The graphical expression design method and device for logical statements, as well as related products, provided in the embodiments of the present invention, abstract logical statements to generate logical statement blocks with two input terminals and one output terminal. Users do not need to remember complex instructions and type codes, but only need to fill in relevant elements at the two input terminals of the corresponding logical statement block to implement the function of the logical statement. The design of the two input terminals and one output terminal of the logical statement block provides a basis for the low-code development of autonomous driving function software, promotes the process of low-code development of autonomous driving function software, thereby further lowering the threshold for autonomous driving development and improving the reusability of autonomous driving function software.

[0039] Embodiment 1

[0040] The logical statement graphical expression design method of the present application is applied to a low-code development platform for autonomous driving functional software. The development platform uses abstracted logical statement blocks for low-code graphical programming, and then automatically compiles the programmed code for deployment and operation in the autonomous driving domain controller.

[0041] Figure 1The flowchart of the method for designing a graphical expression of a logical statement provided in the first embodiment of the present invention is as follows: Figure 1 As shown, the method includes:

[0042] Step 110, abstracting the logic statement into a logic statement block with two input terminals and one output terminal according to the grammatical rules of the logic statement; wherein the two input terminals are respectively a logic judgment input terminal and an operation entity input terminal, and the one output terminal is a logic statement execution result output terminal.

[0043] Specifically, the elements of the logical statement are analyzed according to the grammatical rules of the logical statement, including the logical judgment input elements and the running entity input elements. The number of the logical judgment input elements and the running entity input elements in a logical statement block can be one or more, and there is no limitation here. During the process of graphical programming, the user only needs to fill in the elements of the logical statement to complete the function of the logical statement.

[0044] Preferably, in the embodiment of the present invention, Figure 2 The second flowchart of the method for designing a graphical expression of a logical statement provided in the first embodiment of the present invention is as follows: Figure 2 As shown, the method also includes:

[0045] Step 120: When an operation instruction for performing a preset operation on the logic statement block is received, the internal element structure of the logic statement block is displayed.

[0046] That is, if the user needs to understand the details of the internal element structure of the logic statement block, the user can perform corresponding operations on the logic statement block through preset operations to display the internal element structure of the logic statement block. The preset operations may be, for example, double-clicking, clicking to pop up a drop-down menu, touching or inputting instructions, etc. Technical personnel in this field can flexibly set them according to needs, and this application does not make strict limitations.

[0047] Among them, the logic statement is a logic statement in C language, including logic judgment statements and logic loop statements, such as switch...case statements, if statements, if...else if...else statements, while statements, do...while statements and for statements, etc. The logic judgment input terminal is used to input the logic judgment information for controlling the autonomous driving vehicle, the running entity input terminal is used to input the corresponding action information to be executed according to the judgment result, and the logic statement execution result output terminal is the output of the overall logic statement after executing the action information.

[0048] In a specific example, the elements filled in the logic judgment input terminal are: judging whether to follow the car or change lanes. The elements filled in the running entity input terminal are: lane changing algorithm and car following algorithm. When it is judged that the lane should be changed, the output terminal of the logic statement execution result is to execute the lane changing algorithm, and when it is judged that the car should be followed, the output terminal of the logic statement execution result is to execute the car following algorithm.

[0049] In one possible implementation, Figure 3 The external structure diagram of the graphical expression design of the logical statement provided in the first embodiment of the present invention is as follows: Figure 3 As shown, it includes: a logic statement block body, three pins extending from the logic statement block body, namely in0, in1 and out, wherein the logic judgment input terminal is in0, the running entity input terminal is in1, and the logic statement execution result output terminal is out. The user can fill in the elements of the logic statement through pins in0 and in1.

[0050] In a specific example, Figure 4 The second schematic diagram of the external structure of the graphical expression design of the logical statement provided in the first embodiment of the present invention is as follows: Figure 4 As shown in (a)(b)(c)(d), the logic statement block body is labeled according to the specific logic statement name, namely If-else, S / C, for and while. The user can select the required logic statement through the label.

[0051] In a possible implementation, when the logic statement block is if...else, the abstracted logic statement block includes an expression function at the logic judgment input end; an if function body and an else function body at the running entity input end. In the process of graphical programming, you only need to fill in the three elements of the expression function, the if function body and the else function body. By clicking on the if...else logic statement block body, you can view the internal structure details of the if...else logic statement graphical expression design. Figure 5 One of the internal structure diagrams of the graphical expression design of the logical statement provided in the first embodiment of the present invention, such as Figure 5 As shown, it includes expression function, if function body, else function body, pin 1 and pin 0. Pin 1 and pin 0 are both extended pins of the expression function. Pin 1 is connected to the if function body, and pin 0 is connected to the else function body. When the expression function determines that the output of pin 1 is executed, the if function body is executed; when the expression function determines that the output of pin 0 is executed, the else function body is executed. The expression function, if function body and else function body all support custom modeling of functions.

[0052] In a specific example, the expression function is whether the current autonomous driving should change lanes. The if function body is that the lane should be changed and the lane changing algorithm is executed. The else function body is that the lane should not be changed and the following algorithm is executed.

[0053] In another possible implementation, when the logic statement block is switch...case, the abstracted logic statement block includes an expression function at the logic judgment input end; multiple constant expression statement groups and a default statement group at the running entity input end, wherein the multiple constant expression statement groups can be configured according to the module parameters, and in the process of graphical programming, only the expression function, multiple constant expression statement groups and the default statement group need to be filled in. By clicking the switch...case logic statement block body, the internal structure details of the graphical expression design of the switch...case logic statement can be viewed. Figure 6 The second schematic diagram of the internal structure of the graphical expression design of the logical statement provided in the first embodiment of the present invention is as follows: Figure 6 As shown, it includes expression function, statement group 0 to statement group 7, statement group d, where statement group d is the default statement group, pins 0 to 7 and pin d, pins 0 to 7 and pin d are all extended pins of the expression function, pin 0 is connected to statement group 0, pin 1 is connected to statement group 1, and so on, each pin is connected to the corresponding statement group, when the expression function determines that the output of pin 0 is executed, when the determination result is the output of pin 1, statement group 1 is executed, and so on, when the determination result is not the output of pins 0 to 7, it is output from pin d and statement group d is executed. Expression functions, multiple constant expression statement groups and default statement groups all support custom modeling of functions.

[0054] In a specific example, the expression function is to determine which buttons the user has pressed on the car. When button 0 is pressed, statement group 0 is executed, and so on. If button 0 to 7 are not pressed, statement group d is executed.

[0055] In another possible implementation, when the logic statement block is for, the abstracted logic statement block includes the first expression function and the second expression function at the logic judgment input end, and the loop function body at the running entity input end. The first expression function is the loop condition function, and the second expression function is the loop variable increment function. In the process of graphical programming, only the first expression function, the second expression function and the loop function body need to be filled in, and the initial value of the for logic statement is not expressed in the graphics. By clicking on the for logic statement block body, you can view the internal structure details of the for logic statement graphical expression design. Figure 7 The third schematic diagram of the internal structure of the graphical expression design of the logical statement provided in the first embodiment of the present invention is as follows: Figure 7 As shown, it includes a first expression function, a second expression function, a loop function body, pin 0 and pin 1. Pin 0 and pin 1 are both extended pins of the first expression function. Pin 0 is connected to the output terminal out of the logic statement execution result, and pin 1 is connected to the input terminal of the loop function body. The output terminal of the loop function body is respectively connected to the output terminal out of the logic statement execution result and the input terminal of the second expression function, and the output terminal of the second expression function is connected to the input terminal of the first expression function. When the judgment result is pin 0, that is, the result is false, the loop ends. When the judgment result is true, the loop function body is executed. After the loop function body is executed, the loop variable is updated and sent to the first expression function. Each time the loop function body is executed once, the result is output from the output terminal out of the logic statement execution result. The first expression function, the second expression function and the loop function body all support custom modeling of functions.

[0056] In another possible implementation, when the logic statement block is while, the abstracted logic statement block includes an expression condition function at the logic judgment input end and a loop function body at the running entity input end. In the process of graphical programming, only the expression condition function and the loop function body need to be filled in. By clicking on the while logic statement block body, you can view the internal structure details of the while logic statement graphical expression design. Figure 8 The fourth schematic diagram of the internal structure of the graphical expression design of the logical statement provided in the first embodiment of the present invention is as follows: Figure 8 As shown, it includes an expression condition function, a loop function body, pin 0 and pin 1. Pin 0 and pin 1 are both extended pins of the expression condition function. Pin 0 is connected to the output terminal out of the logic statement execution result, and pin 1 is connected to the input terminal of the loop function body. The output terminal of the loop function body is respectively connected to the output terminal out of the logic statement execution result and the input terminal of the expression condition function. When the judgment result is pin 0, that is, the result is false, the loop ends. When the judgment result is true, the loop function body is executed. After the loop function body is executed, the result is sent to the expression condition function for re-judgment. Each time the loop function body is executed once, the result is output from the output terminal out of the logic statement execution result. Both the expression condition function and the loop function body support custom modeling of functions.

[0057] It should be noted that the same pin names in the above different schematics do not represent the same pins, but are only used to distinguish the results of logical judgment during logical judgment. The connection between the above elements is the flow of data between the elements, not a physical connection.

[0058] Embodiment 2

[0059] Embodiment 2 of the present invention provides a device for designing graphical expression of logic statements. Fig. 9 This is one of the structural schematic diagrams of the logical statement graphical expression design device provided in the first embodiment of the present invention. The device 200 includes: a logical statement abstract module 201.

[0060] The logic statement abstraction module 201 is used to abstract the logic statement and generate a logic statement block with two input terminals and one output terminal; wherein the two input terminals are a logic judgment input terminal and an operation entity input terminal, and the one output terminal is a logic statement execution result output terminal.

[0061] Preferably, Fig.10 The second schematic diagram of the structure of the logical statement graphical expression design device provided in the first embodiment of the present invention is as follows: Fig.10 As shown, the apparatus 200 may further include:

[0062] The display module 202 is used to display the internal element structure of the logic statement block when receiving an operation instruction to perform a preset operation on the logic statement block.

[0063] Among them, when the logic statement block is if...else, the logic judgment input end is the expression function; the running entity input end is the if function body and the else function body.

[0064] Among them, when the logic statement block is switch...case, the logic judgment input end is an expression function; the running entity input end is multiple constant expression statement groups and a default statement group.

[0065] Among them, when the logic statement block is a for loop, the logic judgment input end is the first expression function and the second expression function; the running entity input end is the loop function body.

[0066] Among them, when the logic statement block is while, the logic judgment input end is the expression condition function; the running entity input end is the loop function body.

[0067] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the logical statement abstract module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called by a processing element of the above device to perform the function of the above-mentioned determined module. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0068] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0069] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, Bluetooth, microwave, etc.) methods. The above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The above-mentioned available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0070] Embodiment 3

[0071] Embodiment 3 provides a computer program product including instructions, such as Fig.11 As shown, when the computer program product runs on a computer, the computer is enabled to execute any one of the logical statement graphical expression design methods provided in Example 1.

[0072] Embodiment 4

[0073] Embodiment 4 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program implements any one of the logical statement graphical expression design methods provided in Embodiment 1.

[0074] Embodiment 5

[0075] A fifth embodiment of the present invention provides a computer device, Fig.12 This is a schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. Fig.12 As shown, the present invention comprises a memory 300, a processor 400 and a computer program stored in the memory, and the processor executes the computer program to implement any one of the logical statement graphical expression design methods provided in the above embodiment 1.

[0076] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0077] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0078] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for designing graphical expression of logic statements, characterized in that: The method comprises: According to the grammatical rules of logical statements, logical statements are abstracted into logical statement blocks with two input terminals and one output terminal; wherein the two input terminals are respectively a logical judgment input terminal and an operation entity input terminal, and the one output terminal is a logical statement execution result output terminal.

2. The method for designing a graphical expression of a logic statement according to claim 1, characterized in that: When the logic statement block is if...else, the logic judgment input end is an expression function; the running entity input end is the if function body and the else function body.

3. The method for designing a graphical expression of a logic statement according to claim 1, characterized in that: When the logic statement block is switch...case, the logic judgment input end is an expression function; the running entity input end is a plurality of constant expression statement groups and a default statement group.

4. The method for designing a graphical expression of a logic statement according to claim 1, characterized in that: When the logic statement block is a for loop, the logic judgment input end is the first expression function and the second expression function; the running entity input end is the loop function body.

5. The method for designing a graphical expression of a logic statement according to claim 1, characterized in that: When the logic statement block is while, the logic judgment input end is an expression condition function; and the running entity input end is a loop function body.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When an operation instruction for performing a preset operation on the logic statement block is received, the internal element structure of the logic statement block is displayed.

7. A device for designing graphical expression of logic statements, characterized in that: The device comprises: The logic statement abstraction module is used to abstract the logic statement and generate a logic statement block with two input terminals and one output terminal; wherein the two input terminals are the logic judgment input terminal and the running entity input terminal, and the one output terminal is the logic statement execution result output terminal.

8. The device according to claim 7, characterized in that The device also includes: The display module is used to display the internal element structure of the logic statement block when receiving an operation instruction to perform a preset operation on the logic statement block.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claims 1 to 6 are implemented.

10. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method of claims 1-6.