Skip to content

Commit

Permalink
specified model evaluate function to be constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKlx committed Nov 29, 2022
1 parent 1fb6bf2 commit 401ce7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/hal_core/netlist/boolean_function/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ namespace hal
* @param[in] bf - Boolean function to evaluate.
* @returns Ok() and the evaluated function on success, Err() otherwise.
*/
Result<BooleanFunction> evaluate(const BooleanFunction& bf);
Result<BooleanFunction> evaluate(const BooleanFunction& bf) const;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/netlist/boolean_function/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ namespace hal
return out;
}

Result<BooleanFunction> Model::evaluate(const BooleanFunction& bf)
Result<BooleanFunction> Model::evaluate(const BooleanFunction& bf) const
{
std::vector<BooleanFunction::Node> new_nodes;

Expand Down

0 comments on commit 401ce7e

Please sign in to comment.