Header: mockturtle/algorithms/cut_rewriting.hpp
The following example shows how to rewrite an MIG using precomputed optimum networks. In this case the maximum number of variables for a node function is 4.
It is possible to change the cost function of nodes in cut rewriting. Here is an example, in which the cost function only accounts for AND gates in a network, which corresponds to the multiplicative complexity of a function.
mockturtle::cut_rewriting_params
mockturtle::cut_rewriting_stats
mockturtle::cut_rewriting
mockturtle::cut_rewriting_with_compatibility_graph
One can use resynthesis functions that can be passed to node_resynthesis, see node_resynthesis_functions
.