A K-input lookup table (K-LUT) can represent any function with K boolean inputs and a single boolean output. The number of possible functions represented by this LUT is $2^{2^K}$ according to this previous question, and other online resources.
I am interested in finding the number of possible functions represented by a directed acyclic graph of LUTs. A simple example is shown below:
I am also interested in more complicated DAGs with non-uniform LUT sizes and more interesting connectivities of the input. For example, when one input is connected more than once, or when an input is connected to deeper levels of the DAG. Also, I am interested in DAGs with multiple outputs as well.
This feels like it is a solved problem but I can't find anything that computes the number of possible functions that are described by these structures.
