Kenny found that cos(3pi/2 - x) doesn't simplify to -sin(x), even though it should, and looks like that's also present on demo:
https://herbie.uwplse.org/demo/47181be56515163c1d89659f8be27513d3f41603.6d367899f2f00931524a4d7b6d68efd5adde08f8/graph.html