This is a bug in HDLCoder. please reach out to technical support with reproduction steps along with your model. We will investigate this further and try to provide a workaround. Thank you for reporting the issue.
I think that you need to generate all pairs of points that correspond to a crossing of each quadrant boundary. Then include a linear constraint that there is only one active pair of each type in the solution.
Best Answer