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

24 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

Hot Fix Method, Device, Equipment and Storage Medium

The embodiments of this specification provide a hot fix method, device, equipment and storage medium. The method includes: after modifying an anonymous inner class fragment in the source code of an application, obtaining the bytecode file of the outer class where the modified anonymous inner class is located; wherein, the constructor of the modified anonymous inner class has redundant parameters to be deleted; obtaining the parameter loading instructions of the constructor and the local variable table of the enclosing method of the anonymous inner class from the bytecode file; according to the parameter values of the parameter loading instructions, looking up the parameter names of each parameter of the constructor in the local variable table; positioning and deleting the redundant parameters in the parameter array of the constructor according to the parameter names of the redundant parameters and the parameter names of each parameter of the constructor; generating a patch package for the application based on the constructor after deletion, and using the patch package to perform hot fix on the application. Through this embodiment, the success rate of hot fix for the application can be improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

A method for batch setting of game resources and an electronic device

The present invention provides a method for batch setting of game resources and an electronic device. The method includes opening a graphical interface and selecting a label type. If the interaction option is not in the interface element protection period, configure local variables corresponding to the interface elements. Click on the interaction option. If the interaction option is a configuration option, select a resource rule type. Set the game configuration path, refresh the unconfigured information, and the game configuration path corresponds to the label type. Select the game resource type, and read the current rule corresponding to the game configuration path. According to the current rule, batch set the rules of all sub-configuration items under the game resource type. The above method supports multiple game resource types. Batch setting can avoid missing the setting of one or several game resources, and set unified sub-configuration item rules for the same type of game resources, thereby improving the performance and stability of the game and reducing the development burden on developers.
Owner:GUANGZHOU AIYOU INFORMATION TECH

Interface calling test method and system, computer equipment and readable storage medium

PendingCN120523735AError detection/correctionLocal variableSoftware engineering
The invention discloses an interface calling test method and system, computer equipment and a readable storage medium, and relates to the technical field of interface calling test. The method comprises: determining whether a target application satisfies a first preset condition; the target application is an application to which the tested interface belongs. And in response to the condition that the target application meets the first preset condition, determining whether the called method in the target application is interrupted or not. And in response to the situation that the called method in the target application is not interrupted, monitoring the calling condition of each sub-method in the execution process of the called method in the target application. And in response to any sub-method calling abnormity in the execution process of the called method in the target application, obtaining a local variable before executing the code line number causing the abnormity in the sub-method with the calling abnormity, and persistently storing the local variable in the abnormal sub-method before the abnormal code line number is executed in the server, so as to retain the test progress at the position where the abnormal code line number is located.
Owner:CHINA UNITED NETWORK COMM GRP CO LTD

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

Code compilation method, device and electronic equipment

ActiveCN114879975BCode compilationLocal variableTerm memory
An embodiment of the present invention provides a code compilation method, device, and electronic device. The method includes: obtaining high-level language code written in a high-level language for implementing a target function; if the function attributes of the target function include a preset target attribute, compiling the high-level language code into a first assembly code for implementing the target function, wherein the first assembly code does not include code for controlling the stacking of a target register, and the target register is a register specified in the first assembly code for storing local variables in the target function. This effectively reduces the amount of data that needs to be written to the stack, reduces stack space usage, avoids the use of external low-speed memory to expand stack space, and improves the execution efficiency of functions during program execution.
Owner:NEW H3C SEMICON TECH CO LTD

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

Software key class identification method, equipment and medium

PendingCN119987737ACode compilationCreation/generation of source codeSoftware networkLocal variable
The invention discloses a software key class identification method and device and a medium, and relates to the field of software developing.The method comprises the steps that various software elements in software source codes and coupling types among the elements are analyzed; the software comprises element classes, interfaces, attributes, methods and local variables; the coupling type comprises an inheritance relationship between classes, an implementation relationship between the classes and interfaces, a parameter relationship, a global variable relationship, a local variable relationship, a return type relationship, an instantiation relationship, an attribute access relationship and a calling relationship between methods; constructing a class coupling network according to various software elements and coupling types among the elements; constructing a gravitational entropy index according to the class coupling network, and calculating gravitational entropy index values of all class nodes in the class coupling network; sorting all class nodes according to the gravitational entropy index values to generate a class node sequence; and based on the class node sequence, identifying the software key class, and according to the application, the software network can be comprehensively constructed and the software key class can be accurately identified.
Owner:ZHEJIANG GONGSHANG UNIVERSITY

Dynamic analysis instrumentation debugging method and computer application program

The invention discloses a dynamic analysis instrumentation debugging method and a computer application program. The method comprises the following steps: analyzing DWARF mode information of a binary file of a to-be-instrumented analysis point, obtaining associated information of an instruction block and a source code file line number, matching an instrumented code line in a source code, collecting a corresponding program counter for accurate dynamic instrumentation, and collecting the calling condition of a function specified line in the source code by observing the calling condition of the to-be-instrumented analysis point. And obtaining a mapping table of local variable symbols and memory addresses and a mapping table of global variable symbols and memory addresses of the instrumented point function through DWARF debugging information of the binary file, and obtaining local variable and global variable information of the current analysis point to be instrumented. In this way, dynamic instrumentation can be carried out on any line of the code, information of all local variables and global variables stored in the stack of the current function when the line of code is executed can be collected, related information of current program running can be well known, and debugging is greatly helped.
Owner:KYLIN CORP

Controller model matrix control script construction method and controller model matrix control method

PendingCN120143622AAdaptive controlOnline modelLocal variable
The invention relates to the technical field of predictive control, and discloses a controller model matrix control script construction method and a controller model matrix control method, comprising the following steps: obtaining a model class of a controller, and generating a model interface of the controller; mapping each sub-model of the controller to a local variable of a preset script framework; acquiring a change rule of each sub-model of the controller; and compiling the change rule and the initial framework, and constructing to obtain a controller model matrix control script. According to the method, the model can be modified on line according to the predefined rule, an effective means is provided to realize that the controller model can be adjusted in time aiming at the current object characteristic, the control requirement is met, and the control performance is improved. Parameters of each sub-model are dynamically modified by controlling model scripts executed before the calculation control effect, and flexible configuration and visual management of the parameters are realized in combination with script modification factors, so that the functional requirements of online model adjustment are met.
Owner:CHINA PETROLEUM & CHEMICAL CORP +1

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

Method for setting up CVD reactor

The invention relates to a method for predicting a change in a value ([lambda] i) of a layer characteristic or a local variable on a support location (5 ') on which a layer is deposited on a substrate (7). If the independent processing parameter (qi) of one bearing position (5 ') varies, the value of the independent parameter (qi based on the bearing position (5') varies, and the value (lambda i) at the other bearing position (5 ') also varies. The method suggests depositing a starting layer, i.e. Formula (I), with independent starting parameters, and depositing a test layer, i.e. Formula (I), with different test parameters therefrom. The sensitivity matrix (Si, j) can be formed from determined starting values, formulae (II), (II) and test values, formulae (III), (III), the elements of which represent, respectively, the effect of the variation of each individual parameter (qI) on each value ([lambda] i) of the layer characteristic or local variable. A correction parameter ([delta] qi) can also be calculated by reversing a sensitivity matrix (Si, j) in such a way that an independent parameter (q) is preset and a preset target value is achieved by means of these independent parameters, i.e. Formulae (IV), (IV), # imgabs0 #
Owner:AIXTRON AG

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