Skip to content

Commit d225cff

Browse files
committed
added python binding for faster local simplification
1 parent 57a839e commit d225cff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/python_bindings/bindings/boolean_function.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,13 @@ namespace hal
12951295
:rtype: hal_py.BooleanFunction
12961296
)");
12971297

1298+
py_boolean_function.def("simplify_local", &BooleanFunction::simplify_local, R"(
1299+
Simplifies the Boolean function only with local simplification rules and not invoking ABC.
1300+
1301+
:returns: The simplified Boolean function.
1302+
:rtype: hal_py.BooleanFunction
1303+
)");
1304+
12981305
py_boolean_function.def(
12991306
"substitute", py::overload_cast<const std::string&, const std::string&>(&BooleanFunction::substitute, py::const_), py::arg("old_variable_name"), py::arg("new_variable_name"), R"(
13001307
Substitute a variable name with another one, i.e., renames the variable.

0 commit comments

Comments
 (0)