diff --git a/include/hal_core/netlist/boolean_function/types.h b/include/hal_core/netlist/boolean_function/types.h index 16ac6f4fcd6..3357839ad90 100644 --- a/include/hal_core/netlist/boolean_function/types.h +++ b/include/hal_core/netlist/boolean_function/types.h @@ -270,7 +270,7 @@ namespace hal * @param[in] bf - Boolean function to evaluate. * @returns Ok() and the evaluated function on success, Err() otherwise. */ - Result evaluate(const BooleanFunction& bf); + Result evaluate(const BooleanFunction& bf) const; }; /** diff --git a/src/netlist/boolean_function/types.cpp b/src/netlist/boolean_function/types.cpp index 8fb8f95d3af..9d33e7ddcc6 100644 --- a/src/netlist/boolean_function/types.cpp +++ b/src/netlist/boolean_function/types.cpp @@ -209,7 +209,7 @@ namespace hal return out; } - Result Model::evaluate(const BooleanFunction& bf) + Result Model::evaluate(const BooleanFunction& bf) const { std::vector new_nodes;