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

29 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.

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

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

PendingCN122173404AError detection/correctionInterrupt handlerVerification
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

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

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

Unified operation and maintenance method and device for heterogeneous infrastructure

The invention provides a unified operation and maintenance method and device for heterogeneous infrastructures, and belongs to the technical field of computer software, and the method comprises the following steps: obtaining a declarative YAML configuration file defined with resource pool information, global variables and application configuration information, and analyzing the configuration file to obtain a structured configuration object; identifying target resource types contained in application information, global variables and resource pool information in the structured configuration object; matching a corresponding target application template from a predefined template library, and rendering the target application template based on the global variable to generate an execution instruction; based on the execution instruction, generating an independent Ansible execution file for each application; and running the Ansible execution file to complete application installation, and after the application installation is completed, realizing state sharing between the applications based on a context management mechanism. According to the method, the problems of high configuration complexity, difficulty in ensuring consistency and difficulty in hybrid deployment in operation and maintenance management can be solved.
Owner:WUHAN BAISIJIE TECH CO LTD

System and method for creating software components capable of sharing state across threads in a thread-isolated execution environment

PendingUS20260187242A1Parallel computingMultithreading
A system and method for generating software components in a multithreaded processing environment that are capable of being executed in a thread-isolated manner to prevent data leakage across threads and that are linked together in a manner that enables the software components to share state includes generating a face template for a thread-specific face in a first thread and initializing a global variable that includes a global handle to a thread-local static variable. Thread-specific faces can then be initialized in threads from the face template. A thread-local static variable is lazy-initialized for each thread-specific face from the global variable in a manner that links the faces together to act as a single component.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

A method and system for describing a PLC project

ActiveCN121300215BPathPingObject type
This invention belongs to the field of PLC automation technology, specifically relating to a PLC project description method and system. The method includes: describing a PLC project in a development environment based on the TOML markup language; creating corresponding program units, global variable sets, periodic tasks, and devices according to the description of the PLC project, and encapsulating them in the PLC project file, or modifying the attributes of program units, global variable sets, periodic tasks, or devices in the PLC project file according to the description of the PLC project; and exporting the PLC project file. The PLC project and its corresponding program units, global variable sets, periodic tasks, and devices are all edited and generated or modified according to the description format of metadata + object definition, and the object definition section at least defines fields representing the operation mode, fields representing the object path, and fields representing the object type.
Owner:SHANGHAI BAOSIGHT SOFTWARE CO LTD

Object management for managing runtime overhead

A computer implemented method manages a memory. A number of processor units determines a creation of an object in a program. The number of processor units determines a set of uses of the object in the program. The number of processor units add an allocation program code to allocate memory to the object in an off heap region in memory in response to the object not being within a call chain and not being assigned to a global variable. The number of processor units add a deallocation program code to deallocate the memory after each possible last use in a set of possible last uses of the object in the uses of the object in the program in response to the object not being within the call chain and not being assigned to the global variable. Additionally, a computer system and a computer program product for managing memory are provided.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Method and device for processing GPU shared memory allocation by llvm compiler

The invention discloses a method and device for processing GPU shared memory allocation by an llvm compiler, and belongs to the field of data process.The method includes the steps that a kernel function call chain is reconstructed, equipment functions called by multiple kernels are renamed after being copied, and shared memory variables in the equipment functions are copied at the same time; it is ensured that each device function only exists in one call chain, so that the problem of device function shared memory address conflict in the compiling period is solved, and meanwhile accumulated calculation of offset addresses and memory sizes of related shared memory variables in the kernel function call chains is achieved by setting global variables of a kernel action domain. And the problem of shared memory allocation during compiling is efficiently solved.
Owner:沐曦科技(成都)有限公司

A vehicle testing method, device, electronic equipment and storage medium

Embodiments of the present application provide a vehicle testing method, device, electronic equipment and storage medium, the method comprising: the test software constructs global variables for hard-wire signals and bus signals of different test platforms respectively, and stores the mapping relationship between each test platform and the global variables to obtain a first mapping relationship; in response to a user selecting a target test platform from the test platforms, the target global variable corresponding to the target test platform is queried from the first mapping relationship; the target test script is generated based on the target global variable, and the remote control function test is completed by calling the test management software in the target test platform and the simulation hardware in the hardware-in-the-loop test cabinet through the target test script. The method can ensure that the generated test script can be used on different test platforms with different software and hardware, regardless of whether the hardware-in-the-loop system is dSpace, VT, ETAS or NI, the automation script written by the test software can be adapted, and there is no situation such as cannot be reused, difficult to transplant, etc.
Owner:CHONGQING CHANGAN AUTOMOBILE CO LTD

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

Page application architecture and method of generating page application based on page application architecture

The application discloses a page application architecture and a method for generating a page application based on the page application architecture. The page application architecture comprises a page framework constructed based on a first underlying framework and a plurality of independent category blocks corresponding to different category designs. The page framework comprises a page structure module, a general component library, a global variable module and an initialization module. The page structure module comprises a page header navigation submodule, a page core navigation submodule and a block configuration submodule. The general component library comprises common components registered to a loading tool of the first underlying framework and integrated into the page framework. In the category blocks, the product of a first category block is packed into the page framework to be initially displayed in a content display area of the page, and the product of a second category block is dynamically loaded according to requirements during the running of the page application. The architecture can improve the collaborative development efficiency of the page application.
Owner:RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD

A scheduling process flow engine method and its configuration method

This invention relates to the field of scheduling process orchestration technology, specifically providing a scheduling process flow engine method, comprising the following steps: S1, starting the node, parsing the externally transmitted parameter data for preliminary analysis; S2, querying the global variable data in the cache, loading it if it exists, otherwise continuing, storing the parameter data from step S1 into the global variable; S3, loading the data; S4, determining the policy data configuration of the node itself; S5, recording the execution log of the scheme; S6, confirming whether the scheme has been executed, if it has been executed, it will not be executed again, if it has not been executed, sorting all node data in sequence and processing the data of each node; S7, recording the execution log of the scheme; S8, executing the callback, if there is a service that needs to be called back, executing the service callback and passing in the configured callback data; S9, ending the node, execution ends. Compared with the prior art, this invention can greatly improve manual efficiency and the efficiency of service integration between different platforms of each node.
Owner:INSPUR TIANYUAN COMM INFORMATION SYST CO LTD

A model-in-loop simulation test method, device, equipment and medium

The application provides a model-in-loop simulation test method, device, equipment and medium. The model-in-loop simulation test method comprises the following steps: obtaining a plurality of function model files used for simulation test, wherein the data of the function model files comprises model file data and configuration file data; constructing an integrated file according to the model file data; loading the configuration file data into a global variable space associated with the integrated file to generate an integrated model file; performing model reference processing on the integrated model file to generate a test engineering file; and performing simulation test on an input test case according to the test engineering file to generate test result data. The application can improve the simulation test efficiency of software model-in-loop and save the software development time cost.
Owner:CHONGQING CHANGAN TECH CO LTD

Intelligent agent development system and method based on global variable and any hooking type

The invention relates to an agent development system and method based on global variables and any hooking type. The method comprises the following steps: analyzing agent development configuration information input externally to construct an initial graph structure of an agent; in the composition stage, nodes and node relations in the initial graph structure are traversed in sequence, input variables and output variables of components are defined step by step, and meanwhile any input hanging type serves as a node input data type to support mutual calling of different types of nodes; carrying out unified registration and centralized management on input variables and output variables of the components by adopting a global variable mechanism; in the operation construction stage, vertex-by-vertex construction is executed to complete value reference substitution of an agent development task and extraction of an output structure variable value; and after the setting is completed, generating a graph structure corresponding to the intelligent agent so as to realize intelligent agent development. According to the method, the intuition and maintainability of agent development can be improved, the development efficiency is improved, and efficient development support is provided for the industry.
Owner:BEIJING QIYU INFORMATION TECH CO LTD

Agent development system and method based on global variables and arbitrary hook types

The application relates to an agent development system and method based on global variables and arbitrary hook types. The method comprises the following steps: analyzing externally input agent development configuration information to construct an initial graph structure of an agent; in the graph construction stage, sequentially traversing nodes and node relationships in the initial graph structure, gradually defining input variables and output variables of components, taking arbitrary input hook types as node input data types to support mutual calling of different types of nodes, and adopting a global variable mechanism to uniformly register and centrally manage the input variables and the output variables of the components; in the running construction stage, constructing execution point by point to complete value reference replacement of an agent development task and extraction of output structure variable values; and after the setting is completed, generating a graph structure corresponding to the agent to realize agent development. The application can improve the intuitiveness and maintainability of agent development, improve the development efficiency, and provide efficient development support for the industry.
Owner:BEIJING QIYU INFORMATION TECH CO LTD

PLC project description method and system

The invention belongs to the technical field of PLC automation, and particularly relates to a PLC project description method and system, and the method comprises the steps: describing a PLC project in a development environment based on a TOML format markup language; creating a corresponding program unit, a global variable set, a periodic task and equipment according to the description content of the PLC project, and packaging the program unit, the global variable set, the periodic task and the equipment in a file of the PLC project, or modifying attributes of the program unit, the global variable set, the periodic task or the equipment in the file of the PLC project according to the description content of the PLC project; exporting a file of the PLC project; wherein the PLC project, the corresponding program unit, the global variable set, the periodic task and the equipment are edited, generated or modified according to a description format of the metadata part and the object definition part, and the object definition part at least defines a field for representing an operation mode, a field for representing an object path and a field for representing an object type.
Owner:SHANGHAI BAOSIGHT SOFTWARE CO LTD

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

Calibration method, device, electronic device and storage medium for autonomous driving algorithm

The present application relates to the field of algorithm calibration technology, and more particularly to a calibration method, apparatus, electronic device, and storage medium for an autonomous driving algorithm, wherein the method comprises: reading a configuration file under a target path based on a preset configuration file class and obtaining configuration information of the configuration file; generating a target database based on the configuration information and obtaining calibratable variables to be modified, numerical values ​​corresponding to the calibratable variables to be modified, and types of the calibratable variables to be modified; locating the calibratable variables to be modified from the target database, and modifying the calibratable variables to be modified in the target database according to the numerical values ​​corresponding to the calibratable variables to be modified and the types of the calibratable variables to be modified, thereby obtaining calibration results for the autonomous driving algorithm. The embodiments of the present application modify the values ​​of global variables in the current program, thereby enabling multiple consecutive calibrations with only one compilation, optimizing the calibration process, and ultimately achieving an efficient and flexible calibration effect.
Owner:CHONGQING CHANGAN TECH CO LTD

Method and apparatus for identifying global variables in public javascript files

The application discloses a method and device for identifying global variables in public JavaScript files, and is applied to the technical field of software, and the method comprises the following steps: scanning a code library and extracting all public JavaScript files; generating a JSON file corresponding to each public JavaScript file based on an abstract syntax tree; screening out paragraphs corresponding to variable declaration operations in the JSON file based on the variable declaration operations; and recursively traversing all the JSON files, and determining global variables, public JavaScript files where the global variables are located and public JavaScript files referring to the global variables according to the structure of the paragraphs corresponding to the variable declaration operations in the JSON files. The application can accurately identify in which files the global variables in the public JavaScript files appear.
Owner:CHINA CONSTRUCTION BANK +1

A Katalon-based API automated testing method and system

ActiveCN121387726BLow complexityJSON
This invention discloses an API automated testing method and system based on Katalon, belonging to the field of API automated testing technology. It includes configuring multi-environment global variables for the Katalon test project; generating basic test case data based on API interface documentation, historical test databases, business logic, and dependencies; and then arranging the test case data and its various parameters, including interfaces, request parameters, expected results, and priorities, to ensure they conform to business logic and interface calls and verification. For high-complexity parameters, boundary value and abnormal format test data are generated; for low-complexity parameters, regular test data is generated. Simple response data and expected results are directly compared; complex response results and expectations are recursively compared using regular expressions; and even more complex response data can be validated using JSON Schema. If a mismatch is found, the location is recorded and the specific difference is output. The judgment rules are adjusted as needed based on the analysis and verification of the test report.
Owner:SHANGHAI BOUNDARY INTELLIGENT TECH CO LTD

METHOD FOR SECURELY PROTECTING THE EXECUTION OF A SOFTWARE CODE AGAINST PHYSICAL ATTACKS

The present invention relates to a method for securely protecting the execution of software code against physical attacks, wherein the software code comprises calls to a plurality of functions and, prior to a call to a first function among the plurality of functions, an instruction that stores the address of the first function in a global variable, wherein the method is performed by an electronic system comprising a hardware processor, non-volatile memory, and a detection system configured to detect an attack on the electronic system during the execution of a function among the plurality of functions, and comprising: - detecting (S1), by the detection system, during the execution of the first function, an attack on the electronic system, - after the detection of an attack, retrieving the address from which the first function was called,Storing the retrieved address in non-volatile memory and stopping the execution of the first function (S2), - on the next startup of the electronic system (S3): o Determining whether an attack occurred during a previous execution of the first function by checking whether an address of a call to the first function is stored in the non-volatile memory, o if it is determined that an attack occurred during a previous execution of the first function, updating the software code in the non-volatile memory by replacing the call to the first function at the address stored in the non-volatile memory with a call to a function that: activates security countermeasures, calls the first function using the address stored in the global variable, and deactivates the activated security countermeasures after the execution of the first function.
Owner:THALES DIS FRANCE SA

A module configuration unified compiling method, device, equipment and medium

PendingCN122633186AConfiguration itemConfigfs
The application relates to the computer technical field and provides a module configuration unified compiling method, device, equipment and medium, the method comprises the following steps: receiving a standardized compiling command, after the compliance verification of the standardized compiling command is completed, the command parameters transmitted by the standardized compiling command are analyzed, a compiling operation is generated based on the basic command parameters and the compiling module name obtained by analysis; based on the project name and other command parameters except the project name transmitted by the standardized compiling command, the compiling project name, the compiling target and the compiling environment variable are dynamically generated; the configuration items in the configuration file of the project corresponding to the compiling project name are analyzed, the global variable and the macro definition are generated; the compiling operation, the compiling project name and the compiling running environment are combined to generate the corresponding compiling step, and the compiling command flow matched with the compiling step is executed according to the compiling switch, and the compiling is completed. The application can simplify the function module integration and the compiling process.
Owner:GUANGZHOUSNGKE INFORMATION TECH

Katalon-based API automatic test method and system

The invention discloses a Katalon-based API automatic testing method and system, and relates to the technical field of API automatic testing, and the method comprises the steps: configuring a multi-environment global variable of a Katalon test project, generating basic test case data based on an API interface document, historical data, business logic and a dependency relationship, then arranging the test case data and each parameter thereof, and finally, carrying out Katalon-based API automatic testing on the basis of the basic test case data. Comprising interfaces, request parameters, expected results, priorities and the like, so that the service logic and interface calling and verification are met; generating boundary values and abnormal format test data for the high-complexity parameters, and generating conventional test data for the low-complexity parameters; simple response data and expected results are directly compared, complex response results and expected results are subjected to recursive comparison through regular expressions, more complex response data can be verified through JSON Schema, if mismatched record positions are found and specific difference problem conditions are output, and correction judgment rules are adjusted according to needs based on analysis and verification of test reports.
Owner:SHANGHAI BOUNDARY INTELLIGENT TECH CO LTD