This is a sketch of C++ code which writes out formulas (in DIMACS format) for finding NAND-gate circuits which detect triangles in tiny graphs.
It depends on the bc2cnf tool, from the BC package, available online at
http://users.ics.aalto.fi/tjunttil/circuits/
A very small number of instances were tested using minisat, available from
See bruteForce1.pdf for a description of the strategy, and a tiny number of results.
20160711, jtb - in bruteForce1.pdf, I originally wrote that
I wasn't sure whether the "naive" triangle-detecting circuit
with
Josh Burdick jburdick@keyfitz.org