A general safety check and processing method for satellite commands based on registration mechanism

Through the general instruction configuration table based on the registration mechanism, the problem of complexity in the traditional satellite instruction processing method of instruction number and parameter mapping relationship and high code coupling is solved, and the generalization and security check of instruction processing are realized, and the code reliability is improved. and scalability improves on-track modification efficiency.

CN114296797BActive Publication Date: 2024-11-22BEIJING INST OF CONTROL ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111435938.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-11-22
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

The traditional satellite instruction processing methods have problems such as complex command number and parameter mapping relationship, high code coupling, difficulty in maintaining, low memory modification efficiency, and wasted resources when the instruction validity detection is detected.

Method used

The general instruction configuration table based on the registration mechanism is adopted, and the instruction processing functions and security detection are uniformly processed through the instruction number index, variable addresses are automatically calculated, manual query and code modification are reduced, and instruction processing is realized universal and security checks are realized.

Benefits of technology

It improves the code reliability and scalability of instruction processing, reduces maintenance difficulty and resource waste, and improves on-track modification efficiency and flexibility of instruction processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114296797B_ABST
    Figure CN114296797B_ABST
Patent Text Reader

Abstract

The present invention relates to a satellite command general security inspection and processing method based on a registration mechanism. A general instruction configuration table is formed by extracting a common characteristic identifier of an instruction as an instruction template. Variable addresses, security detection functions, and instruction processing functions are all registered in the general instruction configuration table through addresses. The instruction processing logic is compatible with all instruction types and protocol templates, and one-click instruction processing is realized. The general configuration of the instruction detection function ensures that the instruction is correctly and effectively executed, and the code is easy to maintain and has good expansibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of aerospace embedded software, and in particular to a general safety inspection and processing method for satellite instructions based on a registration mechanism. Background Art

[0002] With the improvement of spacecraft control complexity and robustness and the continuous upgrading of fault strategy means, the number of various control indicators and flag parameters involved in software runtime control is becoming increasingly large. From a system perspective, it is hoped that more parameters can be modified on-orbit, but at the same time, the instruction processing logic is not expected to be too complex and cumbersome, affecting space and time. Complete instruction processing capabilities can make the system flexible and powerful, and are also a reflection of the completeness of fault contingency plans.

[0003] Traditional instruction processing methods are generally divided into direct instructions, memory modification instructions, and event-triggered instructions. Direct instructions mainly modify flag variables with limited status. Each variable is numbered. After receiving the instruction number, the satellite processes the corresponding variable according to the injection protocol; memory modification instructions are mainly for floating-point numbers. The address and content are injected to modify the specified floating-point number. Event-triggered instructions perform corresponding operations according to the instruction number. The traditional instruction processing method has the following design problems that need to be solved:

[0004] (1) The traditional method differentiates instructions and processes them by first identifying what the instruction is and then processing them accordingly. Variable modification instructions and event instruction processing are all implemented by logical statements. The mapping relationship and parsing processing of instruction numbers and parameters or events are all implemented by code or. The processing function of each instruction block contains a large number of instruction number identification statements and conditional branch statements, which are maintained in a decentralized manner. The instruction processing function is large in scale and has many branches, which is not conducive to checking the correctness of the code. Since the instruction number and processing code are closely related, the protocol processing and parameter control are highly coupled. Once the protocol changes, the instruction processing code needs to be modified again. The change has a large impact domain and is easy to miss. If the instruction processing function needs to be maintained on-orbit, the entire remote control instruction processing function needs to be maintained on-orbit from top to bottom.

[0005] (2) Memory modification instructions include an address and data content. With the improvement of computing accuracy, floating-point numbers have gradually developed from single precision to full double precision. Modifying a variable requires injecting a 4-byte address and an 8-byte variable content. Due to the limitation of the uplink channel instruction length, the 12-byte instruction length results in a limited number of variables that can be modified each time. The address needs to be manually queried. In addition, when an uncommon floating-point number needs to be modified on orbit, the instruction block needs to be temporarily prepared without ground verification, and the reliability and operation efficiency are very low.

[0006] (3) Since each instruction has validity and security checks, the traditional method is to write the validity check and processing of each instruction into the code, which wastes a lot of code space and has many branches. When adding, deleting or modifying instructions, the impact of the code changes is very large and easy to be missed, which is not conducive to collaborative development. Summary of the invention

[0007] The technical problem solved by the present invention is: to overcome the deficiencies of the prior art and provide a general satellite command security inspection and processing design method based on a registration mechanism, so as to ensure that the commands are correctly and effectively executed, and the codes are easy to maintain and have good scalability.

[0008] The technical solution of the present invention is: a general safety inspection and processing method for satellite instructions based on a registration mechanism, the method comprises the following steps:

[0009] S1. Establish a general instruction configuration table; the general instruction configuration table is a two-dimensional vector table, each line is an instruction block, and each instruction block includes an instruction number, an instruction block first address, an instruction processing function, and a parameter type;

[0010] S2, registering the instruction block first address and instruction processing function in the general instruction configuration table through the address;

[0011] S3, when receiving a general injection instruction, parse the injection instruction to obtain the instruction number id, internal sequence number ix, and injection content data; then proceed to step S4;

[0012] S4, index the instruction block corresponding to the instruction number id in the general instruction configuration table, and determine whether the instruction block contains an instruction processing function. If yes, proceed to step S5; otherwise, end;

[0013] S5. Extract the instruction processing function pointer *eventFunc corresponding to the idth instruction block in the general instruction configuration table, call the instruction processing function, execute the instruction processing function eventFunc, and end.

[0014] Preferably, the specific steps of executing the instruction processing function eventFunc in step S5 are as follows:

[0015] S5.1, determine whether the instruction processing function eventFunc contains a parameter modification function, if so, proceed to step S5.2, otherwise proceed to step S5.7;

[0016] S5.2, get the parameter type of the idth instruction group in the general instruction configuration table. If the parameter type is a four-byte integer, go to step S5.3; if the parameter type is a four-byte floating point type, go to step S5.4; if the parameter type is an 8-byte floating point type, go to step S5.5;

[0017] S5.3, take the first address Addr of the instruction block No. id in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with internal sequence number ix; go to step S5.5;

[0018] S5.4, extract the first address Addr of the idth instruction block in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with internal sequence number ix; go to step S5.5;

[0019] S5.5. If the variable address is a multiple of 4, FixAddr%4=0, modify the content of the address FixAddr to the injected content*FixAddr=data, otherwise, end;

[0020] S5.6, take the first address Addr of the instruction group of the idth item in the general instruction configuration table, calculate the address FixAddr=Addr+ix*8 of the variable with internal serial number ix, if the variable address is a multiple of 8 FixAddr%8=0, modify the content of the address FixAddr to the injected content*FixAddr=data, otherwise, end;

[0021] S5.7. Execute corresponding event operation according to internal sequence number ix.

[0022] Preferably, the following steps are also included before the step S5.5 is performed:

[0023] Judge the validity of the 32-bit floating point number. If the injected content data is an illegal 32-bit floating point number, proceed to step S5.5; otherwise, end.

[0024] Preferably, the following steps are also included before the step S5.6 is performed:

[0025] Judge the validity of the 64-bit floating point number. If the injected content data is an illegal 64-bit floating point number, go to step S5.6; otherwise, end.

[0026] Preferably, the idth instruction block in the general instruction configuration table also includes a registration detection function pointer *ckfunc of the instruction block, which is used to store the injection security check function pointer corresponding to the instruction block. Accordingly, the following steps are performed before executing step S5:

[0027] S4-5.1. If the detection function ckfunc is not empty, go to step S4-5.2, otherwise, end;

[0028] S4-5.2, in the function ckfunc process, determine whether the internal sequence number ix is ​​less than the maximum internal sequence number in the instruction block. If so, proceed to step S4-5.3, otherwise, end;

[0029] S4-5.3. Verify the modified content data according to the preset rules to determine whether the variable modified content data corresponding to the internal sequence number ix meets the preset rules. If so, proceed to step 5, otherwise, end.

[0030] Another technical solution of the present invention is: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and is characterized in that the above steps are implemented when the computer program is executed by a processor.

[0031] Another technical solution of the present invention is: an electronic device, comprising a memory and a processor, and a computer program stored in the memory and executable on the processor, wherein the above steps are implemented when the processor executes the computer program.

[0032] The advantages of the present invention compared with the prior art are:

[0033] (1) The present invention extracts common characteristic identifiers of instructions as instruction templates to form an instruction table and register variables and customize events in the instruction table to complete the generalization of instruction processing. The software only needs to arrange the structure according to the instruction sequence number, register the first address of the structure variable in the instruction table, centrally manage all injected and modified variables, and use unified logic to process the corresponding parameter modification instructions through events registered to the variables. No more branches are required to process any instructions separately. Only the sequence of structure variables needs to be compared with the protocol and the unified logic of event processing needs to be checked for code, so the code reliability is high. Event customization only needs to pass in a pointer. When the software version is upgraded, no code needs to be modified, and the event automatically customizes the first address in the instruction table again.

[0034] (2) The present invention automatically calculates the variable address through the function of customizing events. The variable address does not need to be injected when injecting instructions, and there is no need to manually query the variable address. The satellite only needs to automatically calculate the parameter address for the corresponding variable in the instruction table according to the parameter offset and the instruction sequence number. When the fixed parameter modification instruction with the corresponding sequence number is injected, the event processing logic will calculate the variable address according to the sequence number. The variable address does not need to be injected during injection. The corresponding variable can be modified by directly injecting the sequence number. The sequence number occupies 2 bytes, which is less than the memory address length of 4 bytes. The instruction occupies a small number of bytes, and more variables can be injected in the effective uplink bandwidth. After the software is upgraded, no matter how the variable address changes, the program will automatically calculate the address according to the sequence number and the new structure head address, so the ground test does not need to re-do the memory modification block to adapt to the new program;

[0035] (3) The present invention diversifies the customized event templates. Only a pointer needs to be passed in for the event. The instruction processing flow logic is compatible with all instruction types and protocol templates. When it is necessary to add variables or change the version upgrade, it will not affect the variable injection and use. No matter how the variable address changes, the serial number remains unchanged. The program will automatically calculate the address based on the serial number and the new structure head address. Therefore, the ground test does not need to re-do the memory modification block to adapt the new program. If on-orbit maintenance is required for instruction processing events or detection events, it is only necessary to inject the corresponding event function into the on-orbit maintenance area and modify the bound event address to the on-orbit maintenance address in the instruction table, thereby realizing one-click processing of instruction processing on-orbit maintenance.

[0036] (4) The present invention defines instruction templates and customizes instruction detection events, and generally configures instruction detection functions to ensure correct and effective execution of instructions. When important variables, such as gyroscopes and CMG selection flags, are modified, the modified contents must be verified according to given scheme requirements. The code is easy to maintain and has good scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The following is a flowchart of instruction processing according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0039] The present invention provides a satellite command general security inspection and processing method based on a registration mechanism, by extracting the common feature identifier of the command as the command template, forming a general command configuration table, the variable address, the security detection function, and the command processing function are all registered in the general command configuration table through the address, the command processing logic is compatible with all command types and protocol templates, and the command one-click processing is realized, and the general configuration of the command detection function is realized. The method specifically comprises the following steps:

[0040] S1. Establish a general instruction configuration table; the general instruction configuration table is a two-dimensional vector table, each line is an instruction block, and each instruction block includes an instruction number, an instruction block first address, an instruction processing function, and a parameter type;

[0041] S2, registering the instruction block first address and instruction processing function in the general instruction configuration table through the address;

[0042] S3, when receiving a general injection instruction, parse the injection instruction to obtain the instruction number id, internal sequence number ix, and injection content data; then proceed to step S4;

[0043] S4, index the instruction block corresponding to the instruction number id in the general instruction configuration table, and determine whether the instruction block contains an instruction processing function. If yes, proceed to step S5; otherwise, end;

[0044] S5. Extract the instruction processing function pointer *eventFunc corresponding to the idth instruction block in the general instruction configuration table, call the instruction processing function, execute the instruction processing function eventFunc, and end.

[0045] The specific steps to execute the instruction processing function eventFunc are as follows:

[0046] S5.1, determine whether the instruction processing function eventFunc contains a parameter modification function, if so, proceed to step S5.2, otherwise proceed to step S5.7;

[0047] S5.2, get the parameter type of the idth instruction group in the general instruction configuration table. If the parameter type is a four-byte integer, go to step S5.3; if the parameter type is a four-byte floating point type, go to step S5.4; if the parameter type is an 8-byte floating point type, go to step S5.5;

[0048] S5.3, take the first address Addr of the instruction block No. id in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with internal sequence number ix; go to step S5.5;

[0049] S5.4, extract the first address Addr of the idth instruction block in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with internal sequence number ix; go to step S5.5;

[0050] S5.5. If the variable address is a multiple of 4, FixAddr%4=0, modify the content of the address FixAddr to the injected content*FixAddr=data, otherwise, end;

[0051] S5.6, take the first address Addr of the instruction group of the idth item in the general instruction configuration table, calculate the address FixAddr=Addr+ix*8 of the variable with internal serial number ix, if the variable address is a multiple of 8 FixAddr%8=0, modify the content of the address FixAddr to the injected content*FixAddr=data, otherwise, end;

[0052] S5.7. Execute corresponding event operation according to internal sequence number ix.

[0053] Preferably, the following steps are also included before the step S5.5 is performed:

[0054] Judge the validity of the 32-bit floating point number. If the injected content data is an illegal 32-bit floating point number, proceed to step S5.5; otherwise, end.

[0055] Preferably, the following steps are also included before the step S5.6 is performed:

[0056] Judge the validity of the 64-bit floating point number. If the injected content data is an illegal 64-bit floating point number, go to step S5.6; otherwise, end.

[0057] Preferably, the idth instruction block in the general instruction configuration table also includes a registration detection function pointer *ckfunc of the instruction block, which is used to store the injection security check function pointer corresponding to the instruction block. Accordingly, the following steps are performed before executing step S5:

[0058] S4-5.1. If the detection function ckfunc is not empty, go to step S4-5.2, otherwise, end;

[0059] S4-5.2, in the function ckfunc process, determine whether the internal sequence number ix is ​​less than the maximum internal sequence number in the instruction block. If so, proceed to step S4-5.3, otherwise, end;

[0060] S4-5.3. Verify the modified content data according to the preset rules to determine whether the variable modified content data corresponding to the internal sequence number ix meets the preset rules. If so, proceed to step 5, otherwise, end.

[0061] Example:

[0062] The main principle of the present invention is to design a general instruction configuration table, set the instruction number, variable first address, trigger function, and persisted function as configurable items, and configure each instruction block in the table according to the attributes. When receiving the ground injection block number, internal sequence number, and instruction content, find the corresponding instruction block in the instruction configuration table according to the received block number, call the block detection function, and if the detection passes, call the trigger function, find the corresponding variable in the instruction block according to the secondary index internal sequence number, and complete the corresponding instruction processing, such as Figure 1 The method of the present invention comprises the following steps:

[0063] Step 1, initialize the general instruction configuration table, and go to step 2; the general instruction configuration table is a two-dimensional vector table, which can be organized into an array or linked list structure, such as Table 1. Each line is an instruction block, and each instruction block includes the following fields: 1. Instruction number, used to find the instruction block in the instruction configuration table, the number of the instruction block in the protocol; 2. The first address, the first address of the memory area of ​​the instruction block structure variable. When the instruction is an event trigger instruction, this configuration item is not applicable, and the reserved area address is filled in as a security guarantee; 3. Detection function, the injection security check function corresponding to the instruction block; 4. Parameter type, there are four-byte integer, four-byte floating point, 8-byte floating point, etc.; 5. Trigger function, the trigger function of the instruction block, if it is a parameter modification instruction, the internal sequence number is passed in to configure the processing function according to the type when configuring the table. For example, the offset used when calculating the variable address is different for 32-bit integers and 64-bit double-precision floating point numbers. If it is an event trigger instruction, only the internal sequence number is passed in;

[0064] Table 1 General instruction configuration table

[0065]

[0066]

[0067] Step 2: When injecting a command, unpack the received command number id, the command sequence number ix, and the command content data, and proceed to step 3;

[0068] Step 3, get the registration detection function pointer *ckfunc of the idth instruction group in the general instruction configuration table, if the detection function ckfunc is not empty, go to step 4, otherwise go to step 6;

[0069] Step 4, in the function ckfunc process, determine whether the internal sequence number ix is ​​less than the maximum internal sequence number in the instruction group. If so, proceed to step 5, otherwise proceed to step 16;

[0070] Step 5, verify the modified content data according to the given solution requirements, and determine whether the variable modified content data corresponding to the internal sequence number ix meets the solution requirements. If yes, proceed to step 6, otherwise proceed to step 16;

[0071] Step 6, get the registration detection function pointer *eventFunc of the idth instruction group in the general instruction configuration table, call the function, pass in the internal sequence number ix, modify the content data, and go to step 7;

[0072] Step 7, whether the trigger function eventFunc is a parameter modification function, if so, go to step 8, otherwise go to step 15;

[0073] Step 8, obtain the parameter type type of the idth instruction group in the general instruction configuration table, if the parameter type type=1, proceed to step 12;

[0074] Step 9, if parameter type type=2, go to step 11;

[0075] Step 10, if parameter type type=3, go to step 13;

[0076] Step 11, enter the 32-bit floating point number validity judgment, if the injected content data is not a 32-bit illegal floating point number, enter step 12;

[0077] Step 12, take the first address Addr of the instruction group of the idth item in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with the serial number ix, if the variable address is a multiple of 4 FixAddr%4=0, modify the content of the address FixAddr to the injected content*FixAddr=data, otherwise go to step 16;

[0078] Step 13, enter the 64-bit floating point number validity judgment, if the injected content data is not a 64-bit illegal floating point number, enter step 14;

[0079] Step 14, take the first address Addr of the instruction group of the idth item in the general instruction configuration table, calculate the address FixAddr=Addr+ix*8 of the variable with the serial number ix, if the variable address is a multiple of 8 FixAddr%8=0, modify the content of the address FixAddr to the injected content*FixAddr=data, otherwise go to step 16;

[0080] Step 15, execute the corresponding event operation according to the internal sequence number ix, and proceed to step 16;

[0081] Step 16, end.

[0082] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following is achieved: Figure 1 The steps of the method.

[0083] The present invention provides a terminal device, comprising a memory and a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following is achieved: Figure 1 The steps of the method.

[0084] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computationally usable program codes.

[0085] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, systems, and computer program products of the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or box, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or box. Figure 1 A device that specifies functions in one or more processes and / or one or more blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0088] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.

Claims

1. A general safety inspection and processing method for satellite commands based on a registration mechanism, characterized in that The steps include: S1. Establish a general instruction configuration table; the general instruction configuration table is a two-dimensional vector table, each line is an instruction block, and each instruction block includes an instruction number, an instruction block first address, an instruction processing function, and a parameter type; S2, registering the instruction block first address and instruction processing function in the general instruction configuration table through the address; S3. When receiving a general injection instruction, parse the injection instruction to obtain the instruction number id, internal sequence number ix, and injection content data; Go to step S4; S4, index the instruction block corresponding to the instruction number id in the general instruction configuration table, and determine whether the instruction block contains an instruction processing function. If yes, proceed to step S5; otherwise, end; S5. Extract the instruction processing function pointer corresponding to the idth instruction block in the general instruction configuration table *eventFunc, call the instruction processing function, execute the instruction processing function eventFunc, and end; The specific steps of executing the instruction processing function eventFunc in step S5 are as follows: S5.1, determine whether the instruction processing function eventFunc contains a parameter modification function, if so, proceed to step S5.2, otherwise proceed to step S5.7; S5.2, get the parameter type of the idth instruction group in the general instruction configuration table. If the parameter type is a four-byte integer, go to step S5.3; if the parameter type is a four-byte floating point type, go to step S5.4; if the parameter type is an 8-byte floating point type, go to step S5.5; S5.3, take the first address Addr of the instruction block No. id in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with internal sequence number ix; go to step S5.5; S5.4, extract the first address Addr of the instruction block No. id in the general instruction configuration table, calculate the address FixAddr=Addr+ix*4 of the variable with internal sequence number ix; go to step S5.5; S5.

5. If the variable address is a multiple of 4, modify the content of the address FixAddr to the injected content *FixAddr = data, otherwise, end; S5.6, take the first address Addr of the instruction group of the idth item in the general instruction configuration table, calculate the address FixAddr = Addr + ix * 8 of the variable with internal sequence number ix, if the variable address is a multiple of 8, modify the content of the address FixAddr to the injected content * FixAddr = data, otherwise, end; S5.

7. Execute corresponding event operation according to internal sequence number ix.

2. The method for general security inspection and processing of satellite commands based on a registration mechanism according to claim 1, characterized in that: Before the step S5.5 is executed, the following steps are also included: Judge the validity of the 32-bit floating point number. If the injected content data is an illegal 32-bit floating point number, proceed to step S5.5; otherwise, end.

3. The method for general security inspection and processing of satellite commands based on a registration mechanism according to claim 1, characterized in that: Before the step S5.6 is executed, the following steps are also included: Judge the validity of the 64-bit floating point number. If the injected content data is an illegal 64-bit floating point number, go to step S5.6; otherwise, end.

4. A satellite command general security check and processing method based on a registration mechanism according to claim 1, characterized in that The idth instruction block in the general instruction configuration table also includes a registration detection function pointer *ckfunc of the instruction block, which is used to store the injection security check function pointer corresponding to the instruction block. Accordingly, the following steps are performed before executing step S5: S4-5.

1. If the detection function ckfunc is not empty, go to step S4-5.2, otherwise, end; S4-5.2, in the function ckfunc process, determine whether the internal sequence number ix is ​​less than the maximum internal sequence number in the instruction block. If so, proceed to step S4-5.3, otherwise, end; S4-5.

3. Verify the modified content data according to the preset rules to determine whether the variable modified content data corresponding to the internal sequence number ix meets the preset rules. If so, proceed to step 5, otherwise, end.

5. A computer-readable storage medium storing a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

6. An electronic device comprising a memory and a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.