Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

88 results about "Global variable" patented technology

In computer programming, a global variable is a variable with global scope, meaning that it is visible (hence accessible) throughout the program, unless shadowed. The set of all global variables is known as the global environment or global state. In compiled languages, global variables are generally static variables, whose extent (lifetime) is the entire runtime of the program, though in interpreted languages (including command-line interpreters), global variables are generally dynamically allocated when declared, since they are not known ahead of time.

Renaming global variables based on inferred types of variables in application program code

After a first pass of type inferencing for application program code, global variables that share a name but correspond to different types and thus also correspond to different memory locations are identified and renamed. A static analyzer evaluates identified variables and their inferred types from the first pass of type inferencing and, if two global variables having a same name but different types are identified based on multiple disparate types being inferred for one global variable, the global variables are distinguished via renaming of at least one of the global variables before a second pass of type inferencing and data flow analysis are performed for the program code having the renaming incorporated. Renaming a global variable(s) in the case of same-named but differently typed global variables distinguishes the instances of the global variable to provide for correct propagation of type information and values without ambiguity for improved data flow analysis.
Owner:VERACODE INC

Multi-thread concurrent management method and related device

The invention discloses a multi-thread concurrent management method and a related device. The method comprises the following steps: dividing a target global variable into a plurality of sub-variable regions; the target global variable is used for controlling multithreading to access target data, and each sub-variable region in the plurality of sub-variable regions comprises one or more flag bits; dividing the plurality of threads into a plurality of thread groups; the multiple threads are used for applying for the permission of reading the target data; authorizing the target thread in the target thread group to modify the flag bit in the target sub-variable region; one thread group in the plurality of thread groups is in one-to-one correspondence with one sub-variable region in the plurality of sub-variable regions; and if the target thread successfully modifies the flag bit, allowing the target thread to read the target data. The embodiment of the invention is applied to a scene of multi-thread concurrent CAS operation, and the success rate of the CAS operation can be improved.
Owner:HUAWEI TECH CO LTD

Abnormal sensitive efficient program slicing method and system based on high-order function abstract

The invention discloses an exception-sensitive efficient program slicing method and system based on a high-order function abstract, and relates to the technical field of program analysis. The method comprises the steps that program codes are received and preprocessed, a program call graph CG and a control flow graph CFG of each process are generated, and then nodes in the program call graph CG are subjected to inverse topology sorting; the method comprises the following steps: analyzing a program according to an inverse topological sequence called by a process, initializing all global variables in the process P being analyzed and a static slice table S of formal parameters of the process, putting temporary symbol variables of the variables into S, and initializing an abnormal information table TC of the process P being analyzed; according to the method, time and space consumption required by slicing can be remarkably reduced, the method is suitable for analyzing a large-scale program or a program with a complex function calling condition, meanwhile, the exception in the program is further analyzed, and the slicing precision of the program with the exception is higher than that of a traditional slicing algorithm.
Owner:NANJING UNIV OF POSTS & TELECOMM

Mine unmanned ground point elimination method based on ros system

PendingCN118550613Aeasy to distinguishAvoid being unable to avoid obstacles normallyData processing applicationsExecution paradigmsComputational scienceVoxel
The invention discloses a mine unmanned ground point elimination method based on a ros system, and the method comprises the steps: creating a python script, importing rospy, numba and numpy library files, and setting global variables which comprise the discrimination of voxel grids, the limitation of the width and height of a point cloud on a horizontal plane, the limitation of the maximum height of the point cloud in a vertical direction, and a height difference threshold value used when a ground point is removed; creating a point cloud subscription function, setting corresponding subscription parameters to read point cloud data, converting the point cloud data into a numpy array, and reserving points in the width and height range on the horizontal plane and the maximum height range in the vertical direction; creating a ground point rejection function to calculate a difference value between the maximum height and the minimum height of the point cloud in each voxel, and removing ground points in combination with a height difference threshold value; using Numba to accelerate the ground point rejection function, and setting corresponding acceleration parameters; and creating a point cloud publishing function, and setting corresponding publishing parameters to publish the remaining point clouds to a new ros topic. The method is low in complexity, further acceleration is carried out based on Numba, the method can be operated on underground equipment with limited performance and seamlessly accessed to a ros system, and the method has high potential commercial value.
Owner:JIANGSU ZHONGMEI MINING EQUIP +1

Scheduling process circulation engine method and configuration method thereof

The invention relates to the technical field of scheduling process arrangement, and particularly provides a scheduling process circulation engine method which comprises the following steps: S1, a starting node analyzes parameter data transmitted externally for preliminary analysis; s2, querying global variable data in the cache, if the global variable data exist, loading, and if the global variable data do not exist, continuing, and storing the parameter data in the step S1 into a global variable; s3, loading the data; s4, determining and obtaining strategy data configuration of the node; s5, recording an execution log of the scheme; s6, whether the scheme is executed or not is confirmed, if the scheme is executed, the scheme is not executed any more, and if the scheme is not executed, all node data are sequenced according to the sequence number sequence, and the data of each node is executed and processed; s7, recording an execution log of the scheme; s8, callback is executed, and if the service needing to be callback exists, the service is callback, and configured callback data are transmitted; and S9, ending the execution of the ending node. Compared with the prior art, the labor efficiency and the service docking efficiency of different platforms of each node can be greatly improved.
Owner:INSPUR TIANYUAN COMM INFORMATION SYST CO LTD

Method and system for automatic regression test of RPA component

The invention belongs to the technical field of RPA testing, and particularly relates to a method and system for automatic regression testing of an RPA component. The method comprises the following steps: S1, performing parameterized transmission on common configuration according to different execution environments, different client versions and different executors during RPA component regression; s2, building a general component test framework, filling the general component test framework with the to-be-tested component according to the function scene, and setting a judgment standard for judging whether component function judgment is passed or not and judging whether component return value type judgment is correct or not; s3, collecting test data, and uniformly summarizing the test data into a global variable; s4, storing the collected test data into a database, and performing data analysis; and S5, judging whether to send a message notification or not according to the initial configuration after the test data is stored in the database. The method has the characteristic that the automatic regression test of the component can be completed through the self-packaged test framework of the RPA tool without depending on a third-party tool.
Owner:浙江实在智能科技有限公司

System and method for automatic transfer of global variables between application screens

A method, performed by at least one processor of a computing device, for automatically transferring information from one screen to another, includes: outputting a first screen of a first application opened on a platform; outputting a second screen of a second application opened on the platform, while the first screen is output; determining whether a global variable is included for a user input field of the second screen; based on determining that the global variable is included for the user input field of the second screen, obtaining a value of the global variable from the first screen; and including the obtained value of the global variable in the user input field, of the outputted second screen, corresponding to the global variable.
Owner:RAKUTEN SYMPHONY INC

Formatted character string branch tampering back door detection method and system

The invention discloses a formatted character string branch tampering backdoor detection method and system, and belongs to the technical field of backdoor detection. The method comprises the following steps: firstly, calculating all global variable-constant comparison branch related information in a target program; then, in the dynamic analysis process, accumulating calculation contexts of the formatted character string vulnerabilities; then, when the branches are encountered, utilizing formatted character string vulnerabilities accumulated before in the form of tampering the branches; therefore, the branch is penetrated, and dynamic detection of the software backdoor protected by the branch is realized in the process of exploring the deep path state space. The method and the device are used for detecting formatted character string branch tampering backdoors existing in a software system.
Owner:NAT UNIV OF DEFENSE TECH

Intelligent contract compiling method and system, electronic equipment and target code running method

The embodiment of the invention provides an intelligent contract compiling method. The intelligent contract compiling method comprises the steps that a compiling front end determines a target persistent element in a target intelligent contract; the compiling front end declarates each target persistent element as a global variable and generates global variable record information; the compiling front end converts the target smart contract into a corresponding first intermediate code; the compiling front end generates operation environment initialization configuration information of the target smart contract and converts the operation environment initialization configuration information into a corresponding second intermediate code, the operation environment initialization configuration information records first configuration information and second configuration information, and the first configuration information is used for indicating that the memory space is divided into a stack area, a global variable area and a heap area; the second configuration information is used for indicating to copy the coded data of the global variable to the global variable area; the compiling front end converts the global variable record information into a corresponding third intermediate code; the compiling front end sends the intermediate code set to a compiling rear end; and the compiling rear end compiles the intermediate code set to generate a corresponding target code.
Owner:WUHAN TIANYU INFORMATION IND

Atomic violation detection method and device, electronic equipment and storage medium

This application provides a method, apparatus, electronic device, and storage medium for detecting atomicity violations, belonging to the field of software testing technology. The method includes: running the program under test using different input variables, identifying global variable access pairs covered during the execution of the program under test; for each global variable access pair, re-running the program under test using the corresponding input variables, and injecting feasible interrupt handlers between the global variable access pairs; if the interrupt handlers access the same global variable, recording the global variable access pair as a candidate global variable access pair; if the candidate global variable access pair simultaneously satisfies both spatial atomicity and temporal atomicity, then determining that the candidate global variable access pair has an atomicity violation risk. This application achieves efficient and accurate detection of atomicity violations by comprehensively covering variable access pairs, actively constructing interrupt scenarios, and establishing a spatiotemporal dual verification model.
Owner:BEIHANG UNIV +1

A method, system, and storage medium for generating partition constraints in PLC master control program code.

This invention discloses a method, system, and storage medium for generating PLC main control program code with partition constraints. The method parses natural language process flow documents to extract production line equipment and process sequence sequences; then, it calls a large language model to match the equipment library and generates a PLC interface signal table; subsequently, it filters the required function blocks for each process step through mixed retrieval and compiles them into a structured process file; based on this, a global variable registry is established, generating four-zone code for parameter declaration, preprocessing, function block calls, and state machine under a fixed program skeleton and partition constraints. Unknown references are marked with placeholders, which are then filled after semantic merging and verification; finally, the main control program is assembled and structural balancing, pin reference verification, and variable declaration verification are performed. This invention achieves end-to-end automatic generation from process flow documents to compilable PLC main control programs, ensuring complete code structure and correct references, and allowing reuse of existing enterprise equipment and function block libraries.
Owner:INSTITUTE OF IND ARTIFICIAL INTELLIGENCE CHINESE ACADEMY OF SCIENCES

Method for loading and executing process by script engine and script engine

The invention discloses a script engine and a method for loading and executing processes of the script engine, and the method comprises the following steps: a rule engine analyzes and compiles all process files in a working directory to generate a grammar rule check tree, a symbol table and a program table; the virtual machine loads the symbol table and the program table to a system and initializes and assigns variables in the global variable table; in the process of initializing the variables, independently initializing global symbols in the symbol table, adding the global symbols into a global variable table, and establishing an index for the global variable table; after variable initialization is completed, the virtual machine starts process management, and the process management is responsible for management of a program calling frame stack and a process local variable container. According to the invention, the flexibility and expansibility of field process implementation are improved.
Owner:YUNNAN KSEC INTELLIGENT EQUIP

Assembly line global variable use method and device and medium

The invention provides an assembly line global variable use method and device and a medium, and the method comprises the steps: receiving an assembly line creation instruction sent by a user after selecting a preset assembly line environment with an assembly line global variable based on a front-end page; creating a target assembly line; receiving a name of a target assembly line global variable introduced into the target assembly line script when a user edits a target assembly line; storing the script added with the target assembly line global variable name in the assembly line environment; and when an execution instruction of a user is received, replacing the name in the script with the value of the global variable of the target assembly line, and executing the target assembly line. According to the method, the device and the medium, the problem that in the prior art, when the assembly line global variable is used daily, the assembly line global variable can be set and used only by logging in the assembly line environment, and data security risks exist can be solved.
Owner:CHINA UNITED NETWORK COMM GRP CO LTD

A Dynamic Instruction Conversion Memory Access Optimization Method Based on Data Pre-Alignment

The present invention discloses a memory access optimization method for dynamic instruction conversion based on data pre-alignment. By pre-constructing a memory mapping table for the mapping relationship between the x86 segment base address and the ARM page table base address in the ARM system, a data information table is established when loading and executing an executable file in the dynamic instruction conversion mode, and the initialized and uninitialized global variables and static variables are obtained to establish a first variable table and a second variable table respectively. For statically allocated memory, instruction conversion and static pre-alignment of instructions and variables are completed according to the memory mapping table, the data information table, the first variable table and the second variable table. For dynamically allocated memory, instruction conversion and dynamic pre-alignment of instructions and variables are completed according to the memory mapping table. Finally, based on the address continuity of the memory space, related instructions are merged into batch data transfer instructions to further optimize memory access, realizing memory access optimization during instruction conversion.
Owner:北京麟卓信息科技有限公司

A large model complex embedded code generation method based on modular splitting and dependency graph guidance

The application discloses a large model complex embedded code generation method based on modularization splitting and dependency graph guidance, which comprises the following steps: firstly, a complex MATLAB source file is modularly split to form a series of sub-functions which are independent in function and clear in interface, the splitting criteria include that the number of code lines is controlled within 30-80 lines, the total number of interface parameters is 2-10, global variables are disabled, and the dimensions / meaning / properties of parameters are marked; then, a function call relation graph is constructed, Tarjan algorithm is adopted to identify the strongly connected components corresponding to the recursive call ring and reduce them to supernodes, and a directed acyclic graph is generated; then, the reduced graph is subjected to Kahn topological sorting according to the dependency weight, and a deterministic linear generation sequence which follows the principle of "the callee is prior to the caller" is generated; finally, the VSIPL C code of each sub-function is generated by sequentially calling a large language model, and the complete code is integrated. The application solves the problem of low accuracy in the conversion of complex MATLAB code into embedded code, and improves the code generation accuracy from 40% to more than 70%.
Owner:NANJING RES INST OF ELECTRONICS TECH

Verification method and device

The invention discloses a verification method and device, a verification parameter method is defined in a strategy class, the verification parameter method comprises method parameters, and the method parameters comprise a to-be-verified object, a field of the to-be-verified object and a first grouping list; an annotation of a target field is obtained through a reflection method, the name of the annotation of the target field is compared with the annotation class name maintained by the first global variable, and the target field is any one of the fields of the to-be-verified object; if the target annotation class name is hit, obtaining a second grouping list corresponding to the target annotation class name; if the first grouping list and the second grouping list have an intersection and the field value of the target field is determined not to be null, obtaining an instance of a corresponding strategy class according to the target annotation class name; and checking the target field by calling a checking method through the instance. In this way, verification of the request message body field level can be achieved based on the user-defined annotation created by the framework constructed by adopting reflection and strategy modes, personalized verification can be achieved, and the requirement for flexible verification is met.
Owner:AGRICULTURAL BANK OF CHINA

Program detection method and device and computing equipment

The embodiment of the invention provides a program detection method and device and computing equipment, and relates to the technical field of computers. The method comprises the steps of receiving a to-be-detected program, performing code detection on the program, and determining a statement where a global variable in the program is located; according to the library file and the statement where the global variable is located, the program is modified, and the modified program is obtained. According to the embodiment of the invention, the global variable is positioned through code detection, the global variable in a program does not need to be manually positioned, and the positioning efficiency and accuracy of the global variable can be improved. Moreover, the library file provided by the embodiment of the invention can provide a programming interface for realizing variable calculation operation, relation operation, logic operation or bit operation and other operation operations on the weak memory model, a memory barrier instruction does not need to be manually inserted, and the modification difficulty is reduced. Therefore, the program modification efficiency is improved. And through program modification, safe operation of the multi-thread program under the weak memory model is ensured.
Owner:HUAWEI TECH CO LTD

Analysis device and method for detecting variable vulnerability in software using machine learning model

Provided are a device and method for detecting a variable vulnerability in software using a machine learning (ML) model. The method performed by an analysis device includes receiving a source code of a program to be analyzed, replacing call functions, variable names, and call stack functions in an execution log generated during execution of the source code with certain identifiers (IDs) to preprocess the execution log, analyzing the preprocessed execution log through a pretrained first learning model to classify whether each pair of a global variable and a call function is at an initialization location, analyzing the preprocessed execution log through a pretrained second learning model to estimate a maximum value and a minimum value of the global variable, and determining whether the global variable is vulnerable on the basis of information output by the first learning model and information output by the second learning model.
Owner:EWHA UNIV IND COLLABORATION FOUND

Implementation method and device of converter software architecture and electronic equipment

The invention relates to the technical field of software architecture application, in particular to a converter software architecture implementation method, device and equipment and a computer readable storage medium. The method comprises the steps that software modules are divided according to hardware resource types, and each hardware resource corresponds to an independent code folder; all code operations related to the resource are limited in the folder; defining all user global variables in a single. C file, and declaring the global variables in a single. H file; a layered structure is adopted to realize a communication interface, and comprises a hardware layer, a protocol analysis layer and an application layer. User variables are configured through a structure table, and each variable supports attribute judgment and read-write operation by taking a group number and a sub-index number as a unique identifier. And a three-layer architecture of a hardware layer, a protocol analysis layer and an application layer is adopted, so that the flexibility and expandability of the system are improved. All global variables are declarated through a single. C file and a single. H file, and the problem of repeated definition of the variables is avoided.
Owner:HUANENG CLEAN ENERGY RES INST +2

Method for automatically realizing instruction addressing in pointer mode during inertial device calibration

The invention discloses a method for automatically realizing instruction addressing in a pointer mode during inertial device calibration, which comprises the following steps of: A, establishing a global array variable of an instruction set structure body, and defining the size of an array according to the number of actual instruction sets; b, initializing a global variable of the instruction set array defined in the step A so as to assign each element in the array; c, defining a specific performance function instance, that is, each instruction generally has a specific performance function to be executed; and D, automatically addressing the main body part of the performance function by adopting a pointer mode, circularly traversing the global variable array defined in the step A through for, automatically finding the corresponding performance function according to the one-to-one correspondence relationship in the step B, and finally automatically skipping to the performance function instance defined in the step C for execution. Through the method, the problems of low reliability, low real-time performance and low subsequent function expandability in the instruction interaction process between the inertial measurement unit and the PC terminal during data acquisition and performance calibration can be solved.
Owner:SHANGHAI HUAYI INFORMATION TECH CO LTD

Synchronous reaction component-oriented software architecture model correctness verification method

The invention discloses a software architecture model correctness verification method oriented to a synchronous reaction type component, and relates to the technical field of model verification, in the method, a source model in an XML format is analyzed by means of a Dom4j package, and model nodes, migration and global variable information are extracted, classified and stored. Then, a mapping rule from a software architecture model to PROMELA codes is designed, and conversion of a model structure, data and various elements is covered; security and activity verification attributes are defined by using an SPIN tool, and the branch accessibility of the control node is judged through a control variable and assertion. From the starting node, the model elements are sequentially converted into variables, channels and processes of PROMELA. And finally, generating a verification script, performing grammar check and attribute verification on the converted model, analyzing a verification report to obtain a result, and repeating operation if other attributes need to be verified. The method provides a systematic and effective means for ensuring the correctness of the software architecture model.
Owner:NORTHWESTERN POLYTECHNICAL UNIV

AUROSAR application layer architecture generation method, device and electronic device

ActiveCN117608529BSolve technical problems with heavy workloadSoftware designEnergy efficient computingSoftware engineeringSchema for Object-Oriented XML
The present invention provides a method, device and electronic device for generating an AUROSAR application layer architecture, the method comprising: dividing multiple functional submodules in an initial software architecture into corresponding software components to obtain a sub-information table; obtaining a software component interface information table based on the software component sub-information table, input and output information, variable data type and scheduling information; generating an Arxml file based on the software component interface information table and the Mapping information table; importing the Arxml file into an operating environment generation tool to generate an operating environment code; cutting off the global variable sharing between the software components of the initial software architecture, and compiling and integrating in combination with the operating environment code to obtain the AUROSAR application layer architecture. The present invention can solve the technical problem of large workload when the control system under the traditional software framework is converted to the AUTOSAR architecture.
Owner:DONGFENG COMML VEHICLE CO LTD

Compilation system and compilation execution method

To provide a compilation system capable of improving development efficiency by reducing the number of times of compilation.SOLUTION: A compilation system includes: a source code generation device that generates a source code for passing an argument to each function, receiving a return value for each function, and storing the return value for each function in a global variable for a monitor; a compiler that performs compilation in mutually different aspects on the source code to generate first and second executable files; an execution device that executes a program recorded in the first executable file to generate a first log file indicating a value of the global variable for each function, and executes a program recorded in the second executable file to generate a second log file indicating a value of the global variable for each function; and a result comparison device that compares the values of the global variable for each function indicated by the first and second log files to generate a result comparison file indicating the comparison result.SELECTED DRAWING: Figure 1
Owner:LAPIS TECH CO LTD

Methods and apparatus for data encapsulation for operating systems

Methods and apparatus for enhanced encapsulation of global data or variables of an operation system program (e.g., a real-time operating system (RTOS) program). In one exemplary embodiment, apparatus may encapsulate a plurality of program global data into a single type-definition for subsequent instantiation of the single type-definition as a single global variable for use global data accesses. Unlike traditional techniques where each global variable is distinct and instantiated individually, the various aspects of the present disclosure are directed to improved global variable management, performance and corruption detection by, inter alia, guaranteeing placement of global variables in the same order they are defined. Moreover, various aspects of the present disclosure are directed to enhancements with respect to verification and technical support.
Owner:LAMIE WILLIAM E

Method for acquiring debugging data of distributed application program

The embodiment of the invention discloses a method for acquiring debugging data of a distributed application program. The method comprises the following steps: calling an information capturing interface at a position where debugging information needs to be captured in a to-be-debugged application program, and compiling and linking to obtain a reorganized to-be-debugged application program; configuring the reorganized to-be-debugged application program by utilizing the running container component, loading and starting the reorganized to-be-debugged application program by utilizing the running container component, and loading debugging information or debugging files of the reorganized to-be-debugged application program by utilizing the running container component; when the reorganized to-be-debugged application program runs to the position where debugging information needs to be captured, interruption is generated through the debugging anchor point assembly, the interruption is responded through the running container assembly, address information of the interruption is positioned through the debugger, all local variables and all global variables of the context of a current statement are obtained according to the address information to be coded, and the debugging information is obtained; the operation container assembly is used for outputting coded information; and after the interruption is ended, the running container component restores running.
Owner:BEIJING SIMULATION CENT

RPA task execution retry optimization method based on machine learning

The invention discloses an RPA task execution retry optimization method based on machine learning, and relates to the technical field of machine learning, an external tool is not needed, a developer can directly complete debugging in a browser, front-end and back-end real-time communication is achieved through the WebSocket technology, the developer can monitor the execution state of each process link in real time, and the execution efficiency is improved. Therefore, fine-grained control is carried out on the process anytime and anywhere; besides, global variables and the capability of skipping to any link are modified in real time, so that a developer can quickly verify different logic branches under the condition of not restarting a process; most importantly, the system and a low-code designer are seamlessly integrated, and design, debugging and operation are simultaneously carried out in a unified interface, so that the switching cost in the development process is reduced, the whole development, test and debugging process is smoother, and the development efficiency and experience are remarkably improved.
Owner:YUNZHANGFANG NETWORK TECH CO LTD

Data-driven distributed fault detection method and device

The invention discloses a data-driven distributed fault detection method and a data-driven distributed fault detection device, which are used for analyzing and extracting more valuable information from two levels of global variables and local sub-block variables to implement distributed fault detection. The distributed fault detection method disclosed by the invention not only relates to the application of a brand new algorithm of manifold regularization slow feature analysis, but also provides a plurality of improved technical schemes related to variable quantum block division, neighborhood and reconstruction modes thereof, and whitening processing. In order to overcome the defect that feature analysis is only carried out on each sub-block after blocking is completed in the traditional method, the method provided by the invention inherits the modeling thought of mutual staggering from local sub-blocks to global sub-blocks and then to the local sub-blocks, and comprehensively represents the time sequence and spatial distribution features of learning data changes. Besides, the invention further designs a distributed fault detection device based on the same concept, and the central control module can execute the execution process of a manifold regularization slow feature analysis algorithm and also can autonomously divide variable sub-blocks.
Owner:NINGBO POLYTECHNIC

Method for controlling program processing logic

The embodiment of the invention relates to a method for controlling program processing logic, and the method comprises the steps: determining whether a preset file directory contains an identification file or not, so as to generate a determination result; based on the determination results, variable values of global variables in a running memory are determined, the running memory is used for loading the target program, and different determination results correspond to different variable values of the global variables; determining the processing logic of the target program based on the variable value of the global variable; and in response to starting of the target program, running the target program according to the processing logic. Therefore, the matching degree between program operation and object requirements can be improved, the iteration efficiency of the program can be improved, the complexity of control program processing logic is reduced, and the operation risk of the program is reduced.
Owner:SHENZHEN SECURITIES COMM

Method and apparatus for generating code-based module design document

This application provides a method and apparatus for generating code-based module design documents. The method includes: obtaining target code; deleting compiler directives and comments from the target code to obtain code text; identifying and extracting global variables and function structures from the code text; comparing the identifiers in each function structure in parallel with global variables, and comparing the identifiers before the left parenthesis in each function structure in parallel with the function names of other function structures, and associating the global variables and / or function names that match the comparison with the corresponding function structures, wherein the other function structures are the function structures outside the current function structure in each function structure; and generating and outputting a target module design document in a preset format based on each function structure and its associated global variables and / or function names. This achieves efficient and accurate generation of module design documents.
Owner:CASCO SIGNAL (BEIJING) CO LTD

Fault site backtracking method, device and readable storage medium based on firmware emulation

The present application relates to the technical field of firmware emulation, and particularly relates to a fault scene backtracking method and device based on firmware emulation and a readable storage medium, wherein the method comprises the following steps: when an execution command is received, it is determined whether the execution time of the execution command is located at a preset backtracking time point, and the backtracking time point is preset according to a preset period; when the execution time is located at the backtracking time point, a flash memory backtracking position, firmware global variables and host computer information corresponding to the backtracking time point are acquired; according to at least one of the flash memory backtracking position, the firmware global variables and the host computer information, backtracking information of the firmware is determined, so that when an error reporting signal is triggered, the firmware is backtracked to a fault occurrence scene located before the triggering time of the error reporting signal according to the backtracking information. The difficulty of troubleshooting in the firmware emulation process is reduced, and the problem of how to backtrack the data information of the firmware to the time point when the error occurs is solved.
Owner:YEESTOR MICROELECTRONICS CO LTD