The circuit follows voltage from left switch. The right switch with a resistor is for testing the circuit. The switch in the lower right corner is used to set the output of the circuit to a high impedance state. The LED is needed to simulate a Schottky diode.