GATE("x<0:7>;s<1:3>", type="inp") GATE("y", type="out") GATE("g1", type="mux2") GATE("g2", type="mux2") GATE("g3", type="mux1") WIRE("x0", "g1/x0") WIRE("x1", "g1/x1") WIRE("x2", "g1/x2") WIRE("x3", "g1/x3") WIRE("x4", "g2/x0") WIRE("x5", "g2/x1") WIRE("x6", "g2/x2") WIRE("x7", "g2/x3") WIRE("s2", "g1/s1") WIRE("s2", "g2/s1") WIRE("s3", "g1/s2") WIRE("s3", "g2/s2") WIRE("s1", "g3/s1") WIRE("g1/y", "g3/x0") WIRE("g2/y", "g3/x1") WIRE("g3/y", "y")