The function takes a numerical input and returns the corresponding output. The function seems to work as expected for all inputs between -128 and 128, but it behaves unexpectedly when the input is 0, returning -1 instead of the expected output of 0.

