Implementing an abstract domain for CiaoPP using the high-level interface
As mentioned in the CiaoPP reference manual, one of the most important features of the CiaoPP system is that it allows the addition of new analysis domains. There are currently at least two interfaces for defining new abstract domains in CiaoPP, providing different levels of abstraction:
- The 'classic' interface, as described in chapters "Adding a new analysis domain to CiaoPP " and "Domain Interface for Defining Abstract Domains" of the CiaoPP manual. This is the more traditional interface, in which many of the classic CiaoPP domains are written. It allows precise domain definitions that take advantage of the characteristics of the top-down analyzer, but defining a domain also involves more work than using the basicdom higher-level interface.
- The 'basicdom' interface is higher-level, requiring simpler and fewer operations to be defined by the user. These higher-level definitions are translated automatically to the classic, lower-level interface. This is the recommended starting point for learning how to add abstract domains to CiaoPP. Apart from being simpler, another advantage of this higher-level interface is that it is closer to the mathematical definition of an Abstract Domain, i.e., it just needs the definition of some basic lattice operations and abstraction/concretization functions, that do not require knowledge about the inner workings of a top-down analyzer.
This document contains a number of tutorials on the use of the high-level interface in which a number of simple, non-relational and relational domains are developed step by step.