C + + compiler variable action domain formalization method based on Coq
A formal method and scope technology, applied in the field of variable scope formalization of C++ compiler based on Coq, which can solve problems such as inexplicability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0081] A Coq-based C++ compiler variable scope formalization method, using the record mathematical model to formalize the table structure, using Inductive induction to define the formal stack structure, using match to match the formal code to cause branching operation logic, using Fixpoint recursive function Formalize the logic of repeated actions.
[0082] Such as figure 1 As shown, the present invention is based on the FSPVM formal verification system and is applied to the Coq interpreter in order to solve the problem that the Coq interpreter cannot correctly interpret the code with variable scope characteristics as a virtual memory instruction sequence. The Coq interpreter cannot correctly interpret the code with the variable scope feature, that is, the Coq interpreter cannot correctly interpret the variable operation method with scope restrictions.
[0083] In order to solve this problem, the present invention abstracts the formalization of the C++ variable scope characteristi...
Embodiment 2
[0087] A Coq-based C++ compiler variable scope formal method, based on the FSPVM formal verification engine, aims to solve the problem that the Coq interpreter cannot correctly interpret the code with variable scope characteristics as a virtual memory instruction sequence. It mainly includes the following steps:
[0088] 1. Formal method of stack structure of global variable scope table and local variable scope table:
[0089] S1. Formalize the table value structure, use the Inductive structure to define the table value, the dmt_init induction represents the initialization table value, and the internal storage of the dmt_unit induction: virtual memory address, variable scope identifier.
[0090] Inductive domain_map_table_v: Type :=
[0091] | dmt_init: domain_map_table_v
[0092] | dmt_unit: high_addres -> address -> dmt_sign -> domain_map_table_v.
[0093] S2. Formalize the table structure, use the Record mathematical model to simulate the table structure, and use the direct access...
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