1use crate::repr::BddPtr;
2use std::cmp::Ordering;
3
4mod builder;
5mod robdd;
6mod stats;
7
8pub use self::builder::*;
9pub use self::robdd::*;
10pub use self::stats::*;
11
12#[derive(Eq, PartialEq, Debug)]
15struct CompiledCNF<'a> {
16 ptr: BddPtr<'a>,
17 sz: usize,
18}
19
20impl<'a> Ord for CompiledCNF<'a> {
24 fn cmp(&self, other: &Self) -> Ordering {
25 other.sz.cmp(&self.sz)
29 }
30}
31
32impl<'a> PartialOrd for CompiledCNF<'a> {
34 fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
35 Some(self.cmp(other))
36 }
37}