/* * Circuit Satisfiability, Version 1 * * This program determines whether a circuit is * satisfiable, that is, whether there is a combination of * inputs that causes the output of the circuit to be 1. * The particular circuit being tested is "wired" into the * logic of function 'check_circuit'. All combinations of * inputs that satisfy the circuit are printed. */ #include #include /* Return 1 if 'i'th bit of 'n' is 1; 0 otherwise */ #define EXTRACT_BIT(n,i) ((n&(1<