For the circuit shown below with ideal diodes, the output will be

1. $V_{\text{out}} = V _{\text{in}}$ for $V_{\text{in}}> 0$
2. $V_{\text{out}} = V_{\text{in}}$ for $V_{\text{in}}< 0$
3. $V_{\text{out}} = -V_{\text{in}}$ for $V_{\text{in}}> 0$
4. $V_{\text{out}} = -V_{\text{in}}$ for $V_{\text{in}}< 0$