1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#![allow(clippy::toplevel_ref_arg)]

#[macro_use]
extern crate log;
#[macro_use]
extern crate lazy_static;

mod error;
mod name;
pub mod node;
mod atom;
pub mod monomial;
mod polynomial;
mod context;
mod ces;
mod spec;
pub mod sat;
mod logging;
pub mod cli;

pub use context::{Context, ContextHandle, Contextual, InContext, InContextMut};
pub use node::NodeID;
pub use atom::{Port, Link, PortID, LinkID, Atomic};
pub use polynomial::{Polynomial, Monomials};
pub use ces::CES;
pub use logging::Logger;

use std::num::NonZeroUsize;

/// A generic one-based serial identifier.
///
/// Used as a common internal type backing the conversion between
/// vector indices and specific identifiers, such as [`NodeID`],
/// [`PortID`], and [`LinkID`].
pub(crate) type ID = NonZeroUsize;