On transformation of complex regular logic circuits