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

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

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

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

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

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

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

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