Skip to content

Commit

Permalink
Merge branch 'main' into python
Browse files Browse the repository at this point in the history
  • Loading branch information
nhusung committed Apr 24, 2024
2 parents b5e292f + 4a5a7b8 commit 3feb362
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ignorePaths": [
"/.cache/",
"/.cspellcache",
"/.git/",
"/.git",
"/.project-words.txt",
"/build/",
"/doc/book/book/",
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/bcdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class bcdd_function {
/// Locking behavior: acquires the manager's lock for shared access.
///
/// @returns Node count including the terminal node
[[nodiscard]] size_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_bcdd_node_count(_func);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/bdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ class bdd_function {
/// Locking behavior: acquires the manager's lock for shared access.
///
/// @returns Node count including the two terminal nodes
[[nodiscard]] uint64_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_bdd_node_count(_func);
}
Expand Down
1 change: 1 addition & 0 deletions bindings/cpp/include/oxidd/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#if __cplusplus >= 202002L

#include <concepts>
#include <cstddef>
#include <cstdlib>
#include <functional>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/zbdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ class zbdd_function {
/// Locking behavior: acquires the manager's lock for shared access.
///
/// @returns Node count including the two terminal nodes
[[nodiscard]] uint64_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_zbdd_node_count(_func);
}
Expand Down
8 changes: 4 additions & 4 deletions crates/oxidd-rules-bdd/src/simple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fn terminal_bin<'a, M: Manager<Terminal = BDDTerminal>, const OP: u8>(
match (m.get_node(f), m.get_node(g)) {
// Unique representation of {f, g} for commutative functions
(Inner(_), Inner(_)) if f > g => Binary(BDDOp::And, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::And, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::And, f.borrowed(), g.borrowed()),
(Terminal(t), _) | (_, Terminal(t)) if *t.borrow() == False => {
Done(m.get_terminal(False).unwrap())
}
Expand All @@ -247,7 +247,7 @@ fn terminal_bin<'a, M: Manager<Terminal = BDDTerminal>, const OP: u8>(
}
match (m.get_node(f), m.get_node(g)) {
(Inner(_), Inner(_)) if f > g => Binary(BDDOp::Or, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::Or, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::Or, f.borrowed(), g.borrowed()),
(Terminal(t), _) | (_, Terminal(t)) if *t.borrow() == True => {
Done(m.get_terminal(True).unwrap())
}
Expand All @@ -260,7 +260,7 @@ fn terminal_bin<'a, M: Manager<Terminal = BDDTerminal>, const OP: u8>(
}
match (m.get_node(f), m.get_node(g)) {
(Inner(_), Inner(_)) if f > g => Binary(BDDOp::Nand, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::Nand, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::Nand, f.borrowed(), g.borrowed()),
(Terminal(t), _) | (_, Terminal(t)) if *t.borrow() == False => {
Done(m.get_terminal(True).unwrap())
}
Expand All @@ -273,7 +273,7 @@ fn terminal_bin<'a, M: Manager<Terminal = BDDTerminal>, const OP: u8>(
}
match (m.get_node(f), m.get_node(g)) {
(Inner(_), Inner(_)) if f > g => Binary(BDDOp::Nor, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::Nor, g.borrowed(), f.borrowed()),
(Inner(_), Inner(_)) => Binary(BDDOp::Nor, f.borrowed(), g.borrowed()),
(Terminal(t), _) | (_, Terminal(t)) if *t.borrow() == True => {
Done(m.get_terminal(False).unwrap())
}
Expand Down

0 comments on commit 3feb362

Please sign in to comment.