Complex gate: AND+OR+NOT.
4 inputs: a0 (left metal 1), a1, a2, r (top and bottom in poly).
output: outZ (right metal 1)
outZ = ~(a0.a1.a2+r)