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

40 results about "Assignment" patented technology

In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.

Neural network-based context-aware code translation and optimization

Systems and methods for efficiently translating program code from a source language to a target language. Input source code is parsed, using a processor device, into an Intermediate Representation (IR). A structural and semantic model of the source code are established by applying static analysis to the IR, and a program skeleton of the target code is constructed from the IR, including generating context-aware placeholders. The IR is transformed into a Single Static Assignment (SSA) form, and a System Dependency Graph (SDG) is built from the SSA form. The SDG is traversed to order translation tasks, and ordered tasks are translated into the target language using a Large Language Model (LLM). A translated program is generated by integrating translated code segments into a coherent program structure in the target language.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Instruction-level code optimization method and device based on template matching, medium and equipment

The invention discloses an instruction-level code optimization method and device based on template matching, a medium and equipment. According to the method, instruction-level codes serve as input, the input instruction-level codes are firstly constructed into corresponding control flow diagrams, then value ranges of active variables and register quantities are initialized based on the control flow diagrams, then variable assignment instructions and related instructions are found out from instruction sequences of basic blocks to form instruction segments to be optimized, and the instruction segments to be optimized are optimized. The method comprises the following steps of: optimizing an instruction fragment, obtaining an optimized instruction fragment through template matching, performing SMT equivalence verification on the instruction fragment before and after optimization based on an active variable and a value range of a register quantity, and finally optimizing an input instruction-level code in a manner of replacing the instruction fragment before optimization with the optimized instruction fragment which is verified to be equivalent. And finally, the optimized instruction-level code is obtained.
Owner:NANJING UNIV

RISC-V architecture-based built-in function conversion method and device and storage medium

The invention discloses an RISC-V architecture built-in function conversion method and device and a storage medium, and the method comprises the steps: analyzing a source code file, and obtaining an operator function contained in the source code file; converting the operator function into a syntax tree, and traversing the syntax tree to obtain child nodes of the syntax tree; when the child node is the loop statement node, judging whether the loop step length of the child node is the same as a preset step length or not; generating a second syntax tree based on the basic loop step length sub-tree, expanding a scalar in the code block into an assignment statement of a vector, and identifying the assignment statement as a vector-scalar instruction optimization vector expansion statement; searching a statement to be subjected to vector-scalar instruction optimization from the following text; when the statement to be subjected to vector-scalar instruction optimization is found, the assignment statement subjected to vector expansion is converted into a common assignment statement, the vector instruction of the original instruction set is replaced with the vector instruction of the target instruction set according to the mapping vector instruction mapping table, and the vector instruction of the target instruction set is replaced with the corresponding vector-scalar instruction.
Owner:先进计算与关键软件(信创)海河实验室

System and method for automated unit test generation for programming source code

A system for generating unit tests based on source code is disclosed having a computer; a source code file containing source code having a plurality of constructs; the plurality of constructs each being of a type, such types including functions, return statements, property assignments, function calls, and branches; an abstract syntax tree generated by the computer based on the source code and the plurality of constructs; the abstract syntax tree having a plurality of nodes, wherein each of the plurality of constructs in the source code has a corresponding node; at least one unit test generated by the computer based on the nodes of the abstract syntax tree and pre-defined rules; the unit test including at least one grouping function corresponding to a function or a branch construct and at least one trial function corresponding to a return statement, a property assignment, or a function call construct.
Owner:CLOUDBLUE LLC

Branch conversion method and device for instruction compiling preprocessing

The invention provides a branch conversion method and device for instruction compilation preprocessing. The method comprises the following steps: determining a basic block actually having a control dependency relationship in an IR structure to be processed; converting the conditional branch instruction in the IR structure to be processed into a comparison assignment instruction of a corresponding prediction code; and based on the comparison assignment instruction, lifting the instruction of the basic block actually having the control dependency relationship into a predicate execution instruction. According to the method, the basic blocks actually having the control dependency relationship are determined, and then branch conversion is performed on the function having the control dependency and the data dependency at the same time in the processing process of the rear end of the compiler, so that the control dependency is converted into the data dependency, and more optimization space is provided for a scheduling algorithm for improving instruction level parallelism.
Owner:WUHAN UNIV

Automatic order dispatching method of platform and related equipment

The embodiment of the invention provides an automatic order sending method of a platform and related equipment, and belongs to the technical field of computers. The method comprises the following steps: acquiring work order information needing to be dispatched; inputting the work order information into a large language model based on cue word engineering to obtain a first-level prediction result; if the first-level prediction result contains a preset value, starting an auxiliary model, and inputting the work order information and the first-level prediction result into the auxiliary model to obtain a second-level prediction result; and fusing the first-level prediction result and the second-level prediction result to obtain an order sending result. According to the invention, order sending prediction is carried out through the large language model and the auxiliary model, so that the accuracy of order sending prediction is improved.
Owner:GUANGZHOU YUNDI TECH CO LTD

A Reliable Translation Method for Synchronous Data Stream Languages ​​Based on the 8114 Criterion

This invention relates to a reliable translation method for synchronous dataflow languages ​​based on the 8114 criterion, belonging to the field of code generation. The invention obtains the abstract syntax tree of the Ctemp intermediate language through lexical and syntactic analysis and translation of Lustre source code; it traverses the Ctemp abstract syntax tree and designs translation methods for control flow statements and assignment statements within the tree structure; it traverses expressions within statements and designs translation methods that add type casting to ensure that statements are semantically correct while avoiding implicit type conversions; it extends the theorem on type relations in Cltype for verifying type operations; and it extends the theorem on type casting and binary operations in Ctemp semantics to achieve semantic formal verification. This invention significantly improves the compliance of C code generated by code generation tools with the GJB 8114 specification.
Owner:BEIJING INST OF COMP TECH & APPL

System and method for automated unit test generation of programming source code

A system for generating a unit test based on source code is disclosed having a computer, a source code file, an abstract syntax tree, and at least one unit test. The source code file contains a source code having a plurality of constructs each belonging to a type including functions, return statements, attribute assignments, function calls, and branches. An abstract syntax tree is generated by a computer based on a source code and a plurality of constructions, the abstract syntax tree having a plurality of nodes, where each of the plurality of constructions in the source code has a corresponding node. At least one unit test is generated by a computer based on nodes of the abstract syntax tree and predefined rules, the unit test comprising at least one packet function corresponding to a function configuration or a branch configuration, and the unit test comprising at least one trial function corresponding to a return statement configuration, an attribute assignment configuration, or a function call configuration.
Owner:CLOUDBLUE LLC

System and method for automated unit test generation for programming source code

A system for generating unit tests based on source code is disclosed having a computer; a source code file containing source code having a plurality of constructs; the plurality of constructs each being of a type, such types including functions, return statements, property assignments, function calls, and branches; an abstract syntax tree generated by the computer based on the source code and the plurality of constructs; the abstract syntax tree having a plurality of nodes, wherein each of the plurality of constructs in the source code has a corresponding node; at least one unit test generated by the computer based on the nodes of the abstract syntax tree and pre-defined rules; the unit test including at least one grouping function corresponding to a function or a branch construct and at least one trial function corresponding to a return statement, a property assignment, or a function call construct.
Owner:CLOUDBLUE LLC

Compiling method and device, electronic equipment, storage medium and product

ActiveCN120491976ACode compilationSoftware engineeringParameter
The invention provides a compiling method and device, electronic equipment, a storage medium and a product, and relates to the technical field of code compiling. The compiling method comprises the steps of obtaining configuration information of a target program; based on language type information in the configuration information, determining a language type of the target program; determining compiling tool chain configuration parameters according to the language category, and assigning values to the corresponding compiling tool chain configuration parameters in the compiling command by using the configuration information to generate a target compiling command; executing the target compiling command, compiling the target program into an executable program, and running the executable program. According to the method, the language category of the target program can be determined by obtaining the language category information in the configuration information; the configuration information is utilized to configure parameter assignment for a compiling tool chain in a compiling command corresponding to the target program, and the compiling command corresponding to the target program is generated; therefore, the task of compiling the target programs of different language categories can be realized by executing the compiling command.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Script coding method, script execution method and program for secret score calculation

The invention discloses a script coding method and a script execution method for secret score calculation, and the coding method is characterized in that three script instructions are defined: instruction 1: inputting an assignment instruction of a discrimination result of an evaluation object; instruction 2: inputting an assignment instruction for scoring the unit; command 3: outputting an instruction. The key technology of the corresponding script decoding method is that the memory is used for caching unit scores, an access address is specified by an instruction 1 and an instruction 2, the scores cached by the memory are assigned by the output of the instruction 1 or the instruction 2, and the scores cached by the memory are input as an instruction 3. Also disclosed are a program and a storage medium. The method has the main technical effects that the secret evaluation score of the standard definition is realized, and a re-calculation function and a real-time programming execution effect are also realized.
Owner:BEIJING RED & BLUE TREE TECHNOLOGY CO LTD

Compiler optimization of intermediate representations by variable assignment and scope analysis

There is described a computing device (900) for static analysis (301) of source code (402), the computing device being configured to: obtain an abstract code representation (204a) of the source code; generating a connection graph (701) from the abstract code representation, where the connection graph (701) represents connections between constructs in the source code (402); determining an escape scope (602, 603) of one or more nodes (601) in the connection graph (701), where the nodes (601) in the connection graph (701) correspond to the construct in the source code (402); an escape situation for the one or more nodes (601) is propagated through the connection graph (701) to generate an optimized connection graph (205a, 705), where the escape situation is based on the escape scope of the one or more nodes (601). Thereby, an optimized connection graph based on the escape scope of the node may be used to optimize the compiler (404).
Owner:HUAWEI TECH CO LTD

Dynamic expression processing method based on JSON semantic specification and flow transaction system

The invention relates to a dynamic expression processing method based on a JSON semantic specification and a traffic transaction system, and belongs to the technical field of computer data process.The method comprises the steps that a JSON expression is defined as a JSON array with dynamic semantics, and the structure of the JSON expression at least comprises an assignment expression; the formats of the condition expression and the assignment expression are defined as ternary JSON arrays; a multi-assignment mechanism is defined, and when the assignment expression is a JSON array, multiple assignment operations are executed in sequence according to the array sequence; and defining the JSON expression group as a JSON array comprising a plurality of JSON expressions, sequentially executing the action of each JSON expression according to a sequence, and terminating the subsequent execution until detecting that the assignment result comprises a predefined termination variable. According to the method and the system, flexible business rule management can be realized in the traffic transaction system, and the research, development, operation and maintenance cost is reduced.
Owner:BAI XUN INFORMATION TECH (SHANGHAI) CO LTD

Language model preprocessing with weighted n-grams

An embodiment may involve: obtaining textual content including a plurality of token strings, wherein each of the plurality of token strings includes one or more tokens; determining, for the plurality of token strings, respectively corresponding sets of n-gram tuples; assigning respective weights to the plurality of token strings, wherein, for each of the plurality of token strings, the assignment is based on the respectively corresponding set of n-gram tuples; identifying a subset of the plurality of token strings, wherein each of the subset of the plurality of token strings is characterized by a respective weight that exceeds a predetermined threshold weight; and storing sets of n-gram tuples respectively corresponding to the subset of the plurality of token strings.
Owner:SERVICENOW INC

Controllable mathematical instruction data synthesis method and device

The invention discloses a controllable mathematical instruction data synthesis method. A large language model for synthesizing mathematical instruction data performs multiple tasks at the same time. Comparing the answer of the answering process output by the large language model, the reference answer and the execution result of the program code; and if the three parameters are equal, carrying out numerical value replacement on the parameters in the output data of the seed mathematical instruction data by the large language model, and combining new numerical values of the parameters with the general mathematical problem template to form new mathematical instruction data. According to the method, starting from seed mathematical instruction data, a large language model is utilized to generate a problem solving process, a problem solving process answer, a reference answer, a parameter, a general mathematical problem template, a program code, variable assignment in the program code and an execution code. Generation of each part has clear rules and requirements, all links are matched with one another and progressive layer by layer in the generation process, and finally generated new mathematical instruction data are processed and checked for multiple rounds, so that accuracy and high quality are guaranteed.
Owner:SHANGHAI HEHE INFORMATION TECH DEV +3

Automated least privilege assignment

Described are techniques for automated least privilege role definition. The techniques include enumerating access patterns including a subject, a verb, an object location, and an object type of respective Application Programming Interface (API) calls in source code associated with a binary program. For a first function call in the source code, the technique is configured to generate a first object type based on an API definition associated with the function call, a first verb based on an API-to-verb matching database, a first subject based on a program-to-subject mapping database and the binary program, and a first object location based on the API definition associated with the function call. The technique further includes generating a Role Based Access Control (RBAC) role definition based on the enumerated access patterns.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Dynamic control flow confusion method based on Gilbreath conjecture

The invention belongs to the technical field of software protection, and particularly relates to a control flow confusion method based on Gilbreath conjecture. According to the method, the opaque predicate based on the Gilbreath sequence is constructed, and a control flow flattening and dynamic assignment mechanism is combined, so that the control flow structure is recombined, and the code logic shows the characteristics of high complexity and difficulty in analysis. According to the method, the mathematical characteristics of the Gilbreath conjecture are utilized, so that the generated opaque predicate has the characteristics of pseudo-randomness and low predictability, and the anti-analysis capability of control flow confusion is enhanced. Experimental results show that compared with a traditional confusion method depending on simple grammar replacement or rearrangement, the opaque predicate based on the Gilbreath conjecture constructed by the method can effectively enhance the complexity of control flow confusion, so that a reverse analysis tool is difficult to recover original execution logic. Meanwhile, compared with a traditional confusion method, on the premise that high safety is guaranteed, the influence of confusion on the program running efficiency is reduced, and good practicability and adaptability are achieved.
Owner:GUILIN UNIV OF ELECTRONIC TECH

Method for judging ASN.1 structural body difference and computer readable storage medium

The invention discloses a method for judging ASN.1 structural body differences and a computer readable storage medium, and relates to the technical field of network security. The method comprises the following steps: acquiring data structures of ASN.1 of different iteration versions; analyzing the data structure of the ASN.1 of each version so as to correspondingly generate a class of a set programming language; comparing the various types, and determining code structure differences in the various types to generate an initial member difference analysis result; obtaining classes with code structure differences under different iteration versions, and creating instances of the classes with the code structure differences; assigning values to the instances, and serializing the instances subjected to assignment to correspondingly generate binary data; comparing the sites of the binary data one by one, correcting the initial member difference analysis result according to the site comparison result of the binary data, and generating a final member difference analysis result; and determining difference points of ASN.1 data structures of different iteration versions according to the final member difference analysis result so as to carry out modification prompting of program development.
Owner:SHENZHEN JETLINK TECH CO LTD

System

A system is provided.SOLUTION: The system includes a means for receiving a question related to assignment setting, information collection, data arrangement, and presentation input by a student in a learning process, a means for generating an appropriate prompt by a generation engine corresponding to question content, a means for transmitting the generated prompt to a natural language processing model and receiving an answer, and a means for shaping the received answer, transmitting the shaped answer to a terminal of the student, and displaying the shaped answer.SELECTED DRAWING: Figure 1
Owner:SOFTBANK GROUP CORP

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

Runtime forcing method, industrial equipment, system and storage medium

The invention relates to a runtime forcing method, industrial equipment, a system and a storage medium. In the application, when a compiler compiles an original code input by a user to generate a syntax tree, if the original code contains an assignment statement of a variable, the assignment statement is constructed into a target code supporting any bit forcing; the compiler generates an executable program according to the syntax tree and transmits the executable program to a programmable controller of the industrial equipment; when the programmable controller runs the executable program, performing bit operation according to the original value, the forced value and the forced flag bit of the variable to generate an actual value, and assigning the actual value to the variable; it can be seen that when the programmable controller runs the executable program to achieve variable enforcement, accurate assignment of the variable can be achieved through the bit operation mode, the mode eliminates a jump instruction, the program execution overhead of the programmable controller is greatly reduced, meanwhile, the scheme can further achieve a bit-level variable enforcement function, and the program enforcement efficiency is improved. And the forced fineness is improved.
Owner:KYLAND TECH CO LTD

Information processing systems, information processing methods, and programs

According to one aspect of the present invention, an information processing system is provided, comprising at least one processor capable of executing a program such that the following steps are performed: an acquisition step, which acquires object information relating to at least one object placed in a representation space, wherein the representation space is configured to visually represent the object, the object information includes element information relating to a plurality of elements constituting the object, an assignment step, which assigns attributes different from an identification code to the elements based on the object information, wherein the identification code is a non-natural language code that is mechanically uniquely assigned to each of the plurality of elements when the object is defined in the representation space, the attributes are described in natural language, and an update step, which updates the attributes of the target element based on the latest attributes of adjacent elements adjacent to the target element, which is one of the plurality of elements.
Owner:徳山佳央

Conversion method, device and storage medium based on RISC-V architecture built-in function

The present invention discloses a conversion method, device and storage medium based on a built-in function of a RISC-V architecture. The method comprises: parsing a source code file to obtain an operator function contained therein; converting the operator function into a syntax tree, and traversing the syntax tree to obtain a child node of the syntax tree; when the child node is a loop statement node, judging whether the loop step length of the child node is the same as a preset step length; generating a second syntax tree based on a basic loop step length subtree, expanding a scalar in a code block into a vector assignment statement, and identifying it as a vector extension statement to be optimized for vector-scalar instructions; searching for the vector-scalar instruction optimization statement to be optimized from the following text; when the vector-scalar instruction optimization statement to be optimized is found, converting the vector extension assignment statement into a common assignment statement, replacing the vector instruction of the original instruction set with the vector instruction of the target instruction set according to a mapping vector instruction mapping table, and replacing the vector instruction of the target instruction set with the corresponding vector-scalar instruction.
Owner:先进计算与关键软件(信创)海河实验室

System and method for automated unit test generation for programming source code

A system for generating unit tests based on source code is disclosed having a computer; a source code file containing source code having a plurality of constructs; the plurality of constructs each being of a type, such types including functions, return statements, property assignments, function calls, and branches; an abstract syntax tree generated by the computer based on the source code and the plurality of constructs; the abstract syntax tree having a plurality of nodes, wherein each of the plurality of constructs in the source code has a corresponding node; at least one unit test generated by the computer based on the nodes of the abstract syntax tree and pre-defined rules; the unit test including at least one grouping function corresponding to a function or a branch construct and at least one trial function corresponding to a return statement, a property assignment, or a function call construct.
Owner:CLOUDBLUE LLC

Instruction compiling method and device, compiler and computing equipment

The invention discloses an instruction compiling method and device, a compiler and computing equipment. The method comprises the steps that a to-be-compiled object containing multiple instructions is obtained, the multiple instructions comprise labeled target variables and labeled target branch instructions, and the target branch instructions comprise target variables; the to-be-compiled object is compiled to obtain an executable program, the executable program comprises an assignment instruction of the target variable, a self-modification instruction, a target branch instruction and other compiling instructions, and the self-modification instruction is used for reducing the complexity of the target branch instruction based on assignment of the target variable. The technical problem that performance loss is caused when branch instructions are executed for multiple times in the prior art is solved.
Owner:ZHEJIANG LAKESIDE DATA SCIENCE & APPLICATION LABORATORY

Program, computer, and information processing method

To provide a program, a system and an information processing method for enabling a programmer or the like to preliminarily recognize the existence of an error or an anti-pattern to be generated in the execution of a program without executing a program written in an SQL sentence.SOLUTION: By the control unit 12, 52 executing the program, detecting a predetermined data manipulation language set in advance from the received SQL statement and decomposing a statement including the data manipulation language into constituent elements; Which table is being processed is specified from the decomposed components, a field of an innermost table is specified by analyzing a multilayered data manipulation language for the received SQL statement, and at least one of verification of a comparison operation and verification of an assignment operation is performed or an anti-pattern is detected for the specified field of the innermost table based on the acquired definition information.SELECTED DRAWING: Figure 1
Owner:金子 壮一

Code compiling method and device, electronic equipment and readable storage medium

The invention provides a code compiling method and device, electronic equipment and a readable storage medium, and relates to the technical field of processors, the method comprises the steps of obtaining an assignment statement in a to-be-compiled code and a register corresponding to each variable in the assignment statement; if a conflict register with a plurality of corresponding variables exists in the register, setting a shadow register and a semaphore for each variable corresponding to the conflict register; compiling the to-be-compiled code into a first hardware description language code comprising a shadow register and a semaphore; the shadow register is used for writing a variable value of a variable corresponding to the shadow register; the semaphore is used for sequentially writing the variable values in the shadow register into the conflict register according to the priority of the variables after the variable values are written into the shadow register. According to the method, the problem of multi-source driving errors when the same variable is assigned by a plurality of assignment statements in the code compiling process can be solved.
Owner:BEIJING INSTITUTE OF OPEN SOURCE CHIP