Function in Constraints-Solver Failed

x will be given a random value before the function gets called.