C + + interprocess anomaly analysis system and method based on high-order function
A high-order function and analysis method technology, applied in the field of functional programming and program analysis, can solve the problem of low efficiency of abnormal analysis, achieve the effect of improving reliability and robustness, and improving analysis efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] A C++ interprocedural exception analysis method based on higher-order functions, comprising the following steps:
[0047] Step 1: Determine the analysis order of each called sub-procedure, and classify the statements in the program;
[0048] Step 2: Collect the set constraints of the exception-related statements and function calling statements of each called subprocess, solve the set constraints according to the set constraint rules, obtain the abnormal analysis information in the process, and use the form of higher-order functions to convert all the called subprocesses. The exception analysis information (the unique identifier of the exception, the exception name, the propagation path of the uncaught exception) is saved as function summary information.
[0049] Step 3: According to the parameter transmission method of the function, according to the parameter information (parameter type and parameter name) corresponding to the formal parameters and actual parameters, at...
Embodiment 2
[0103] A C++ interprocedural exception analysis system based on higher-order functions, which can implement the C++ interprocedural exception analysis method based on higher-order functions described in Embodiment 1, including:
[0104] Classification module: used to determine the analysis order of each called sub-procedure in the procedure call graph, and classify the statements in the C++ program;
[0105] Set constraint collection and solution module: It is used to collect the set constraints of the exception-related statements and function call statements of each called sub-process, solve the set constraints according to the set constraint rules, and obtain the abnormal analysis information in the process through the form of higher-order functions. Save the exception analysis results of all called subroutines as the exception analysis function summary;
[0106] Result acquisition module: It is used to substitute the parameter set information of the higher-order functional ...
Embodiment 3
[0108] The embodiment of the present invention also provides a high-order function-based C++ interprocedural exception analysis device, which can implement the high-order function-based C++ interprocedural exception analysis method described in Embodiment 1, including a processor and a storage medium;
[0109] the storage medium is used for storing instructions;
[0110] The processor is configured to operate in accordance with the instructions to perform the steps of the following methods:
[0111] Determine the analysis order of each called sub-procedure in the procedure call graph, and classify the statements in the C++ program;
[0112] Collect the set constraints of the exception-related statements and function call statements of each called subprocess, solve the set constraints according to the set constraint rules, and obtain the exception analysis information in the process. The results are saved as anomaly analysis function summaries;
[0113] According to the param...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com