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

38 results about "Program transformation" patented technology

A program transformation is any operation that takes a computer program and generates another program. In many cases the transformed program is required to be semantically equivalent to the original, relative to a particular formal semantics and in fewer cases the transformations result in programs that semantically differ from the original in predictable ways.

Traceable data conversion method and system based on declarative rule

The invention discloses a traceable data conversion method and system based on declarative rules, and relates to the technical field of data processing. The method comprises the following steps: acquiring a conversion rule file written by adopting a PTL (Program Transfer Language), and defining a mapping relationship between a target data column and a source data field in a declarative manner; analyzing the rule file to generate an operation instruction set, and processing the source data line by line based on the instruction set to generate a target data file; and meanwhile, outputting the traceability metadata, and recording the corresponding relationship between the target data and the source fields and the rule statements in a machine readable form. Flexible and accurate conversion between various data sources and target formats is achieved, complexity of manual operation and script development is avoided, data processing efficiency and reliability are improved, a complete traceable mechanism is established, transparency and compliance of the data exchange process are enhanced, the method is suitable for conversion of various formats such as Excel, databases, XML and JSON, and the method has wide application prospects. The method has universality and application prospects.
Owner:JIANGSU INST OF QUALITY & STANDARDIZATION

Program conversion method and compiling device

The embodiment of the invention provides a program conversion method and a compiling device, and relates to the technical field of computers, in the method, an IR file of a GPU program is obtained to serve as a to-be-converted file, for a function parameter of any function in the to-be-converted file, the function parameter is converted into a function parameter matched with a CPU, and the converted parameter is obtained. And determining the IR statement having data dependence with the converted parameter as a statement to be adapted. And for any statement to be adapted, adjusting the statement to be adapted based on the parameter type of the converted parameter and the thread execution mask of the CPU. And compiling the adjusted to-be-converted file to obtain an executable file adaptive to the CPU. The GPU programs written by different high-level languages can be converted into the IR file, so that the conversion is carried out from the dimension of the IR file, and the support for different high-level languages can be realized. Therefore, the limitation is lower.
Owner:LOONGSON TECH CORP

Form file and graphic program conversion method, storage medium and electronic equipment

The invention belongs to the technical field of vehicle software development, and particularly relates to a method for converting a form file into a graphic program, which is used for converting the form file into the graphic program and comprises the following steps of: reading the form file so as to read text contents and coordinate information of all cells in at least one page of the form file into a corresponding two-dimensional object array, the name of each two-dimensional object array is set as a corresponding page name; analyzing each two-dimensional object array into a flow chart area and an attribute area in sequence according to pages; constructing a graphic program according to an analysis result; and / or converting the graphic program into a table file, including creating table empty pages, the number of the table empty pages being equal to the sum of the number of the main program and the number of the nested subprograms of the graphic program; corresponding table pages are sequentially constructed according to program categories in the graphic program, one page corresponds to the main program, and the other pages correspond to the corresponding nested subprograms; and storing the constructed form file.
Owner:SHANGHAI TOSUN TECH LTD

Code generation method and device, storage medium and electronic equipment

The invention provides a code generation method and device, a storage medium and electronic equipment, and relates to the technical field of industrial control, the method comprises the following steps: receiving programming intention data, the programming intention data comprising at least one of a natural language text and an industrial control program of a first programming language; analyzing the programming intention data to obtain a control logic description of the programming intention data; generating an abstract syntax tree based on the logic control description; and in response to a code generation instruction, converting the abstract syntax tree into a program code of a second programming language corresponding to the code generation instruction. By applying the method provided by the embodiment of the invention, program conversion can be quickly and accurately carried out.
Owner:SUPCON TECH CO LTD

Method and system for cobol to java program conversion based on syntax tree

PendingCN122411953APathPingSource code file
The application discloses a COBOL-to-Java program conversion method and system based on a syntax tree, belongs to the technical field of computer program language conversion, and comprises the following steps: obtaining a COBOL source program file to be converted and configuration rules; performing lexical analysis and syntax analysis to generate an abstract syntax tree; converting COBOL syntax elements into corresponding Java semantic representations according to pre-defined semantic mapping rules; establishing an accurate access chain of a main program and COPYBOOK internal variables through variable path tracking; detecting and solving naming conflicts of COBOL different-level same-name variables based on a scope tree, and renaming variables by adding a parent class name prefix; and generating the converted Java semantic representations into a Java source code file. The application realizes high-fidelity and high-automation COBOL-to-Java conversion, significantly reduces the migration cost of a legacy system, and generates code with strong readability and excellent performance.
Owner:SHANDONG CITY COMMERCIAL BANK COOP ALLIANCE CO LTD

Computer-readable recording medium, conversion method, and conversion apparatus

To provide a conversion program, a conversion method and a conversion device for improving processing capability.SOLUTION: Acquiring a mapping result including a predetermined DFG and information on assignment of operations to respective computing units and wiring between the computing units determined so as to correspond to the predetermined DFG for a CGRA having a plurality of computing units, and extracting a portion corresponding to a predetermined DFG pattern from the predetermined DFG; A computer is made to execute processing for determining a conversion candidate DFG from among DFGs corresponding to a pattern of an extraction place on the basis of a position to which the extraction place in a mapping result is assigned and the number of transmission paths of data to be used between arithmetic units, and generating a converted DFG by converting a predetermined DFG on the basis of the conversion candidate DFG.SELECTED DRAWING: Figure 6
Owner:FUJITSU LTD

Program conversion method

Provided is a program conversion method that can transfer a predetermined program using AI to information processing devices with different execution environments and can effectively utilize the predetermined program in various environments. 【Solution means】 A Using I te ok A processing execution unit that executes processing on the activation opportunity, and Includes A certain predetermined program Mu is an interface for referring to external data used by the AI, and , the includes information regarding the OS implemented on the information processing device of one environment. Also Ta, P The program conversion method is the predetermined program executable on the OS of the information processing device of the first environment source code compiled by the information processing device of the first environment , the A program generation step of generating an execution program in an execution format executable on the OS of the information processing device of the second environment, exporting the execution program from the information processing device of the first environment and importing it into the information processing device of the second environment, and implementing the execution program on the information processing device of the second environment This makes it possible to execute the predetermined program on the OS of the information processing device in the second environment. A program transfer step, and has.
Owner:D4ALL CO LTD

Program compiling method, electronic equipment and program product

The invention provides a program compiling method. The program compiling method comprises the steps that a P4 program is converted into a first control flow diagram; edges in the first control flow graph comprise control edges for representing control relations, and node attributes in the first control flow graph comprise definition variables and use variables; according to a matching relationship between the definition variable and the use variable, constructing a data dependence edge in the first control flow diagram to obtain a second control flow diagram; and converting the second control flow graph into a program corresponding to the target compiling language according to a translation rule, a control edge and a data dependence edge between the elements of the P4 language and the corresponding elements of the target language. The disclosure also provides an electronic device and a computer program product.
Owner:XIAMEN UNIV

Conversion device, relay device, control device, and control system

A control system according to the present disclosure is provided with: a conversion device having a model conversion unit that creates model information comprising one or more nodes and correlation information for the nodes on the basis of model node information comprising one or more nodes and the correlation information for the nodes, and a program conversion unit that converts the model information into a program information comprising one or more nodes and the correlation information for the nodes; a program conversion unit that creates program information including a process associated with the node by one or more pieces of association information and the association information on the basis of a source code including the process associated with the node by one or more pieces of association information and the association information; and a relay device having a data processing execution unit that executes a predetermined process on the basis of the model information and the program information.
Owner:FANUC LTD

Cross-platform Matlab real-time calculation method

The invention discloses a cross-platform Matlab real-time calculation method, which comprises the following steps of: 1) defining a function signature of a matlab algorithm function under a c / c + + language specification and a data structure of interaction between the function signature and an application program; 2) defining a function pointer, and initializing the function pointer to be null; 3) writing codes of the application program; 4) writing a script program of a matlab algorithm function; 5) converting a script program of the matlab algorithm function into a c / c + + code; 6) modifying a function pointer to point to an entry function address of the c / c + + code; 7) copying the c / c + + code and the code of the application program to a new directory, scanning all source files in the new directory, and compiling the source files into an executable program in the target running environment; 8, the executable program is transmitted to the target operation environment to be executable. According to the calculation method, the strong calculation capacity of Matlab is achieved, real-time data processing is achieved, the data processing performance is greatly improved, and the popularization value is high.
Owner:AVIC GENERAL TECH CO LTD

Lightweight program conversion method and device and terminal equipment

The invention provides a lightweight program conversion method and device and terminal device.The lightweight program conversion method comprises the steps that firstly, a project file set and a conversion configuration set are obtained, and then a first source code file and a second source code file in the project file set are divided according to file types; and converting the first source code file and the second source code file based on the conversion configuration set, and finally integrating to obtain a target lightweight program. According to the method, the source code file is converted on the basis of the conversion configuration set, so that the problem of rigidity of existing simple character string replacement is avoided, meanwhile, manual intervention links are greatly reduced, high dependence on experience of developers is avoided, and the conversion efficiency and accuracy of lightweight programs are remarkably improved.
Owner:ZHUHAI KINGSOFT OFFICE SOFTWARE +2

Information processing device

This information processing device suppresses the increase in man-hours required for converting application source code, even when the number of frameworks to be converted increases. [Solution] The program conversion device 10, which is an information processing device 10, includes a first source code acquisition unit 101 that acquires a first source code corresponding to a first framework, and a second source code acquisition unit 106 that creates a prompt by incorporating the first source code acquired by the first source code acquisition unit into a prompt template for converting the first source code into a second source code corresponding to a second framework different from the first framework, and acquires a second source code created by executing a generative artificial intelligence using the prompt.
Owner:HITACHI LTD

Program conversion device, numerical control device, and program conversion method

The program conversion device (1) is used when controlling the tool attitude, which is the attitude of the tool relative to the workpiece, using a rotary axis, and includes a defective block extraction unit (131) that refers to a machining program (31) including a plurality of command blocks indicating the tool attitude, and extracts defective blocks, which are command blocks that cause defects in machining due to the tool attitude, from the machining program, and a command block correction unit (132) that corrects the defective blocks so that an increase in the movement time of the rotary axis is suppressed and the tool attitude indicated by the extracted defective blocks falls within a preset tolerance range with respect to a reference position indicating a reference tool attitude.
Owner:MITSUBISHI ELECTRIC CORP

CUDA (Compute Unified Device Architecture) source program compiling method based on general compiler and related equipment

The invention provides a CUDA (Compute Unified Device Architecture) source program compiling method and related equipment based on a universal compiler, and the method comprises the following steps: executing preprocessing operation on source codes of a CUDA source program, and respectively generating a first intermediate file and a second intermediate file; scanning a host side code in the first intermediate file to identify a target function identifier representing equipment side execution semantics, and executing a reconstruction operation on a function containing the target function identifier to generate a proxy function used for triggering equipment side execution; scanning a device side code in the second intermediate file to identify a target function identifier, and performing semantic removal processing on the target function identifier to generate a device side executable function code; generating a host side target file, generating a device side target file, and further generating a device side dynamic link file; and forming a target file. By the adoption of the scheme, the CUDA program can be converted into the target program capable of running on the CPU, and the running environment construction cost is reduced.
Owner:SHANGHAI SMARTLOGIC TECHNOLOGY 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

Conversion device, relay device, control device, and control system

PCT designated stage expiredWO2025009169A9Model driven codeSource to sourceControl systemTrunking
A control system according to the present disclosure comprises: a conversion device provided with a model conversion unit that, from model node information composed of one or more nodes and linking information for said nodes, creates model information composed of one or more nodes and linking information for said nodes, and a program conversion unit that, from a source code including a process associated with the node by one or more pieces of linking information, and said linking information, creates program information including the process associated with the node by the one or more pieces of linking information, and said linking information; and a relay device provided with a data process execution unit that executes a prescribed process on the basis of the model information and the program information.
Owner:FANUC LTD

Generating new software code from legacy software code using large language models

Computer-implemented systems and methods use a Large Language Model (LLM) for converting a legacy computer program in a first language to a human-language description of the legacy computer program, which description can be validated as being an accurate description of the legacy computer program. Once validated, the human-language description can be converted, again using an LLM, to a computer program in a target programming language. An LLM can also be used to generate test scripts for the new target-language program to test the performance of the target-language program in a production environment. An LLM can also be used to reconcile outputs from the legacy program to the new target program, such as on a function-by-function basis. If the differences between the outputs (if any) are sufficiently negligible, the legacy computer program can be decommissioned, and the new, target language program can be used in production.
Owner:MORGAN STANLEY SERVICES GROUP INC

Programming language conversion system, programming language conversion method, and program

The object is to provide a system that can appropriately convert assembly language into other programming languages. [Solution] A programming language conversion system that converts an original program written in assembly language into a converted program written in a programming language different from assembly language, comprising: a generation unit that generates an intermediate program including original description items corresponding to the description of the original program, register items that are descriptions corresponding to each of a predetermined number of registers in the assembly language, and a first linkage item that is a description for reserving address space for a first instruction that specifies a displacement using a first register among the predetermined number of registers; and a conversion unit that converts the intermediate program into the converted program.
Owner:유겐가이샤티아이에스

Program conversion device, numerical control device, and program conversion method

A program conversion device (1) comprises: a defective block extraction unit (131) that refers to a processing program (31) that is used when the tool posture, which is the posture of a tool relative to a workpiece, is controlled by a rotary shaft and that includes a plurality of command blocks indicating the tool posture, and extracts, from the processing program, a defective block that is a command block causing a defect in processing due to the tool posture; and a command block correction unit (132) that corrects the defective block such that an increase in the movement time of the rotary shaft is suppressed and the tool posture indicated by the extracted defective block falls within a preset allowable range with respect to a reference position indicating the tool posture serving as a reference.
Owner:MITSUBISHI ELECTRIC CORP

Dataflow based guidance for buffer allocation in multicore architectures

Providing dataflow based guidance for buffer allocation in a multicore circuit architecture includes converting, using computer hardware, an application specified in a high-level programming language into an intermediate representation. Buffers of dataflows of the intermediate representation are detected. Determining whether the buffers are independent or dependent based on an analysis of the dataflows of the intermediate representation. Buffer constraints are generated. The buffer constraints specify whether the buffers are independent and dictate a mapping of the buffers in the multicore circuit architecture.
Owner:XILINX INC

System and method for optimizing machine learning inference systems and processes for operating a compiler therefor

A computer system is provided for compiling computer programs using machine learning compilers. The method includes obtaining a first computer program written in a script with a defined programming language dialect for a particular machine learning compiler, defining a higher level intermediate representation (IR) that represents the first computer program written with the defined programming language dialect; generating a second computer program represented in the higher level IR; deriving a plurality of new optimization passes based on the higher level IR; converting the second computer program represented in the higher level IR into a third computer program represented in one or more lower-level IRs that exist in the machine learning compiler; applying a plurality of existing optimization passes to generate an optimized fourth computer program represented in the existing lower-level IR; and converting the optimized fourth computer program represented in the existing lower- level IR-to-machine instructions.
Owner:CENTML AI INC

Program conversion method and device based on difference table and terminal equipment

The invention provides a program conversion method and device based on a difference table and terminal device.According to the program conversion method and device based on the difference table, a project file set and a difference table set are obtained, and then a first source code file and a second source code file in the project file set are divided according to file types; and after analyzing the first source code file into an abstract syntax tree, directly converting the first source code file based on a preset conversion rule in the difference table, and after analyzing the second source code file into the abstract syntax tree, directly converting the second source code file based on the preset conversion rule in the difference table, and finally integrating to obtain a target lightweight program. According to the method, the conversion rule is packaged through the difference table and the source code file is converted, so that the condition of code errors after conversion caused by simple character string replacement in the prior art is effectively avoided, in addition, manual intervention is greatly reduced through the automatic conversion mode based on the difference table, the conversion efficiency is improved, and the conversion cost is reduced. And the dependence on experience of developers is avoided, and the conversion efficiency and accuracy of the lightweight program are remarkably improved.
Owner:ZHUHAI KINGSOFT OFFICE SOFTWARE +2

Sensitive information flow tracking and tracing method and system based on high-order function abstract

The invention discloses a sensitive information flow tracking and tracing method and system based on a high-order function abstract, and relates to the technical field of program analysis and supply chain safety. The method comprises the steps of receiving and preprocessing a to-be-tested program, performing dependency analysis on a function module of the to-be-tested program, converting the to-be-tested program into an intermediate language, constructing a cross-module function call graph and a control flow graph, traversing the function call graph according to an inverse topological sequence, and determining a function analysis sequence; carrying out analysis parameter configuration, and defining a related sensitive source, a related sensitive sink and a control probability set; and constructing an in-process analysis framework. According to the method, through high-order function abstract and dependency matrix operation, a data flow path in an open source software supply chain can be effectively analyzed, the dependency relationship between functions can be captured, tracing is carried out, an abstract matrix is stored as a sparse matrix, therefore, the space overhead in the analysis process can be effectively reduced, and the analysis efficiency is improved. And the detection efficiency of the sensitive information flow in the process is improved on the premise of not losing the detection precision.
Owner:NANJING UNIV OF POSTS & TELECOMM

Program conversion apparatus and method to convert program into a homomorphic encryption program

A program conversion apparatus converts a first program to which homomorphic encryption is not applied into a second program to which the homomorphic encryption is applied. The program conversion apparatus may include a memory, which stores a first library for configuring the first program and a second library for configuring the second program. The program conversion apparatus may include a processor, which converts the first program into the second program through conversion between operations provided by the first and second libraries. A program conversion method and a computer program recorded on a computer-readable storage medium are also disclosed.
Owner:ELECTRONICS & TELECOMM RES INST

System and Method for Optimizing Machine Learning Inference Systems and Processes for Operating A Compiler Therefor

A computer system is provided for compiling computer programs using machine learning compilers. The method includes obtaining a first computer program written in a script with a defined programming language dialect for a particular machine learning compiler, defining a higher level intermediate representation (IR) that represents the first computer program written with the defined programming language dialect; generating a second computer program represented in the higher level IR; deriving a plurality of new optimization passes based on the higher level IR; converting the second computer program represented in the higher level IR into a third computer program represented in one or more lower-level IRs that exist in the machine learning compiler; applying a plurality of existing optimization passes to generate an optimized fourth computer program represented in the existing lower-level IR; and converting the optimized fourth computer program represented in the existing lower-level IR-to-machine instructions.
Owner:CENTML AI INC

Program code compiling method and device, computer device and storage medium

The application relates to the field of computer programs, and provides a program code compiling method and device, equipment and a computer storage medium, the method comprising the following steps: acquiring a code compiling instruction, and identifying instruction parameters in the code compiling instruction; acquiring a source file corresponding to the code compiling instruction, and identifying a main thread and a sub-thread in the source file in the case of identifying target instruction parameters; acquiring first variable definition information corresponding to the main thread and second variable definition information corresponding to the sub-thread; converting a main program in the source file into a first bytecode file according to the first variable definition information, and converting a sub-program in the source file into a second bytecode file according to the second variable definition information; modifying the second bytecode file according to the first variable definition information to obtain a third bytecode file; and determining a target file corresponding to the source file according to the first bytecode file and the third bytecode file.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Controller with co-processor, method, medium, and device for quantum computer

An electronic controller with a co-processor, a control method, a medium, and an electronic device are provided. The electronic controller is used for a quantum computer and comprises the first device and the second device. The first device comprises a compiler. The second device is communicatively connected to the first device and comprises a DSP and the co-processor. The compiler is configured to: obtain a quantum program written in the first programming language by a user; in response to the quantum program corresponding to the DSP, translate the quantum program into an API in the second programming language, and send an instruction contained in the API to the DSP; and in response to the quantum program corresponding to the co-processor, translate the quantum program into a program in the third programming language, generate an executable file, and send the executable file to the co-processor.
Owner:ANYON TECHNOLOGIES PTE LTD

High-level comprehensive performance prediction method and device, electronic equipment and storage medium

The invention discloses a high-level comprehensive performance prediction method and device, electronic equipment and a storage medium, and relates to the technical field of artificial intelligence. According to the application, a program written by a high-level language is converted into intermediate representation of a bottom-layer virtual machine, and a control data flow diagram containing basic blocks is constructed; according to the method, a high-level comprehensive optimization instruction is combined to introduce a resource reuse dependency edge to generate an instruction optimization graph, then a TransformmerConv-based graph neural network model is utilized to fuse node and edge features through a self-attention mechanism, and finally, regression prediction is performed in combination with global hardware information. The problems that an existing high-level comprehensive performance prediction method is insufficient in prediction precision and efficiency when facing complex design, and the influence of an optimization instruction on hardware performance is difficult to accurately predict can be solved, and the technical effect of improving high-level comprehensive design performance index prediction accuracy and efficiency is achieved.
Owner:CHINA MOBILE GRP HENAN CO LTD +1

Program conversion by code distillation

A source code conversion system converts a source code segment in an original source code programming language into distillation code that holds core semantics, logical streams, and data streams of the source code segment in a language independent format. The distillation code is then converted by an anti-compiler into semantically equivalent source code segments of different programming languages. The anti-compiler is configured as a neural transformer model with attention that is pre-trained for transformations using mask language modeling, de-noising auto-encoding, and multi-language program generation. An anti-compiler converts the distillation code into one of several different high-level programming languages.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Techniques for converting control flow programs to data flow programs using control dependence graphs

An apparatus for automatically converting a control-flow program into a data-flow program includes a non-transitory machine-readable medium and a translator stored in the machine-readable medium. The translator, when executed by a data processing system, enables the data processing system to (a) automatically generate a control dependence graph of the control-flow program, (b) automatically generate a data-flow graph based at least in part on the control dependence graph, and (c) automatically generate a data-flow program based at least in part on the data-flow graph. In one embodiment or scenario, in response to determining that a variable of the control-flow program is defined in one control dependence region and used in a different control dependence region, the translator can also automatically insert a switch instruction into the data-flow program. Other embodiments are described and claimed.
Owner:INTEL CORP