Logic-function diagram