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

214 results about "Code line" patented technology

Sentiment analysis using magnitude of entities

Aspects of the present disclosure provide systems, methods, and computer-readable storage media that support automated source code review using sentiment analysis with magnitude of entities. Known compliant and non-compliant source code may be used to generate dictionaries for evaluating lines of code using AI and ML techniques, such as by clustering data entities (lines of software code) and performing sentiment analysis on the data entities (lines of software code) which accounts for a magnitude of the data entities in the software code. The dictionaries enable automated review and correction of non-compliant code, such as vulnerable or insecure code, during the coding process. For example, sentiment analysis may be performed using the dictionaries on in-development code to determine a polarity and magnitude score for each line of code. The scores for each line can be compared to one or more conditions to determine a remediation action for individual lines of code.
Owner:ACCENTURE GLOBAL SOLUTIONS LTD

Automatic invalid code elimination method and device, medium and product

The invention discloses an invalid code automatic elimination method and device, a medium and a product, and the method comprises the steps: carrying out compiling analysis processing on each program file in a to-be-processed target program item, generating a syntax tree model, and testing the compiled program file to obtain a program test result; unused variables in all the variables are identified through a syntax tree model, and uncovered code lines are positioned in combination with a test result; analyzing logic judgment conditions of uncovered code lines based on the syntax tree structure, and judging the code lines which cannot be triggered as unreachable codes; unused variables and unreachable codes in the program files are removed, new program items are obtained, and when the new program items are correctly compiled and executed, the new program items are used for replacing the target program items. Program redundancy is reduced, and execution efficiency is improved.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Source code hierarchy positioning method, electronic equipment and medium

The invention relates to the technical field of computers, in particular to a source code hierarchical positioning method, electronic equipment and a medium. Determining a target hierarchy corresponding to a target code line, a code range corresponding to the target hierarchy and code ranges of all target sub-hierarchies based on the code line hierarchical structure information of the code file; and displaying the code lines belonging to the target hierarchy, the code range corresponding to the target hierarchy and the code range of the target sub-hierarchy in the code lines in the visual range by adopting different display identifiers. According to the invention, code levels concerned by a user can be quickly and accurately positioned.
Owner:SHANGHAI UNIVISTA IND SOFTWARE GRP CO LTD +1

User-defined script dynamic editing execution method and system of Unity engine

The invention provides a user-defined script dynamic editing and executing method and system of a Unity engine. The method comprises the following steps that codes are input and preprocessed; executing text cleaning, word segmentation and annotation preprocessing according to the line feed as a code line set; grammatical analysis and semantic understanding; constructing an abstract syntax tree, identifying a syntax structure, and combining context analysis semantics to generate a symbol table; processing errors in real time; positioning an error line through a multi-stage matching strategy, highlighting an error position through a visual interface, and generating a repair suggestion in combination with a line number mapping table, error propagation analysis and a multi-evidence fusion mechanism; executing dynamic codes; explaining and executing the corrected script, and feeding back an execution result; through interaction with a Unity engine, operation control of a script on a game object and a scene is realized; through three core technologies of semantic weight dynamic matching, an anti-interference navigation state machine and a hybrid sorting algorithm, the long-standing problems of low matching precision, poor interaction experience and the like in the field of code completion are solved.
Owner:SHENZHEN LIUFENG TECHNOLOGY CO LTD

Code adoption rate determination method and device, equipment, storage medium and product

The invention discloses a code adoption rate determination method and device, equipment, a storage medium and a product, and relates to the technical field of software development, the code adoption rate determination method comprises the steps that a code line information base comprising a first code is constructed, and a reverse index corresponding to the first code is constructed based on the code line information base, the first code comprises one of the following: an auxiliary code generated by a large language model, and a new code of a target code warehouse within a target time period after the auxiliary code is generated by the large language model; and matching a second code with the first code through the code line information base and the reverse index to determine the code adoption rate corresponding to the auxiliary code. Therefore, the technical problem that the actual contribution of the large language model in the software development process is difficult to quantitatively evaluate can be solved, and the technical effect of determining the actual contribution of the large language model based on the code adoption rate is achieved.
Owner:JINAN INSPUR DATA TECH CO LTD

Formal verification method based on hierarchical verification framework

The invention discloses a formal verification method based on a hierarchical verification framework, which comprises the following steps of: firstly, dividing a target program into a C code and an assembly code, modeling and verifying the assembly code, then modeling and verifying the C code, and in the modeling process of the C code, carrying out verification on the C code; and defining a specific state and an abstract state of each data structure, establishing mapping through a refinement relationship, defining a function model based on the abstract state, constructing a function API specification, and finally defining system properties for a target program according to the function model and verifying the system properties. According to the method, a hierarchical verification framework and a formalization tool are combined, formalization verification is carried out on the target program from specific implementation to abstract division into three layers, comprehensive verification from bottom-layer codes to high-layer system properties is realized, the risk of security vulnerabilities is reduced, and the reliability of the target program is improved.
Owner:UNIV OF ELECTRONICS SCI & TECH OF CHINA

Computer network security software debugging method and system

The invention provides a computer network security software debugging method and system, and the method comprises the steps: setting a plurality of test nodes of a source program in target network security software, and positioning a key test node based on the execution state of each test node; constructing a target search domain when the source program is tested through the program context information of the key test node; determining a plurality of abnormal program slices in the source program based on the static control flow diagram and the dynamic control flow diagram of the program code in the target search domain; determining the test overhead of each program slice according to the test coverage information of each program slice and the path complexity when the source program executes the test data; determining the constraint level of each program slice according to all the test overhead and the membership relationship among the program slices; and debugging each program slice through the constraint level of each program slice. According to the scheme, on the basis of the constraint level of each program slice, the problem code line can be accurately pointed in the network security software debugging process.
Owner:CHENZHOU VOCATIONAL & TECH COLLEGE

Electric power information system security risk detection and defense method and system

PendingCN119961178AError detection/correctionBiological modelsAttackInformation systems security
The invention relates to the technical field of software security detection and defense, in particular to a power information system security risk detection and defense method and system. Identifying potential component vulnerabilities of the source code and the binary file based on an LSTM and an optimization recombination algorithm; setting a hook at the key point to monitor the running environment of the application program in real time, and discovering a potential vulnerability attack behavior; a dynamic stain tracking algorithm and a transparent object proxy mode are adopted to monitor a context executed by an application program and a source of a tracking variable, so that whether the application program is attacked or not is judged; when the attack is judged, an attack code line is accurately positioned by utilizing a context sensing method and a self-protection mechanism, so that real-time measures are conveniently taken to prevent the attack from being successful; the high heuristic algorithm based on the attack behavior defends unknown vulnerability attacks. Potential safety copper leakage in the codes can be found in time, the use environment of the software is monitored, potential attack behaviors are found and stopped, and the safety of the system software is guaranteed.
Owner:ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD

Slow SQL code positioning method, device and system and storage medium

The invention discloses a slow SQL code positioning method, device and system and a storage medium, and the method comprises the steps: configuring an SQL monitoring module in a target business system, so as to generate slow SQL log information under the condition that the SQL query time consumption of the target business system exceeds a threshold value; acquiring slow SQL log information, analyzing the slow SQL log information, and determining target analysis information; according to the version control information and the code positioning information, positioning a code line of the target code of the corresponding version, and obtaining submission information of the code line, the submission information comprising a code submission object; adding comment information in the code line, wherein the comment information comprises part or all of the target analysis information; in response to the adding operation of the comment information, a prompt message is sent to the code submission object, and the prompt message comprises part or all of the comment information. Therefore, the slow SQL can be detected, the corresponding code line can be automatically positioned, the comment information is added in the code line, the code submission object is notified in time, and the timeliness and convenience of maintenance can be improved.
Owner:ZHUHAI CHENGMI TECH CO LTD

Error log supervision method, device and system and storage medium

The invention discloses an error log supervision method, device and system and a storage medium. The error log supervision method comprises the steps of obtaining error log information of a target business system; analyzing the error log information, and determining target analysis information; a code line of a target code is positioned according to the target analysis information, submission information of the code line is obtained, and the submission information comprises a code submission object; adding comment information in the code line, wherein the comment information comprises part or all of the target analysis information; in response to the adding operation of the comment information, a prompt message is sent to the code submission object, and the prompt message comprises part or all of the comment information. Therefore, the corresponding code line can be automatically positioned, the analyzed error log information is added into the comment, and the code submission object can be notified in time, so that the convenience of code maintenance is improved.
Owner:ZHUHAI CHENGMI TECH CO LTD

Vulnerability detection method and system based on incremental code

The invention provides a vulnerability detection method and system based on incremental codes, and belongs to the technical field of software security detection. Aiming at the technical problems that the software vulnerability detection in the prior art needs to carry out full scanning on codes, the detection efficiency is low and the method is difficult to adapt to rapid iterative development, whether patch codes can trigger potential software vulnerabilities or not is identified by analyzing the influence of code patches on the behavior logic of original codes. A code attribute graph is constructed by adopting a static code analysis technology, and changes of a data flow and a control flow are analyzed; comparing and analyzing the addition and deletion codes in the patches before and after; and an extensible detection framework is designed, and flexible configuration of different types of vulnerability detection rules is supported. According to the method, repeated scanning of full-quantity codes is avoided, and the vulnerability detection efficiency is remarkably improved; the security risk introduced by the patch is accurately positioned through an incremental analysis method; the adoption of an extensible architecture facilitates continuous integration of new detection capabilities.
Owner:WUHAN TEXTILE UNIV

Test code debugging method and device and test code debugging system

The invention provides a test code debugging method and device and a test code debugging system.The method comprises the steps that test information in a database is obtained, and the test information comprises a test code and identification information; a test breakpoint is added to a test line of the test code, the test code is executed, under the condition that the test code is executed to the test breakpoint, execution of the test code is suspended, a code of the test line corresponding to the test breakpoint serves as a to-be-debugged code, and the test line is any line in all code lines included in the test code; modifying the to-be-debugged code to obtain a target code, replacing the to-be-debugged code with the target code, and recovering execution of the test code until execution of the target code and the test line after the target code is completed; and under the condition that the test code is successfully executed, updating the corresponding test information in the database by adopting the target code according to the identification information. The method solves the problem that in the prior art, the test code debugging efficiency is low.
Owner:中国邮政储蓄银行股份有限公司

Executable file burning method, executable file running method, executable file burning device, executable file running device, executable file equipment and medium

The invention discloses an executable file burning method, an executable file running method, an executable file burning device, executable file running equipment and a medium, and relates to the technical field of computers. Burning a second executable file in the compiled executable file to a Flash memory based on an on-chip execution mode; wherein the first executable file is configured with a target jump address, and the target jump address is a storage head address corresponding to a second executable file in the Flash memory, so that in the process of running the compiled executable file by the preset embedded processor, when the preset embedded processor runs to a code line where the target jump address in the first executable file is located, the target jump address in the first executable file is located; and skipping from the block random access memory to the Flash memory to read and run the second executable file. According to the application, the Flash memory and the block random access memory are used for jointly storing the compiled executable file, so that the running memory space is expanded.
Owner:SONOSCAPE MEDICAL (WUHAN) CORP

Data flow compliance detection method and device based on code semantic rule driven LLM

The invention relates to the technical field of code security, in particular to a data stream compliance detection method and device based on code semantic rule-driven LLM, and the method comprises the steps: carrying out the normalization processing of a to-be-detected source code: removing annotation, null lines, unifying branch circulation into an if-else structure, and establishing lt; code lines and line numbers gt; performing mapping; constructing a code semantic rule knowledge base; generating a code intermediate expression by using LLM; generating an execution path for the intermediate expression, constructing a symbol table, and reasoning and positioning non-compliant variables and corresponding code lines according to a data flow rule; generating a detection report; the device comprises a code standardization processing function module, a knowledge base construction function module and other function modules for achieving the method, manual intervention is not needed, C / C + + code compliance can be automatically detected, the detection precision and efficiency are remarkably improved, and non-compliance positions can be accurately traced.
Owner:SICHUAN ZHONGKE ZHUOXIN TESTING & CERTIFICATION CO LTD

Intra-macro identifier position information acquisition method, electronic equipment and medium

The invention relates to the technical field of macro text processing, in particular to an intra-macro identifier position information acquisition method, electronic equipment and a medium, and the method comprises the following steps: setting a corresponding macro virtual file for each macro reference in a chip design code original file; loading a chip design code original file, and obtaining initial position information of an identifier in each macro based on a macro virtual file corresponding to each macro reference; expanding each target macro reference in a target code line in the original file of the chip design code to obtain a target macro expanded text; obtaining a column position offset and a row position offset corresponding to each target macro reference based on the target macro expanded text and the macro initial expanded text of each target macro reference; and generating position information of the intra-macro identifier in each target macro reference in the target macro expanded text based on the column position offset and the row position offset corresponding to each target macro reference and the initial position information of the intra-macro identifier in each target macro reference.
Owner:BEIJING NORI INTEGRATED CIRCUIT DESIGN CO LTD +2

Method and system for evaluating test coverage rate based on Java call link

The invention discloses a method and a system for evaluating a test coverage rate based on a Java call link, and relates to the field of software testing. The method comprises the following steps: identifying a difference function according to a first comparison result, and constructing a call chain tree structure by taking the difference function as a root node based on a code call relation graph; analyzing the difference function to obtain a direct code change line of the difference function, based on a call chain tree structure, identifying a related code line on a call chain where each call point is located as a call point code line, and summarizing the direct code change line and the call point code line; and analyzing the code coverage rate data to obtain an actually covered code line, comparing the to-be-tested code line with the actually covered code line, determining coverage rate index data based on a call chain according to a second comparison result, and determining a test coverage rate evaluation result according to the coverage rate index data. The test coverage rate can be evaluated more comprehensively and accurately.
Owner:BEIJING YULORE INNOVATION TECH

Code generation method and system fusing two-dimensional code representation and dependent coding

The invention discloses a code generation method and system fusing two-dimensional code representation and dependent coding in the technical field of artificial intelligence, and aims at solving the optimization problem of an existing code generation method. The method comprises the following steps: modeling obtained code data into a two-dimensional structure to obtain a two-dimensional code; inputting the two-dimensional code into the trained code generation model; performing word embedding on the two-dimensional code through an embedding layer to obtain a word embedding vector; performing inter-line masking on the two-dimensional code through an in-line attention mask to obtain a mask matrix; performing dependency modeling on the word embedding vector through a sparse auto-encoder to obtain a dependency code of a dependency relationship between code lines; according to the word embedding vector, the mask matrix and the dependency code, performing attention calculation by utilizing a self-attention mechanism to obtain an intermediate representation of each character; and performing model prediction through a multi-layer perceptron and a softmax layer according to the intermediate representation of each character.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Cloud-based 3D printer intelligent control method and system

The invention discloses a cloud-based 3D printer intelligent control method and system, and the method comprises the steps: after receiving an STL model file and printing parameters uploaded by a user at a cloud, executing a slicing operation to generate G code data, and transmitting the G code data to a printer; then, the cloud end continuously receives a G code line number currently executed by the printer, context analysis is carried out on G code data according to the G code line number, and a real-time printing context vector reflecting the current working state and the expected action of the printer is generated; meanwhile, in combination with a camera video frame collected by a printer, AI reasoning based on context perception is carried out on visual data by utilizing the real-time context vector, so that a more accurate exception decision is generated and an alarm is sent to a client. In this way, the accuracy and robustness of printing anomaly detection are remarkably improved, and therefore more intelligent, efficient and reliable remote printing experience is provided for a user.
Owner:XIANYANG VOCATIONAL TECHN COLLEGE

Method and system for generating coverage loop boundary test case based on program slices

The invention discloses a method and a system for generating a test case for covering a loop boundary based on program slices. The method comprises the following steps of: inputting a source code to be tested and a target loop line number; the method comprises the following steps: analyzing a to-be-tested source code based on an abstract syntax tree technology, and extracting key node information to construct a program dependency graph; collecting related code lines through graph traversal by taking a loop structure needing to be analyzed as a criterion, and generating a minimum executable loop slice; performing symbolic execution on the minimum executable loop slice, simulating a loop execution process, capturing condition judgment nodes, and forming a track dictionary; determining a strategy based on the trajectory dictionary and the variable state, and when the strategy is numerical search, performing parameter space exploration; when the strategy is symbolic analysis, analyzing the cyclic condition expression and solving the optimal parameter; generating candidate test cases based on the analysis result; executing the candidate test case, calculating the number of loop iterations, and determining whether an expected state is reached; and if the expected state is reached, outputting a final test case.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Program code processing method, device and equipment

The embodiment of the invention discloses a program code processing method, device and equipment. The method comprises the steps of obtaining a to-be-processed target program code; based on the model operation contained in the target program code, determining an operation topological relation graph corresponding to the constructed target program code, and based on the operation contained in the target program code and the operation topological relation graph, determining function blocks contained in the target program code and description information of each function block; constructing first prompt information on the basis of functional blocks contained in the target program code, description information of each functional block and the target program code provided with a code line identifier, and acquiring a first program code from a code database on the basis of the target program code, wherein the similarity between the first program code and the target program code is greater than a preset threshold value; and generating second prompt information based on the first prompt information, the first program code and the target program code, and inputting the second prompt information into the large model to obtain an analysis log of the target program code.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Test method, device, equipment and product

The invention provides a testing method, device, equipment and product, and relates to the technical field of testing. The method comprises the following steps: acquiring a test case set written according to an interface demand of a target application and an interface which establishes a mapping relationship with the interface demand; in the process of executing each test case in the test case set through the target application, recording a first code line of a code of the target application covered by each test case through the constructed staining matrix; obtaining a first coverage rate of the code according to the first code line and the code of the target application; and under the condition that the first coverage rate exceeds a first preset threshold value, sending a deployment instruction of the target application to a deployment platform. The test case is written according to the interface requirement and the interface establishing the mapping relation with the interface requirement, the rigid requirement problem of the test can be met, a linkage effect is formed with the whole process of product research and development, codes covered by the test case are recorded through the dyeing matrix, the interface which is not covered can be processed, and the test quality is effectively improved.
Owner:CHINA MOBILE FINANCIAL TECHNOLOGY CO LTD +1

Chip RTL code processing method, electronic equipment and medium

The invention relates to the technical field of chips, in particular to a chip RTL code processing method, electronic equipment and a medium, and the method comprises the following steps: S1, obtaining a composition module set and an RTL file set corresponding to a to-be-processed IP; s2, traversing the code lines of the Fn line by line, if the current code line is the port information line, extracting the port information of the Mn, and if the current code line is the sub-module information line of the Mn, obtaining the sub-module interconnection information of the corresponding Mn in the Mn, and executing the step S3 after traversing; and S3, if only the port information exists in the Mn, determining the Mn as a minimum composition unit, generating Mn target data information based on the port information of the Mn, and if the port information and the sub-module interconnection information exist in the Mn, determining the Mn as a non-minimum composition unit, and generating Mn target data information based on the port information of the Mn and the sub-module interconnection information of the Mn. According to the invention, the chip development efficiency is improved.
Owner:METAX INTEGRATED CIRCUITS (SHANGHAI) CO LTD

Software testing method and device, electronic equipment and storage medium

The invention provides a software testing method and device, electronic equipment and a storage medium. The method comprises the steps that a source code file of to-be-tested software is compiled based on a WebAssembly compiler to obtain a compiling result and first debugging information, and the first debugging information represents the mapping relation between code lines in the source code file and instructions in the compiling result; the compiling result is converted into a to-be-tested binary file based on a format conversion relation, second debugging information is determined according to the first debugging information, the compiling result and the to-be-tested binary file, the format conversion relation is used for converting the WebAssembly binary file into a binary file in a preset format, and the format conversion relation is used for converting the WebAssembly binary file into the to-be-tested binary file. The second debugging information represents a mapping relation between a code line in the source code file and an instruction in the to-be-tested binary file; and running the to-be-tested binary file in a virtual machine used for running the binary file in the preset format, and debugging the to-be-tested binary file based on the second debugging information in the virtual machine.
Owner:BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD

Test case generation method and device

The invention discloses a test case generation method and device, and relates to the field of software testing, and the method comprises the steps: obtaining a first test case; the first test case is input into the to-be-tested software inserted with the probe to run, so that constraint information of the first test case is obtained, and the constraint information indicates the execution condition of the constraint passed by the first test case in the execution path of the code related to the target point; the target points comprise code lines with potential vulnerabilities in source codes of the to-be-tested software; and generating a second test case based on the first test case and constraint information of the first test case, wherein the constraint information is used for indicating a variation mode of the first test case. Through the method, the first test case can be varied according to the constraint on the execution path related to the target point, and exploration on irrelevant paths which cannot reach the target point is reduced, so that the variation efficiency of the test case capable of triggering the target point is improved.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1

Code detection method, system and device, electronic equipment, storage medium and program product

The embodiment of the invention provides a code detection method, system and device, electronic equipment, a storage medium and a program product. According to the scheme provided by the embodiment of the invention, the received change code data comprises at least one change code line, and the change code line is a code line of which the content is changed relative to the previous version source code in the current version source code. Based on the current version source code and the change code data, extracting at least one code program segment from the current version source code; one code program segment comprises one change code line or a plurality of change code lines with continuous line numbers or a plurality of change code lines with discontinuous line numbers. Furthermore, the change classification corresponding to the code program segment can be determined. And based on the code program segment and a risk rule associated with the change classification corresponding to the code program segment, determining a risk detection result of the change code line in the code program segment.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Methods, apparatus, and articles of manufacture to generate usage dependent code embedding

Methods, apparatus, and articles of manufacture to generate usage dependent code embedding are disclosed. An example apparatus includes parsing circuitry to select a usage context for a code snippet, the usage context including at least one LOC before the code snippet or before a code line (LOC) calling the code snippet, the code snippet, and at least one LOC after the code snippet or after the LOC. The example apparatus also includes embedding circuitry to generate a first list of token embedding vectors for a first token of the second list of tokens for the code snippets, and a third list of token embedding vectors for a second token of the fourth list of tokens using the context. The example apparatus also includes a concatenation circuit to concatenate a transformed token embedding vector that closes the token and a fifth list of transformed token embedding vectors for the first list.
Owner:INTEL CORP

Chip testing method and device, medium and program product

The invention discloses a chip testing method and device, a medium and a program product, and relates to the field of chip testing. The chip testing method comprises the steps of generating a to-be-analyzed RBM based on a chip hardware module, a target trigger of the chip hardware module and a target mark field matched with the target trigger; segmenting the to-be-analyzed RBM according to the hierarchical structure associated information corresponding to the target trigger to obtain each chip hardware module code segment; and according to each chip hardware module code segment, creating a system full-module index table, and carrying out code testing based on the system full-module index table and a daisy chain technology. According to the technical scheme provided by the embodiment of the invention, the position of the required analysis module in the RBM and the corresponding code line number can be accurately identified, and the debugging processing efficiency is greatly improved.
Owner:SHANGHAI YUNSUI TECHNOLOGY CO LTD

Test case generation method and device and readable storage medium

The invention discloses a test case generation method and device and a readable storage medium, and belongs to the technical field of automatic software testing. The method comprises the following steps: performing method call analysis on a to-be-tested program to generate a method call set; inputting the test case and a program code into a large language model to generate an initial test case; and evaluating the coverage rate, and if the saturation condition is not met, identifying an uncovered code line and feeding back the uncovered code line to the model to iteratively generate a new case until the coverage rate is saturated. According to the method, the high-coverage test case can be automatically and efficiently generated, and the method is particularly suitable for a scientific calculation program.
Owner:NANHUA UNIV