Assume that I have a multi-output Boolean function $f(x_1,x_2,x_3,x_4) = (y_1,y_2,y_3,y_4)$.
Is there a direct way of computing the inverse, that is, $g$ such that $g(y_1,y_2,y_3,y_4) = (x_1,x_2,x_3,x_4)$?
Naturally, I could construct function $g$ from scratch, but in this case function $f$ is fairly optimized w.r.t number of gates. Thus, it is of interest to directly reversing it.