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

92 results about "Code transformation" patented technology

Black box code search model backdoor attack method based on learnable discrete code transformation

A black box code search model backdoor attack method based on learnable discrete code transformation comprises the steps that a learnable backdoor generator is constructed, and malicious codes with backdoors are generated on the premise that internal parameters of a damaged model are not accessed through the learnable discrete code transformation. Firstly, an agent model capable of simulating victim model behaviors is trained through query-response data; secondly, on the proxy model, a discrete selection process is differentiable by using a re-parameterization sampling technology, and a backdoor generator is trained in combination with a multi-objective loss function so as to realize effectiveness and concealment of backdoor implantation; according to the method, the limitation of a black box is successfully bypassed by constructing the proxy model, and a new possibility is provided for an attacker. A backdoor generation process is integrated into a differentiable training framework through learnable discrete transformation, so that end-to-end learnability is realized, and an attack strategy can be automatically optimized.
Owner:NANJING UNIV OF POSTS & TELECOMM

Custom code assistant system facilitating code conversion methodology

Systems and methods obtain a translation request accompanying source code of source file(s) for conversion. Formatting of the source code of the source file(s) is verified and the source code is converted to target code that includes target file(s). The converting (i) maps programming language functions of the source code to corresponding programming language functions of the target code and (ii) utilizes, through customized prompt template(s), one or more large language models (LLMs) hosted by a cloud platform during the code conversion, where a source application that uses the source code includes TIBCO™ software. The target file(s) are distributed.
Owner:TRUIST BANK

Code conversion method and device, electronic equipment and storage medium

The invention provides a code conversion method and device, electronic equipment and a storage medium, the method is applied to an intelligent agent running in the electronic equipment, and the method comprises the steps that to-be-converted original code data is acquired, and the original code data follows a first protocol; on the basis of a preset rule and a target knowledge base, a function module area and a variable definition area corresponding to the original code data are generated, and the preset rule is used for limiting basic constraint standards of different variables and motion instructions in a second protocol; a plurality of variable definition cases matched with the second protocol and function module cases corresponding to different motion instructions are stored in the target knowledge base; and generating target code data corresponding to the original code data according to the function module area and the variable definition area. According to the method, the robot native code can be automatically converted into the code conforming to the universal open protocol of the automatic system, manual code conversion is not needed, the conversion efficiency is high, and the integration difficulty and cost of the automatic system can be reduced.
Owner:MIDEA GRP (SHANGHAI) CO LTD +1

Source code correction program and source code correction device

PendingJP2026013547AProgram code adaptionCode compilationSoftware engineeringCoding conventions
To efficiently prepare a program of high quality corresponding to various coding rules and various using program languages.SOLUTION: By the processing 2, the definition file A2 is used to convert the source code described in the predetermined program language into intermediate codes separated for each component having a meaning. The intermediate codes are converted into post-proofreading intermediate codes matched with the coding convention of the target program language by using a coding convention definition file A3 by processing 3. Further, by the process 4, the post-proofreading intermediate codes are converted into post-proofreading source codes of the target program language by using the source code conversion definition file A4.SELECTED DRAWING: Figure 3
Owner:SAXA

Resource processing service data sending method and device, equipment, storage medium and program product

The invention relates to the technical field of data processing, and discloses a resource processing service data sending method and device, equipment, a storage medium and a program product. The method comprises the following steps: adding a service type and a service number of a target resource processing service into a to-be-distributed pool; according to the corresponding relation between the service type and the background system, the corresponding relation between the service type and the system interface and the service type in the pool to be distributed, constructing a data processing record, and adding the data processing record into a data pool of the background system; determining a target data processing record in a data pool of the target background system; and starting the available sending thread to determine the service data of the corresponding target resource processing service, and sending the service data to the target system interface according to the data adaptation requirement of the target system interface, so that the target background system processes the service data. The method can adapt to the newly-added or offline change of a background system, and does not need to carry out large code transformation.
Owner:CHINA CONSTRUCTION BANK +1

Code generation method, model training method, and related products

This application discloses code generation methods, model training methods, and related products, applicable to computer technology and AI fields. In this application, the code generation device deploys at least one model or has the ability to invoke at least one model. The device can acquire code to be converted written in a first programming language, perform semantic mapping on the code to be converted to obtain an intermediate representation, and use at least one model and the intermediate representation to obtain target code using a second programming language. This application utilizes at least one model to convert code into another programming language, achieving lexical-level semantic mapping during conversion, ensuring semantic consistency between the generated code and the original language, and enabling efficient and accurate conversion of the code's programming language. This application also provides corresponding model training methods and other related products.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

System and method for converting legacy code to updated code

ActiveCN116635120BImprove functionalityspeed up executionCoding blockUser input
A method for facilitating playing a legacy game is described. The method includes receiving user input during the playing of the legacy game, determining whether one or more code blocks for servicing the user input are cached, and accessing one or more instructions of legacy game code upon determining that the one or more code blocks are not cached. The method also includes compiling the one or more code blocks from the one or more instructions of the legacy game code, caching the one or more code blocks, and executing the one or more code blocks to display a virtual environment.
Owner:SONY INTERACTIVE ENTERTAINMENT LLC

Hallucination mitigation techniques for text-to-code conversions

Various embodiments of the present disclosure provide hallucination mitigation techniques for text-to-code conversions that improves the functionality of a computer in various aspects. The techniques comprise receiving a text-based file that defines a set of standards for a prediction domain; generating, using a machine learning model, a decision tree based on (i) the text-based file and (ii) a decisioning prompt for the text-based file; generating, using the machine learning model, computer programmable code for the set of standards based on the decision tree and a code conversion prompt for the decision tree; and providing the computer programmable code to implement an automated task for the prediction domain.
Owner:OPTUM INC

AI model compiling method and device, electronic equipment and computer readable medium

The embodiment of the invention discloses an AI model compiling method and device, electronic equipment and a computer readable medium. According to the main technical scheme, the method comprises the steps that codes of an AI model are converted, and SSA intermediate representation of the codes is obtained; staticizing each operation execution logic in the SSA intermediate representation to obtain at least one staticized intermediate representation, and each operation execution logic at least comprises a flow control logic, a tensor calculation logic and a scalar calculation logic; and compiling the at least one static intermediate representation to obtain binary data corresponding to the AI model for NPU execution. According to the AI model compiling mode, scalar calculation and tensor calculation mixed AI codes of a general dynamic shape tensor can be converted into static shape tensor codes so as to be suitable for efficient execution of the NPU, and therefore the execution efficiency of the NPU is improved.
Owner:BLACK SESAME TECH CO LTD

Hardware-optimized symmetric high-performance automated parallelization system with loop-level parallelization and method thereof

PendingJP2026516776ACode compilationSource to sourceComputer architectureLoop level parallelism
A symmetric automatic compiler system (1) and method for high-performance, hardware-optimized automatic parallelization of program code (3) for execution by a multicore or multiprocessor parallel processing system (2) having multiple processing units (21) that simultaneously process instructions for data in a parallel processing system (2) by executing program code (3). The automatic compiler system (1) converts the sequential source code (31) of program code (3) into parallel processing machine code (32) which includes several instructions that can be executed by multiple processing units (21) of the parallel processing system (2) or that control the operation of multiple processing units (21).
Owner:マイナティックス アーゲー

A multi-source heterogeneous code conversion method and device for cross-language development

The application discloses a multi-source heterogeneous code conversion method for cross-language development, which comprises the following steps: constructing a code sample set by constructing each code sample and a unit code block separated from the code sample into a format of { 'code' x c , 'code type' y c , 'code description' x d}; then using the code sample set to sequentially perform first training of internal features of the model, second training of consistency of code semantics and third training of consistency of mixed codes; taking embedding mapping functions obtained by the model after the first training and the third training as embedding models, obtaining embedding representation vectors after embedding representation mapping by using the two embedding models; in actual use, inputting an initial prompt word into the two embedding models to obtain retrieval enhancement information; and finally inputting the initial prompt word and the retrieval enhancement information into a large language model after splicing to obtain a code conversion result. The application can improve the accuracy of code conversion.
Owner:ZHEJIANG UNIV

Code conversion method and device based on sentence pair equivalent replacement, equipment and medium

The application belongs to the field of databases and provides a code conversion method, device, equipment and medium based on statement pair equivalent replacement, which comprises the following steps: obtaining a to-be-converted statement including a first operator and a first logical statement in PLSQL code to be converted, the first operator being used for performing a logical NOT operation, and the logical operation result of the first logical statement being Null; obtaining a target logical operation result of the to-be-converted statement; removing the first operator and converting the first logical statement into a second logical statement with a logical operation result of the target logical operation result; and replacing the second logical statement with the to-be-converted statement to convert the obtained target PLSQL code into target Java code. According to the technical scheme of the embodiment, when the logical operation result of the first logical statement in the to-be-converted statement is Null, the to-be-converted statement can be replaced by the second logical statement in a pair-equivalent manner, so that the operation logic remains unchanged after being converted into a Java statement and the normal operation of the system is ensured.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Operator compiling method and device, equipment and medium

The application provides a compilation method and device of an operator, equipment and a medium, and relates to the technical field of artificial intelligence. The compilation method of the operator comprises the following steps: obtaining operator source code to be compiled, the operator source code being code written in a domain-specific language based on Triton; converting the operator source code into a Triton dialect, performing hardware-independent optimization, the Triton dialect being a hardware-independent dialect based on an MLIR framework and used to represent the computing logic of the operator source code; converting the Triton dialect into a hardware-specific dialect, the hardware-specific dialect being a hardware-related dialect based on the MLIR framework and used to represent hardware-oriented computing logic; generating source code in a general programming language according to the hardware-specific dialect; and calling an LLVM-based compilation tool corresponding to a target chip to generate target code according to the source code in the general programming language. The operator can be applied to chips with different chip architectures.
Owner:ZHONGKE JIAHE (HANGZHOU) TECHNOLOGY CO LTD

Code language model-based generative knowledge graph construction method and device

The application aims to provide a code language model-based generative knowledge graph construction method and device, comprising the following steps: designing a structure-aware code prompt template, the code prompt template comprising a schema prompt template and a text prompt template; given a sample data pair comprising input text and a known knowledge graph, converting the sample data pair into a code prompt using the code prompt template, and converting test data comprising only test text into a code prompt; inputting the code prompt sample data pair and the test data into a large code language model, generating code encoding triples based on a prompt learning method, converting the code into structure triples, and constructing a knowledge graph based on the structure triples. The method and device perform a relationship triple extraction task in a code generation manner, enhance the pre-training model by explicitly modeling structure information, improve the structure understanding ability of the model, and further improve the performance of relationship triple extraction.
Owner:ZHEJIANG UNIV

System and method for generating instruction codes of a microcontroller unit

The present disclosure relates to a system and method for providing a flowchart-based user interface to a user and generating instruction codes of a microcontroller unit based on an operation process of the microcontroller unit designed by the user. The system for generating the instruction codes of the microcontroller unit according to an embodiment of the present disclosure includes: a memory configured to store at least one instruction; a component storage; a code conversion logic storage; and a processor, wherein the at least one instruction includes instructions for: generating a first flowchart instance based on at least one flowchart component; further receiving a target component and at least one of a property, and a value of the first flowchart instance to generate an operation process; and converting the operation process into an instruction code including an instruction, a register address, and data based on the code conversion logic.
Owner:ITDA SEMICON CO LTD

A system and method for parsing PLC intermediate code based on compilation technology and automatically generating data bridge description

The application provides a system and method for parsing PLC intermediate code based on compilation technology and automatically generating data bridge description. The system comprises: a preprocessing module for normalizing the C intermediate code generated by matIEC; a lexical analysis module for converting the code into a Token stream; a syntax analysis module for constructing an abstract syntax tree; an abstract syntax tree processing module for traversing the AST to extract type definitions, fields and memory layouts, and converting them into an internal data model; a code generation module for serializing the data model into a standardized JSON file, including data item name, type, size, offset, memory type and nested sub-items; a version management module for automatically updating the compiler version number and embedding the JSON based on CMake during building. The application realizes full-automatic extraction and standardized output of PLC data structure, eliminates manual parsing, ensures accurate memory layout, supports cross-platform integration and version consistency verification.
Owner:SHAANXI ROCKTECH ELECTRONICS INFORMATION TECH CO LTD

Code data management method based on artificial intelligence and related device

One or more situations of the invention provide a code data governance method based on artificial intelligence and a related device. The code data governance method comprises the following steps: obtaining a first code processing request; searching the first code graph based on the first code processing request to obtain a first node set; and processing the first code processing request according to first sub-graphs corresponding to the plurality of first nodes in the first code graph to obtain a data governance result corresponding to the first code processing request. Complex project codes are converted into code graphs for expression, graph search is carried out in the code graphs to obtain nodes strongly related to code requests, data management is carried out on the code requests in combination with sub-graphs formed by the strongly related nodes, and a set of universal and efficient code data management logic is provided for different types of code processing requests. Parts of codes related to the code processing request in the project codes are quickly focused, the code data treatment efficiency is improved, and the code data treatment accuracy is improved.
Owner:BEIJING VOLCANO ENGINE TECH CO LTD

Machine learning techniques for future occurrence code prediction

Various embodiments of the present invention provide methods, apparatus, systems, computing devices, computing entities, and / or the like for performing predictive structural analysis. Certain embodiments of the present invention utilize systems, methods, and computer program products that perform predictive structural analysis using at least one of techniques using time bound code transition likelihood data objects, techniques using cross-code relationship values, techniques using augmented entity-code occurrence data objects, techniques using per-pathway text representations of inferred occurrence pathways of a one or more individual historic code occurrences, techniques using polygenic risk score (PRS) measures, and / or the like.
Owner:OPTUM TECH INC

Methods and apparatus to provide machine assisted programming

Methods, apparatus, systems and articles of manufacture to provide machine assisted programming are disclosed. An example apparatus includes a feature extractor to convert compiled code into a first feature vector; a first machine leaning model to identify a cluster of stored feature vectors corresponding to the first feature vector; and a second machine learning model to recommend a second algorithm corresponding to a second feature vector of the cluster based on a comparison of a parameter of a first algorithm corresponding to the first feature vector and the parameter of the second algorithm.
Owner:INTEL CORP

Image processing method, device and system, streaming media server and computer terminal

The invention discloses an image processing method, device and system, a streaming media server and a computer terminal. Relates to the field of image compression, and the method comprises the steps: traversing an image, determining a prediction mode of a pixel value of an image block, and obtaining a first target prediction mode; determining a token probability table based on the first target prediction mode; updating the prediction mode according to the token probability table to obtain a second target prediction mode; coding the image block based on the second target prediction mode and the token probability table to obtain a coding result; and determining a compressed image according to the coding results of all the image blocks. According to the invention, the problem that a hardware encoder determines a prediction mode of a pixel value based on a predefined token probability table and carries out entropy coding on a coding transformation coefficient in a corresponding prediction mode by adopting the predefined token probability table due to the difference between the predefined token probability table and a token probability table required by actual coding is solved; and the compression performance of the hardware encoder is low.
Owner:ALIBABA CLOUD COMPUTING CO LTD

Layout design rule checking method and device, electronic equipment and storage medium

The invention provides a layout design rule checking method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The layout design rule checking method comprises the following steps: receiving a natural language text which is input by a user and is used for describing a layout design rule checking requirement; performing natural language processing on the natural language text, and extracting key rule information corresponding to the layout design rule inspection requirement; on the basis of the key rule information, calling a generative artificial intelligence model to generate a domain specific language DSL code conforming to layout design rule inspection of the superconducting quantum computing chip; converting the DSL code into a rule checking script which can be executed by a layout design tool; and executing the rule checking script to obtain a checking result of the layout design rule. Therefore, the development difficulty of the layout design rule check code in the superconducting quantum computing chip design is remarkably reduced, and the complexity and the error-prone property of traditional manual script writing are avoided.
Owner:SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Strategy code generation method, device and equipment

The invention discloses a strategy code generation method, device and equipment, and relates to the technical field of code transformation.The strategy code generation method comprises the steps that a first script file is obtained, and a corresponding abstract syntax tree is generated according to the first script file; according to a dependency graph corresponding to the abstract syntax tree, splitting the first script file according to the dependency graph, and determining a plurality of code snippets and a dependency relationship among the code snippets; the code snippets and a first cue word are input into a preset large language model, strategy codes corresponding to the code snippets are output by the large language model, and the first cue word at least comprises a dependency relationship; and assembling the strategy codes corresponding to the code snippets to obtain a target strategy code file. The technical problem that code conversion by using a large language model is limited by a context window can be solved.
Owner:WEBANK (CHINA)

Code data conversion method, system and electronic device

PendingCN122285015AData transformationLogisim
This application discloses a code data conversion method, system, and electronic device, relating to the field of high-performance computing technology. The code data conversion method of this application uses a pre-trained model fine-tuned based on different training sets to convert code data of different forms, improving the accuracy of code conversion. Furthermore, this application provides code correctness verification logic; in the event of verification failure, a conversion rollback operation is added, enabling automatic execution of code conversion and improving efficiency. Therefore, this application can solve the technical problems of low conversion accuracy and inefficiency, achieving the technical effect of improving both the efficiency and accuracy of code conversion.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Code conversion method and device, medium, electronic equipment and program product

The invention discloses a code conversion method and device, a medium, electronic equipment and a program product, and relates to the technical field of computers, and the method comprises the following steps: obtaining a source code file, and processing the source code file to obtain a plurality of abstract syntax trees; traversing each node in the abstract syntax tree according to a pre-registered hook function, and mounting a target processing function for a target node meeting a specified condition; printing operation is executed on the abstract syntax tree on which the target processing function is mounted, a target file is obtained, and the printing operation is used for executing the target processing function mounted on the abstract syntax tree. According to the method, the mounting operation and the printing operation are executed on the abstract syntax tree obtained through analysis, so that the code conversion efficiency can be improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Code migration method and device, electronic equipment and storage medium

The embodiment of the application belongs to the field of cryptography, and relates to a code migration method and device, an electronic device and a storage medium. When code related to protected password operations in the source code of a password application program needs to be migrated to a target secure running environment, the method automatically identifies the code related to the protected password operations in the source code through an intelligent agent, and converts the code into a programming language supported by the target environment. Subsequently, the converted code is compiled, function consistency is verified, and compatibility is adjusted to generate final code highly adapted to the target environment and complete deployment. The application realizes full-process automation from password operation identification, code conversion, verification to deployment, significantly improves the accuracy and efficiency of password application migration, reduces the technical threshold and labor cost of manual modification, and ensures the function consistency, environment compatibility and running safety of the code after migration, thereby guaranteeing the safety, continuity and reliability of the password service.
Owner:BEIJING INFOSEC TECH CO LTD +1

Code conversion method and device, equipment, storage medium and program product

The invention provides a code conversion method and device, equipment, a storage medium and a program product, and relates to the field of financial science and technology. The method comprises the steps of obtaining a to-be-converted first code, and processing the first code to obtain a first intermediate code; the first code is a code of a page generated by the server; converting the first intermediate code based on a preset knowledge base rule to obtain a second intermediate code; the knowledge base rule comprises a component mapping relation table, a frame grammar mapping relation table, an unstructured case rule and a user-defined rule; generating a second code based on the second intermediate code; and the second code is a code for constructing a client architecture of a user interface, so that by constructing an automatic code conversion process, the dependence on skills of developers is reduced, the conversion efficiency and consistency are remarkably improved, and the expansibility and flexibility are ensured through a configurable knowledge base rule, thereby supporting rapid iterative update of a front-end project.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Standardizing enterprise software code through LLMs

A computer-implemented method and system standardize code patterns within enterprise software environments. A code modernization system utilizes a Large Language Model (LLM) and a specialized prompt library. The library includes pattern recognition prompts to guide the LLM in identifying specific code patterns within selected software code, potentially using enterprise-specific context. It also includes standardized solution prompts to guide the LLM in generating replacement code conforming to predefined enterprise standards for the identified patterns. The system orchestrates communication, transmitting code and relevant prompts to the LLM and receiving identified patterns and subsequently the generated standardized replacement code. This automated approach facilitates improved code quality, consistency, maintainability, and can support code translation efforts within the enterprise.
Owner:MORGAN STANLEY SERVICES GROUP INC

Translation of vulnerable code to remediated code

A code translation apparatus receives a source code including one or more code vulnerabilities and automatically generates remediated code. The source code provided to the code translation apparatus is converted to a source directional graph. The edges of the source directional graph are augmented with additional edge attributes. The source directional graph thus augmented is further converted into a source graph vector representation. The source graph vector representation is provided to an encoder of a trained code transformer. The remediated code is obtained from the decoder of the trained code transformer.
Owner:ACCENTURE GLOBAL SOLUTIONS LTD

Code mapping conversion method and device and electronic equipment

The invention provides a code mapping conversion method and device and electronic equipment, a design plug-in responds to a code conversion request for a target design draft, and a design component contained in the target design draft is obtained; searching a mapping function corresponding to the design component, and converting the design component into a target code based on the mapping function; wherein the mapping function is a function which is debugged in advance and is used for defining conversion logic from the design component to the code component; and generating a design code corresponding to the target design draft based on the target code corresponding to the design component. In the mode, the design plug-in not only can accurately position the mapping function corresponding to the design component, but also integrates mapping function analysis and execution logic, real-time conversion from the design component to the code component can be realized based on the mapping function, and the code conversion efficiency and accuracy are improved.
Owner:HANGZHOU NETEASE ZHIQI TECH CO LTD

Program conversion device, program conversion method, and program

PCT designated stageWO2026042241A1Source to sourceSoftware engineeringSource code
This program conversion device (1, 2) comprises: a source code analysis unit (12) that analyzes a first source code before conversion and outputs, as an analysis result, a processing content and a type of computing resource to be used; a conversion method database (13) that stores, for each processing content, a source code conversion method corresponding to a combination of the type of computing resource used by the first source code before the conversion and the type of computing resource used by a second source code after the conversion; and a source code conversion unit (14) that refers to, on the basis of the analysis result passed from the source code analysis unit (12) and the type of computing resource used by the second source code after the conversion, the conversion method database (13), and acquires and applies, for each processing content, the source code conversion method for each processing content to convert the first source code into the second source code.
Owner:NT T INC