An optimal sdp algorithm for max-cut, and equally optimal long code tests | Synapse