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

15 results about "Local variable" patented technology

In computer science, a local variable is a variable that is given local scope. Local variable references in the function or block in which it is declared override the same variable name in the larger scope. In programming languages with only two levels of visibility, local variables are contrasted with global variables. On the other hand, many ALGOL-derived languages allow any number of nested levels of visibility, with private variables, functions, constants and types hidden within them, either by nested blocks or nested functions. Local variables are fundamental to procedural programming, and more generally modular programming: variables of local scope are used to avoid issues with side-effects that can occur with global variables.

Register resource allocation method, computer equipment, readable storage medium and program product

The invention relates to a register resource allocation method, computer equipment, a readable storage medium and a program product. The method comprises the following steps: constructing a function group through a calling relationship between functions, wherein the function group comprises a coroutine kernel function and at least one coroutine subfunction; creating a resource record table corresponding to the function group, wherein the resource record table is used for recording register resources allocated to coroutine kernel functions and / or coroutine sub-functions in the function group; and carrying out register allocation on the coroutine kernel function and the coroutine sub-function in the function group based on the resource record table. By adopting the method, the requirements of local variable register resource isolation and shared variable register resource consistency in a collaborative mode can be met, so that the parallel computing efficiency is improved.
Owner:SHANGHAI BIREN TECH CO LTD

Converting data from an optimized format to a target format

PCT designated stageWO2025235246A1Decompilation/disassemblyProgram loading/initiatingData setLocal variable
Techniques are disclosed for converting a dataset from an optimized format to a target format. The system determines a hierarchy of types that are included within the dataset. Based on the hierarchy of types, the system identifies occurrences of the same method in the dataset. The same name is assigned to occurrences of the same method. Optimized opcodes included in the bytecode instructions of methods are translated into target opcodes. For each method, the system simulates executing the target opcodes that replace the optimized opcodes in the method to determine if the target opcodes affect the configuration of local variables differently than the optimized opcodes. Based on simulating the execution of the target opcodes, the system alters local variable references in the method to reflect the differing configurations of local variables that result from replacing the optimized opcodes with the target opcodes.
Owner:ORACLE INT CORP

Function block calling methods, devices, equipment and media of industrial control configuration software

ActiveCN116009994BSolve storage problemssolve functionLocal variableSoftware engineering
This application discloses a method, apparatus, device, and storage medium for calling function blocks in industrial control configuration software, relating to the field of industrial control. The method includes: storing the addresses of local variables of a target function block in the industrial control configuration software using a target structure based on preset storage rules, thereby completing the storage of the target function block; obtaining the structure variable corresponding to the target function block and writing values ​​to the structure variable based on configuration logic; converting the target function block into C language to obtain a corresponding .c file, and calling C functions in the .c file so that the .c file generates a controller executable file through a compilation module, and using the controller executable file to implement the industrial controller's call to the target function block, thereby completing the corresponding industrial control process. Therefore, this application solves the problems of function block storage and function block calling during the conversion of IEC logic into C language.
Owner:HANGZHOU HOLLYSYS AUTOMATION

Method and apparatus for generating unit test code

PendingCN122507629AControl flowLocal variable
A method and apparatus for generating unit test code are provided. The method includes determining one or more assignment expressions and conditional expressions in a control flow of a function under test by traversing each expression of the control flow, wherein a variable in the conditional expression is associated with at least one of the one or more assignment expressions; eliminating the local variable in the conditional expression based on the at least one assignment expression; and generating the unit test code corresponding to the function under test based on the conditional expression in which the local variable is eliminated.
Owner:SAMSUNG SEMICON CHINA RES & DEV +1

Aero-engine compiler fuzz testing method and system based on large language model

This invention discloses a fuzzy testing method and system for aero-engine compilers based on a large language model. In the mutation hint generation stage, a seed program library is constructed using embedded programs with various structures and compiler test suite programs. Mutation operators are selected through diversified guidance strategies, and mutation hints are constructed based on hint templates. In the test generation stage, variant programs with complex data and control flows are generated using the large language model to enhance compiler test coverage. Test outputs are inserted into the program to monitor global and local variables, enabling the program to effectively detect the most harmful silent compilation errors. Furthermore, a front-end error feedback strategy is designed to improve the effectiveness of test programs generated by the large language model. In the differential testing stage, random differential testing and testing under different optimization levels are combined to detect back-end defects in the compiler. This invention can improve compiler test coverage and detect silent compilation errors.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Stack space allocation method and apparatus, electronic device, and readable storage medium

ActiveCN116991415BLocal variableTerm memory
Embodiments of the present application provide a stack space allocation method and device, electronic equipment and a readable storage medium. The method comprises: obtaining a to-be-processed function containing local variables in a to-be-compiled program during the compilation of the to-be-compiled program; determining a target alignment value of the to-be-processed function based on the respective alignment attribute values of the local variables in the to-be-processed function; the target alignment value is not less than the minimum value of the respective alignment attribute values of the local variables; allocating the respective target memory areas of the local variables in the to-be-processed function based on the target alignment value, and determining the stack space of the to-be-processed function based on the respective target memory areas of the local variables; the starting address of the target memory area corresponds to an integer multiple of the target alignment value; and responding to the access operation of the to-be-processed function according to the stack space of the to-be-processed function. The execution efficiency of the to-be-processed function is improved to a certain extent.
Owner:LOONGSON TECH CORP

Register resource allocation method, computer device, readable storage medium and program product

The application relates to a register resource allocation method, computer equipment, a readable storage medium and a program product. The method comprises the following steps: constructing a function group through a calling relationship between functions, the function group comprising a coroutine kernel function and at least one coroutine sub-function; creating a resource record table corresponding to the function group, the resource record table being used for recording register resources allocated for the coroutine kernel function and / or the coroutine sub-function in the function group; and performing register allocation for the coroutine kernel function and the coroutine sub-function in the function group based on the resource record table. The method can meet the demand that local variable register resources are isolated and shared variable register resources are consistent in a cooperative mode, thereby improving parallel computing efficiency.
Owner:SHANGHAI BIREN TECH CO LTD

A method for accelerating Scloud+ algorithm based on multi-thread matrix multiplication

A method for accelerating Scloud+ algorithm based on multi-thread matrix multiplication. S1, a coarse-grained parallel architecture is constructed; S2, the AES-128 encryption module of the matrix A generation link in Scloud+.KEM is optimized by GPU native; S3, a local variable storage reuse strategy is adopted, and the local matrix variables with non-overlapping life cycle are stored in the storage space; S4, a pre-computation and persistence mechanism is introduced, and the pre-computation of the index data required for the generation of the matrix A is completed in the program initialization stage; S5, instruction level deep optimization; S6, a warp level fine-grained synchronization mechanism is constructed; S7, a double-thread cooperation fine-grained parallel implementation based on the coarse-grained architecture. Through the multi-dimensional collaborative innovation of architecture, memory hierarchy and instruction set, the computing, storage and communication bottlenecks of the post-quantum cryptography algorithm Scloud+ on the general parallel computing architecture are systematically solved.
Owner:NANJING UNIV OF POSTS & TELECOMM

A method and system for recording table data modification logs based on Uliweb

The application discloses a kind of table data modification log recording method and system based on Uliweb, it is related to software technical field, the method includes: when user request reaches server, thread processing middleware carries out pre-processing to user request, user information in user request is recorded to local variable;Server processes the user request, obtains data change information;According to the type of data change information, different request instructions are sent, and data change information is used as instruction parameter;Code application program receives the request instruction by instruction distributor, parses instruction parameter, obtains the data change information;Read the user information in the local variable, and record the user information and the data change information to log file.Solve the technical problem that prior art cannot record or is inconvenient to record data change log, the degree of invasion to code is high, and the difficulty of analysis is big, cannot be used as the basis of audit.
Owner:CHINA CONSTRUCTION BANK +1

Hot-update abstract syntax tree memory mapping dynamic correction method and device, equipment, medium and product

PendingCN121957648AEnsure adaptabilityAvoid memory reallocation overheadVersion controlCode compilationLocal variableAlgorithm
The invention provides a hot-update abstract syntax tree memory mapping dynamic correction method and device, and the method comprises the steps: obtaining an abstract syntax tree of a target program, generating the identification information of each node, determining the node associated with a local variable in the abstract syntax tree as an associated node, and storing the associated node in the target program; establishing mapping between identification information of the abstract syntax tree and memory offset to obtain a memory mapping table, when the abstract syntax tree is changed due to hot update, identifying change nodes and types, and if the change is attribute change, keeping the memory offset and only updating the version identification; and if the change is the structure change, calculating the structural similarity of the nodes before and after the change, and if the similarity is greater than or equal to a preset threshold, multiplexing the original offset, otherwise, redistributing the offset and updating the mapping table. Therefore, incremental efficient correction of memory mapping is realized by dynamically evaluating the structural similarity of the abstract syntax tree nodes and intelligently multiplexing or redistributing the memory offset during hot update, so that the hot update speed is increased, and the memory overhead is reduced.
Owner:CHINA MOBILE FINANCIAL TECHNOLOGY CO LTD +1

Dynamic analysis and debugging method of plug-in and computer application program

Dynamic analysis of the method and computer application program of the debugging method of the debugging method. By analyzing the DWARF debugging information of the binary file to be inserted, the association information of the instruction block and the source code file line number is obtained, the corresponding program counter is matched, the corresponding program counter is collected, the call condition of the function specified line in the source code is collected, and the call condition of the function specified line in the source code is collected. The local variable symbol and the memory address mapping table of the function to be inserted are obtained by the DWARF debugging information of the binary file, and the global variable symbol and the memory address mapping table are obtained. The local variable, global variable information of the current to-be-inserted analysis point is obtained. Thus, dynamic insertion can be performed at any line of the code, and all local variables and global variables saved in the stack of the current function during the execution of the line of code can be collected, and the relevant information of the current program running can be better understood, which is helpful for debugging.
Owner:KYLIN CORP

Method and device for effectively transmitting thread local variables between Java threads

The invention discloses a method and a device for effectively transmitting thread local variables among Java threads, and relates to the technical field of Java programming, the method comprises the following steps: creating a Transferable Thread Local class inherited from Thread Local, and storing a Thread Local key value pair of a current thread to a global storage area THREADLOCALMAP by a method of rewriting set () and live (); creating a Transferable RunnableMaker class, wherein a make () method of the Transferable RunnableMaker class captures a snapshot context of the global storage area in an execution thread; and when the target thread is started, the key value pair in the snapshot is injected into the Thread Local of the target thread through a contextTransfer () method. When the thread pool is used, the local variable of the main thread can be effectively transmitted to the sub-thread.
Owner:KAITAIMING BEIJING TECH

Variable management method based on zero code platform

PendingCN121300767AVisual/graphical programmingLocal variableAlgorithm
The invention relates to a variable management method based on a zero-code platform, which belongs to the technical field of zero-code platforms, and comprises the following steps of: 1, when an operation of dragging a component to a canvas occurs, analyzing JSON Schema configuration of the component, generating a dynamic variable template containing a predefined field and an extensible slot, generating an internal state variable and a user-defined variable; 2, uniformly storing internal state variables and user-defined variables in a variable agent layer, dividing the variables into local variables, server-side variables, component variables and event variables, and uniformly hosting the internal state variables and the user-defined variables of the component by the variable agent layer; 3, the variables are filed in a variable structure tree mode, the variable structure tree is displayed in a visual editor, and the function of modifying the field type and the hierarchical relation is provided in the variable structure tree; and 4, performing variable event-driven data circulation.
Owner:GUANGDONG NANGUO PHARM CO LTD +1

Data processing method and device, equipment and storage medium

Embodiments of the invention provide a data processing method and apparatus, a device and a storage medium. The method comprises the steps of obtaining a source file for generating a special effect; adding the source file in an action range of an external function, wherein the source file can call a local variable of the external function in a process of quoting the source file in an external environment of the external function; and stopping a set application programming interface API in the local variable of the external function to obtain target data. According to the technical scheme, the security of special effect creation and application after the special effect script is opened is improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Converting Data From An Optimized Format To A Target Format

Techniques are disclosed for converting a dataset from an optimized format to a target format. The system determines a hierarchy of types that are included within the dataset. Based on the hierarchy of types, the system identifies occurrences of the same method in the dataset. The same name is assigned to occurrences of the same method. Optimized opcodes included in the bytecode instructions of methods are translated into target opcodes. For each method, the system simulates executing the target opcodes that replace the optimized opcodes in the method to determine if the target opcodes affect the configuration of local variables differently than the optimized opcodes. Based on simulating the execution of the target opcodes, the system alters local variable references in the method to reflect the differing configurations of local variables that result from replacing the optimized opcodes with the target opcodes.
Owner:ORACLE INT CORP