
/* cv_gtc_gsv_bug_simple.c -- the cv_gtc_gsv[] inversion (sanint.c),
 * shown by reading the table directly through its own named
 * constants.
 */

#include <stdio.h>

#include "sandef.h"
#include "sanvar.h"

#include "sanint.h"

int
main (void)
{
  SANInit ();   /* fills in cv_gtc_gsv[]/gtcstrv[]; nothing else here
                   needs it */

  printf ("cv_gtc_gsv[gs_wcmt] (\"White is checkmated\", Black should "
          "win) -> \"%s\"\n", gtcstrv[cv_gtc_gsv[gs_wcmt]]);

  printf ("cv_gtc_gsv[gs_bcmt] (\"Black is checkmated\", White should "
          "win) -> \"%s\"\n", gtcstrv[cv_gtc_gsv[gs_bcmt]]);

  return (0);
}
