Skip to content

Commit

Permalink
add example::{x1x2, x3}
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Feb 1, 2024
1 parent b8c61eb commit 95da073
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,18 @@ pub mod example {
),
}
}
// From Figure 7 of Randal E. Bryant, Graph-Based Algorithms for Boolean
// Function Manipulation, IEEE Trans. en Comp., C-35-8, pp.677-691, Aug. 1986.
pub fn x1x2() -> DDT {
DDT {
graph: D!(1, D!(2, T!(), F!()), D!(3, F!(), T!())),
}
}
// From Figure 7 of Randal E. Bryant, Graph-Based Algorithms for Boolean
// Function Manipulation, IEEE Trans. en Comp., C-35-8, pp.677-691, Aug. 1986.
pub fn x3() -> DDT {
DDT {
graph: D!(3, F!(), T!()),
}
}
}

0 comments on commit 95da073

Please sign in to comment.