4. There are 4 functions, the first one is $y=f(x)$, the second function is its inverse function, shifting the graph of the second function 2 units to the left and then 1 unit up yields the graph of the third function, the graph of the fourth function is symmetrical to the graph of the third function about the line $x+y=0$, then the fourth function is
A. $y=-f(-x-1)+2$
B. $y=-f(-x+1)-2$
C. $y=-f(-x-1)-2$
D. $y=-f(-x+1)+2$
4. A The second function is $y=f^{-1}(x)$, the third function is $y=f^{-1}(x+2)+1$, the fourth function is $-x=$ $f^{-1}(-y+2)+1$, i.e., $y=-f(-x-1)+2$.