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

32 results about "Blocks" patented technology

Blocks are a non-standard extension added by Apple Inc. to Clang's implementations of the C, C++, and Objective-C programming languages that uses a lambda expression-like syntax to create closures within these languages. Blocks are supported for programs developed for Mac OS X 10.6+ and iOS 4.0+, although third-party runtimes allow use on Mac OS X 10.5 and iOS 2.2+ and non-Apple systems.

Method for generating test program for testing Solidiity smart contract compiler

PendingCN120631372ACode compilationSmart contractSolidity
The invention relates to the technical field of computers, and discloses a method for generating a test program for testing a Solidiity smart contract compiler, which comprises the following steps of: defect directional triggering: inserting a Solidiity variable through an inline assembly block to expose an optimizer defect, and limiting a dynamic array / character string to be expanded to at most one element at a time; semantic consistency control: eliminating intermediate representation behavior differences by adopting a placeholder counter, and preventing border crossing through an array length check instruction; and resource conflict arbitration: managing EVM stack variables by using a block scope, and nesting hierarchies based on a depth threshold truncation function. Through triple innovative design of defect directional triggering, semantic consistency control and resource conflict arbitration, the fundamental contradiction among semantic ambiguity, low defect detection rate and resource constraint in the Solidity compiler test is systematically solved.
Owner:SHANDONG UNIV

Mimicry thought-based code dynamic obfuscation compiling method, system and equipment

The invention discloses a mimicry thought-based code dynamic obfuscation compiling method, system and equipment. The method comprises the following steps of: sensing a source code, and performing compiler annotation on a key function in combination with a large language model and expert knowledge; a global character string constant is extracted, an ASCII value of a character is coded into an MBA expression, a decoding function is inserted into a position where the constant is used, mimicry replacement is performed on an original character string in a data segment, and functions of other programs are disguised; adding a clone block irrelevant to function logic, and constructing a mimicry branch by using a dynamic opaque predicate as a jump condition; adding an equivalent heterogeneous shadow branch, and using a random predicate as a jump condition; a flower instruction is inserted, and an MBA expression is used for instruction replacement; and performing control flow flattening on the function. According to the method, the mimicry multi-variant thought is combined, accurate diversified confusion compilation is performed, and key fragments of program codes in the fields of industrial control, power grids, Internet of Things and the like are effectively protected.
Owner:NARI INFORMATION & COMM TECH

Hierarchical translation between low-level programming languages and high-level programming languages

Techniques are described herein for translating between low-level languages and high-level languages. A method includes: receiving first source code in assembly language, the first source code including a plurality of code blocks, and each code block of the plurality of code blocks including a plurality of lines of assembly code; for each of the plurality of code blocks: for each of the plurality of lines of assembly code in the code block, processing the line of assembly code to generate a natural language description of the line of assembly code; and processing the code block and the natural language descriptions of the plurality of lines of assembly code in the code block to generate a natural language description of the code block; and processing the natural language descriptions of the plurality of code blocks to generate a natural language description of the first source code.
Owner:GOOGLE LLC

Graphical Real-World Block Programming Monitoring Method and System

This invention discloses a graphical real-world block programming monitoring method and system, relating to the field of children's programming. The method includes: acquiring the outline features of variable blocks, condition blocks, loop blocks, operation blocks, and logical judgment blocks; acquiring at least one basic local structure of the block programming, and pre-acquiring test data and result data of the basic local structure; determining whether the block programming has completed the actual local structure; calculating the overlap ratio between the feature local structure and the basic local structure to be identified; selecting the basic local structure to be identified with the largest overlap ratio as a similar local structure of the feature local structure; acquiring test data and result data of similar local structures; obtaining the target local structure; obtaining feature result data; and comparing the feature result data with similar result data for consistency. By setting up a structure recognition module, a data acquisition module, an instruction adjustment module, and a comparison module, children can complete self-correction, ensuring their interest in learning.
Owner:WUHAN GUITU EDUCATION TECH CO LTD

Cross-ISA extension program translation method based on binary rewriting

The invention discloses a cross-ISA (Industrial Standard Architecture) extension program translation method based on binary rewriting, which comprises the following steps of: 1) naming an instruction set ISA of a program to be translated as an original ISA, and naming an instruction set ISA on target hardware for running original ISA extension as a target ISA; 2) performing comparative analysis on a binary file corresponding to the original ISA extension compilation and a binary file corresponding to the target ISA extension compilation to obtain an instruction needing to be translated relative to the target ISA extension in the original ISA extension, and segmenting the instruction into a plurality of program basic blocks needing to be translated; 3) allocating a jump instruction and an address space for translating and storing translated codes to each program basic block; (4) distributing the program basic blocks into the corresponding address spaces through a jump instruction to carry out static binary translation, and generating a static file; and (5) distributing a loading address for the static file by utilizing a loader according to the address distribution information in the static file, and loading the static file to a corresponding position.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Code compilation method, device, equipment and medium

The present invention relates to the field of compiler technology, and discloses a code compilation method, apparatus, device, and medium. The method comprises: obtaining assembly code to be compiled; obtaining target code variable blocks that meet preset standards in the assembly code based on a preset search algorithm; encapsulating the target code variable blocks and determining corresponding macro functions; and executing code compilation based on the macro functions. The present invention optimizes the assembly code to be compiled by merging identical target code variable blocks, using a preset search algorithm to determine consistent target code variable blocks, and encapsulating and determining macro functions to be compiled based on the target code variable blocks. This greatly improves the speed of program search, reduces the total number of code instruction bytes, reduces program memory, speeds up execution, and further improves the compilation efficiency of assembly language.
Owner:FORTIOR TECHNOLOGY (SHANGHAI) CO LTD

Software development support apparatus, software development support method, and software development support program

To reduce the burden of work for ensuring memory safety.SOLUTION: A storage unit 101 stores description rules for defining descriptions that are permitted within blocks in which unsafe is declared among the descriptions in the Rust language. An extraction unit 102 extracts the blocks in which unsafe is declared from source code of target software written in the Rust language. A determination unit 103 determines whether or not the description that is contained in the block extracted by the extraction unit 102 is permissible, in accordance with the description rules stored in the storage unit 101. An output unit 104 outputs information identifying the description that has been determined to be impermissible by the determination unit 103 from the source code of the target software.SELECTED DRAWING: Figure 8
Owner:FUJI ELECTRIC CO LTD

Reducing the computational load of neural networks using self-correcting code

In various implementations, systems and methods for reducing neural network processing are provided. A compiler can generate instructions from source code of a neural network having a set of repeatable operations. The instructions can include a plurality of blocks. The compiler can add override instructions to the plurality of blocks that trigger an override action when executed by one or more execution engines. The override action causes instructions of a subsequent block to be overridden with NOP instructions. The override action is triggered only when a condition is met.
Owner:AMAZON TECH INC

Intelligent compiling method and device for JS codes on front end side and medium

The invention discloses a front end side JS code intelligent compiling method and device and a medium, and relates to the technical field of computer program compilation, the method comprises the following steps: parsing a target function corresponding to a service request, and obtaining a plurality of to-be-compiled code blocks according to a pre-constructed code splitting index; the method comprises the following steps: acquiring runtime environment data of a client in real time, and generating compiling priority information; generating a compiling instruction sequence according to the compiling priority information through a preset compiling scheduler; performing real-time compiling through an end side compiling engine to generate a corresponding executable code; when it is detected that the source code of any to-be-compiled code block is changed, determining a change influence range; and performing incremental compiling on the recompiled atomic code blocks in the change influence range to generate corresponding new executable codes. Through end-side on-demand compilation and change of an influence range tracking mechanism, dynamic on-demand compilation and accurate incremental updating of front-end JS codes are realized, and the application loading efficiency and the resource utilization rate are remarkably improved.
Owner:浪潮智慧科技有限公司 +2

Hybrid code generation method and device, computer equipment and storage medium

The invention relates to a hybrid code generation method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring an initial mixed code, wherein the initial mixed code is compiled by mixing a preset back-end language, a preset front-end language and an identifier; extracting a plurality of initial code blocks from the initial mixed code according to identifiers, wherein the identifiers are used for wrapping different types of initial code blocks; according to the type of the initial code block, target code blocks, corresponding to the initial code block, of a preset back-end language are generated, and a target mixed code is obtained according to the multiple target code blocks. According to the method and the device, the complex code capable of realizing front-end and back-end interaction and webpage rendering is automatically generated based on the simple code written by the preset back-end language, the preset front-end language and the identifier in a mixed manner, so that the workload of programmers can be greatly reduced, the programming efficiency is improved, and the user experience is improved. And meanwhile, the problem that errors are easily caused when multiple programming languages are manually adopted for mixed programming is solved.
Owner:CHENGDU ZHUOZHUO TECHNOLOGY CO LTD

Method, device, and computer program product for data deduplication

Techniques for data deduplication compress and deduplicate a first set of blocks written to a source system to obtain a second set of blocks and compression ratios and numbers of duplications for blocks in the second set of blocks. Such techniques receive a request to back up the first set of blocks. Such techniques reconstruct, in response to receiving the request to back up the first set of blocks, the second set of blocks to obtain the first set of blocks. Such techniques mark, based on the compression ratios and the numbers of duplications, blocks in the first set of blocks with deduplication flags to obtain a third set of blocks. Such techniques transmit the third set of blocks to a destination system.
Owner:DELL PROD LP

Bytecode optimization method and device of executable file and electronic equipment

ActiveCN119088396ARealize optimization and transformationOptimize and transform to reduceEnergy efficient computingSoftware simulation/interpretation/emulationParallel computingBranch
The invention relates to the technical field of computers, and discloses a byte code optimization method and device of an executable file and electronic equipment. The method comprises the following steps: partitioning byte codes of a function of an executable file to obtain a plurality of program blocks; when the register assignment constant instruction is searched in the program block, judging whether a register in a subsequent instruction of the register assignment constant instruction is replaced by a preset assignment constant or not; if the first register is replaced, judging whether an instruction taking the first register as a source register or a target register exists after the register assignment constant instruction in the program block, and obtaining a preliminary deletion optimization judgment result; judging whether an instruction of jumping out of the program block by a branch exists after the register assignment constant instruction in the program block; if yes, judging whether an instruction taking the first register as a source register exists in the skipped program block or not; if the instruction taking the first register as the source register exists in the skipped program block, marking the register assignment constant instruction as an undeleted optimization instruction, otherwise, marking the register assignment constant instruction as a target deleted optimization instruction; and traversing each program block until each register assignment constant instruction is judged and the register assignment constant instruction marked as the target deletion optimization instruction is deleted. The register assignment constant instruction is deleted and optimized for the byte code of each function, and the compiled byte code is directly optimized, so that the size of an executable file is reduced, and the execution speed is increased.
Owner:WUHAN TIANYU INFORMATION IND

Detecting injection of faults in program counters altering execution of basic blocks of instructions

Presented herein are systems and methods of detecting faults in executing blocks of instructions. A processor coupled with memory can identify, from execution of a plurality of instructions of a block, an instruction associated with a program counter during execution of the block. Each instruction of the plurality of instructions can be assigned to one of a first plurality of tags. The first plurality of tags can be ordered in a pre-determined sequence for the block. The processor can compare a first tag of the first plurality of tags in the pre-determined sequence for the block with a second tag of a second plurality of tags assigned to the instruction associated with the program counter. The processor can detect, responsive to the first tag not matching the second tag, a fault with the program counter in the execution of the block.
Owner:THE CHARLES STARK DRAPER LABORATORY INC

Method, system and device for compiling and explaining high-level language of functional block and medium

The invention discloses a compiling and explaining method, system and device for a high-level language of a functional block and a medium, and belongs to the technical field of industrial control systems.The compiling and explaining method comprises the steps that compiling rules are defined; reading a high-level language program file, and generating a binary operation code file according to the compiling rule; downloading the binary operation code file to a configuration interpreter for execution; wherein the step of generating the binary operation code file comprises the substeps of mapping a keyword of a high-level language into an operation code, and compiling a variable into an operand; according to the compiling and explaining method, system and device for the high-level language of the functional block and the medium, a set of compiling and explaining method is self-defined for compiling and explaining the high-level program language of a functional block combination, and program codes can be compiled into binary operation codes; the key codes and the operation codes are presented in the form of a hash table, so that the compiling and explaining speed is increased; the method has good trafficability, correctness and high efficiency.
Owner:NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD

Coding blocks learning system and method

An exemplary system and method are disclosed for facilitating users in building programs through an assembly of physical objects. In some implementations, the exemplary system and method include (i) a plurality of physical coding blocks and (ii) an interface configured to recognize a combined sequence of physical blocks in the assembly, extract programming functions or logics from the recognized combined sequence, and generate compilable or interpretable code for a software development environment that can be compiled thereon into computer-readable instructions to program electronic devices.
Owner:GEORGIA TECH RES CORP

Method and apparatus for generating blocks of code using artificial intelligence

Aspects of the subject disclosure may include, for example, obtaining code data from a plurality of repositories that each include a particular domain-related code (e.g., network domain-related code); generating a NLP model based on the code data; receiving input (e.g., via an API or other technique) where the input includes a natural language statement from equipment of a programmer, and where the natural language statement indicating an intent of the programmer to generate a particular domain-specific code compatible with the particular domain-related code; generating, according to the intent of the programmer, a code block by applying the NLP model to the natural language statement; and providing the code block for presentation at the equipment of the programmer. Other embodiments are disclosed.
Owner:AT&T INTELLECTUAL PROPERTY I L P

Quantifiable Instruction Scheduling Method and System for SIMD and VLIW Architectures

The present invention discloses a quantifiable instruction scheduling method and system for SIMD and VLIW architectures. The present invention includes performing instruction parsing on the source code of a program; traversing the source code of the program to determine the scale of basic blocks; when the scale of a basic block is greater than a preset threshold k, executing an instruction scheduling strategy with functional unit pressure awareness to obtain a scheduling scheme; when the scale of a basic block is less than or equal to k, executing an instruction scheduling strategy based on functional unit pressure awareness and obtaining a scheduling scheme; calculating the lower bound of the scheduling length of the current basic block, and calculating the scheduling efficiency of the current basic block according to its actual scheduling length. The present invention can provide a suitable scheduling strategy for instruction scheduling problems of a specific scale, combine the allocation problems of time slots and functional units from a global perspective, improve the instruction scheduling efficiency, and solve the problem that the heuristic scheduling algorithms commonly used in existing mainstream compilers cannot perform quantitative analysis and the results are difficult to achieve optimality.
Owner:NAT UNIV OF DEFENSE TECH

A GPU Compiler Optimization Method

The present invention relates to the field of computer technology and provides a method for optimizing a GPU compiler. The method includes: traversing the basic blocks in each function, traversing the instructions in the basic blocks, and finding FMA instructions; taking the FMA instruction and several instructions before and after the FMA instruction together as a template matching window; according to the dependency relationships of the instructions, using the template matching window with at least one temporary instruction as the first window, matching the first window with each optimization template, and optimizing each instruction in the first window according to the rules corresponding to the optimization template to eliminate the temporary instructions. The present invention designs multiple optimization templates, enabling the compiler to recognize implicit common subexpressions and FMA expressions that can be simplified, and optimizing them through corresponding rules to delete the temporary instructions, thereby reducing redundant computations, making the generated assembly code as concise as possible, reducing redundant resource occupancy, and ultimately improving the execution efficiency of the program.
Owner:INNOSILICON MICROELECTRONICS (WUHAN) CO LTD

A detection method and device for heap memory errors

The present invention discloses a method and device for detecting heap memory errors, including: after selecting input parameters, performing concolic execution on the program under test; when tracing each execution trace path in concolic execution, generating corresponding branch constraints for each branch, detecting vulnerabilities for each code block related to heap operations, and generating vulnerability constraints for the code blocks with heap-related vulnerabilities; generating test cases for each execution trace path based on the branch constraints and vulnerability constraints corresponding to each execution trace path; inputting each test case into the program under test respectively to obtain the heap memory errors of the verified program under test. The present invention can effectively increase program coverage and find the target points to be analyzed as soon as possible, and minimize the system performance overhead on the premise of maintaining strong consistency with the real running environment of the program, and can detect different types of heap memory errors.
Owner:INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES

A basic block based compiler optimization method, system, medium, and device

PendingCN122507380AComputer hardwareCorrectness
This invention discloses a compiler optimization method, system, medium, and device based on basic blocks. The method includes: obtaining a machine code function to be optimized, the machine code function including several basic blocks; sequentially performing optimization operations on each basic block to obtain an optimized machine code function; wherein, for each basic block, the optimization operation includes: identifying instructions to be optimized within the basic block that belong to custom affine operations, the custom affine operations supporting at least two custom operation types; matching the operation type and modifier of the instructions to be optimized according to a preset affine factor mapping table; performing affine constant folding optimization on the successfully matched instructions to be optimized, and updating the affine factor mapping table according to the optimization result; and outputting the optimized machine code function so that the hardware device executes the optimized machine code function. This invention can significantly reduce the number of instructions, thereby improving running efficiency, while ensuring the correctness of optimization.
Owner:广州壁仞智能科技有限公司 +1

Task processing method and device, equipment, storage medium and program product

The invention provides a task processing method and device, equipment, a storage medium and a program product, and relates to the technical field of natural language processing. The method comprises the steps of obtaining a first instruction of a target first-class task, wherein the target first-class task comprises a plurality of target second-class tasks with a logical relationship; a first instruction of the target first-class task is input into the first large language model, a target block of the first large language model is obtained, the target block comprises a plurality of first blocks, different first blocks correspond to different target second-class tasks, and the first blocks comprise at least one layer of the first large language model; a target output result is obtained through cooperative processing of the multiple first blocks, and the target output result comprises a lexical element sequence output by the target block of the first large language model according to the layer sequence and lexical elements output by the last layer of the first large language model. According to the method, the reasoning efficiency and the problem solving capability of the large language model on complex tasks can be improved.
Owner:BEIJING ZHONGKE JINDEZHU INTELLIGENT TECH CO LTD

METHOD FOR OPERATION OF INFORMATION TECHNOLOGY SYSTEM, ... AND VEHICLE

The present invention relates to a method for operating an information technology system, in which a program code usable by a processor for processing at least one task (1.1, 1.2) is divided by a compiler into at least two functional blocks (2) during a compilation step, which are arranged in a data flow graph (3), and the compiler analyzes the data flow graph (3) to determine the execution order of each functional block (2) by the processor. The method according to the present invention is characterized in that, when processing the at least one task (1.1, 1.2), the compiler identifies functional blocks (2) that can be executed in parallel by the processor, checks for each group (4) of functional blocks (2) that can be executed in parallel whether at least program code portions of at least two functional blocks (2) require the execution of the same instruction (5) by the processor, and assigns these program code portions to the same execution unit of the processor for simultaneous processing according to a single instruction, multiple data approach.
Owner:MERCEDES BENZ GROUP AG

Compilation method, compiler, terminal and storage medium

The present invention provides a compilation method, a compiler, a terminal and a storage medium, the method comprising: statically analyzing a source program in the form of an original programming language to identify a first error handling mechanism code, the first error handling mechanism code being a potential error definition, an error throwing statement and an error catching code block; based on the category of the error throwing statement and the error propagation path, in combination with the characteristics of a target programming language, using a compiler to convert the source program to obtain a target program in the form of a target programming language, the target program including a second error handling mechanism code; the control flow graph of the target programming language has reducibility. The present invention converts the source program by determining and utilizing the category of the error throwing statement and the error propagation path, in combination with the reducibility of the control flow graph in the target programming language, thereby significantly expanding the scope of the target programming language that can be used and reducing additional memory allocation overhead.
Owner:SHENZHEN YUEBIT TECHNOLOGY CO LTD

Bytecode optimization method, device and electronic equipment for executable file

The present application relates to the technical field of computer, and discloses a bytecode optimization method and device for executable files and electronic equipment.The method comprises the following steps: dividing the bytecode of the functions of the executable file into blocks to obtain a plurality of program blocks; when a register assignment constant instruction is searched in the program block, judging whether the register in the subsequent instruction of the register assignment constant instruction is replaced by a preset assignment constant; if yes, judging whether there is an instruction taking the first register as a source register or a target register after the register assignment constant instruction in the program block to obtain a preliminary deletion optimization judgment result; judging whether there is an instruction branching out of the program block after the register assignment constant instruction in the program block; if yes, judging whether there is an instruction taking the first register as a source register in the program block jumped to; if yes, marking the register assignment constant instruction as an instruction that cannot be deleted and optimized, otherwise marking the register assignment constant instruction as a target instruction that can be deleted and optimized; and traversing each program block until the judgment on each register assignment constant instruction is completed and the register assignment constant instruction marked as the target instruction that can be deleted and optimized is deleted.The present application directly optimizes the compiled bytecode by performing the deletion and optimization of the register assignment constant instruction on the bytecode of each function, thereby reducing the size of the executable file and improving the execution speed.
Owner:WUHAN TIANYU INFORMATION IND

Method, system and electronic device for generating visual programming blocks, and storage medium

The present application relates to the technical field of visual programming, and discloses a generation method and system of visual programming blocks, an electronic device and a storage medium, the method comprising: acquiring block function requirement information in the form of program code; performing artificial intelligence understanding and analysis on the block function requirement information to obtain block structured metadata; determining the block type and attribute information of a target block according to the block structured metadata, and determining the configuration parameters of the target block according to the block type and attribute information; and generating a standardized configuration file of the target block based on the block type, attribute information and configuration parameters. The present application converts the graphical configuration understanding problem, which is not good at artificial intelligence, into the code program semantic understanding, which is good at artificial intelligence, can automatically generate block configuration files conforming to the specification, reduces the block development technical threshold and maintenance cost, reduces the artificial errors caused by manual intervention, shortens the development cycle, improves the development efficiency and standardization, and meets the demand for rapid iteration and expansion of the platform.
Owner:SHENZHEN DIANMAO TECH CO LTD

Method and system for generating engineering programs for an industrial domain

A method and system for generating engineering programs for one or more engineering objects in a technical installation is provided. The method includes receiving a request to generate an engineering program associated with the technical installation. The method further includes determining a set of programming blocks from a plurality of programming blocks corresponding to a set of industrial domains. The method further includes generating an ontology schema for the set of programming block. The ontology schema includes information about relationships between a set of variables corresponding to each programming block in the set of programming blocks and a set of Key performance indicators associated with the set of programming blocks. The method further includes generating the engineering program associated with the technical installation by modification of the set of programming blocks.
Owner:SIEMENS AG

A technique for scheduling instructions in compiled source code

Examples described herein generally involve generating a plurality of basic blocks from a list of source code for compiling the source code into an intermediate language; determining, for a first basic block of the plurality of basic blocks, a first heuristic associated with applying a first plurality of optimizations to the first basic block; determining, for a second basic block of the plurality of basic blocks, a second heuristic associated with applying a second plurality of optimizations to the second basic block; and based on the first heuristic and the second heuristic, applying one of the first plurality of optimizations to the first basic block to schedule a first instruction for the first basic block and applying one of the second plurality of optimizations to the second basic block to schedule a second instruction for the second basic block.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Multistage compiler architecture

A system includes a compiler including a plurality of compiler blocks. The compiler blocks of the plurality of compiler blocks are compossible. The compiler is configured to identify one or more resources in a hardware to execute a set of low-level instructions that is generated from a high-level function in a high-level code. The compiler is further configured to determine one or more processing operations to be performed that is associated with the high-level function in the high-level code. The determining of the one or more processing operations occurs based on architecture of the hardware. The compiler is configured to compile the high-level function in the high-level code of the application into the set of low-level instructions to be executed on the hardware.
Owner:MARVELL ASIA PTE LTD

Multistage compiler architecture

A system includes a compiler including a plurality of compiler blocks. The compiler blocks of the plurality of compiler blocks are compossible. The compiler is configured to identify one or more resources in a hardware to execute a set of low-level instructions that is generated from a high-level function in a high-level code. The compiler is further configured to determine one or more processing operations to be performed that is associated with the high-level function in the high-level code. The determining of the one or more processing operations occurs based on architecture of the hardware. The compiler is configured to compile the high-level function in the high-level code of the application into the set of low-level instructions to be executed on the hardware.
Owner:MARVELL ASIA PTE LTD