Unverified Commit ad266130 by Enkelmann Committed by GitHub

implement domain maps (#241)

parent 473fbefc
......@@ -19,12 +19,16 @@ pub use mem_region::*;
mod interval;
pub use interval::*;
mod domain_map;
pub use domain_map::*;
/// The main trait describing an abstract domain.
///
/// Each abstract domain is partially ordered.
/// Abstract domains of the same type can be merged.
pub trait AbstractDomain: Sized + Eq + Clone {
/// Return an upper bound (with respect to the partial order on the domain) for the two inputs `self` and `other`.
#[must_use]
fn merge(&self, other: &Self) -> Self;
/// Returns whether the element represents the top element (i.e. maximal with respect to the partial order) or not.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment