/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: gperf -L ANSI-C -t --output-file=temp.txt cmd_line.gperf  */
/* Computed positions: -k'2-3,8,12' */

#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646.  */
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
#endif

#line 2 "cmd_line.gperf"

#include "cmd_line_enum.h"
#line 5 "cmd_line.gperf"
struct CommandOption
  {
  const char * name;
  int OptionCode;
  };

#define TOTAL_KEYWORDS 61
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 26
#define MIN_HASH_VALUE 2
#define MAX_HASH_VALUE 147
/* maximum key range = 146, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
hash (register const char *str, register size_t len)
{
  static unsigned char asso_values[] =
    {
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148,   0, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148,  57, 148,  35,
       15,  25,  10,   0,  35,  35, 148, 148,   5,   5,
       40,   0,  62, 148,  20,   0,   0, 148, 148, 148,
        5,   0, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
      148, 148, 148, 148, 148, 148
    };
  register unsigned int hval = (unsigned int)len;

  switch (hval)
    {
      default:
        hval += asso_values[(unsigned char)str[11]];
      /*FALLTHROUGH*/
      case 11:
      case 10:
      case 9:
      case 8:
        hval += asso_values[(unsigned char)str[7]];
      /*FALLTHROUGH*/
      case 7:
      case 6:
      case 5:
      case 4:
      case 3:
        hval += asso_values[(unsigned char)str[2]];
      /*FALLTHROUGH*/
      case 2:
        hval += asso_values[(unsigned char)str[1]];
        break;
    }
  return hval;
}

static struct CommandOption *
in_word_set (register const char *str, register size_t len)
{
  static struct CommandOption wordlist[] =
    {
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 55 "cmd_line.gperf"
      {"-g", FCS_OPT_GAME},
#line 71 "cmd_line.gperf"
      {"-to", FCS_OPT_TESTS_ORDER},
      {"",FCS_OPT_UNRECOGNIZED},
#line 69 "cmd_line.gperf"
      {"-step", FCS_OPT_SOFT_THREAD_STEP},
#line 23 "cmd_line.gperf"
      {"--game", FCS_OPT_GAME},
#line 56 "cmd_line.gperf"
      {"-l", FCS_OPT_LOAD_CONFIG},
      {"",FCS_OPT_UNRECOGNIZED},
#line 60 "cmd_line.gperf"
      {"-mss", FCS_OPT_MAX_STORED_STATES},
#line 70 "cmd_line.gperf"
      {"-tmss", FCS_OPT_TRIM_MAX_STORED_STATES},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED},
#line 47 "cmd_line.gperf"
      {"--st-name", FCS_OPT_ST_NAME},
      {"",FCS_OPT_UNRECOGNIZED},
#line 26 "cmd_line.gperf"
      {"--max-iters", FCS_OPT_MAX_ITERS},
#line 48 "cmd_line.gperf"
      {"--stacks-num", FCS_OPT_STACKS_NUM},
      {"",FCS_OPT_UNRECOGNIZED},
#line 52 "cmd_line.gperf"
      {"-dto", FCS_OPT_DEPTH_TESTS_ORDER},
#line 53 "cmd_line.gperf"
      {"-dto2", FCS_OPT_DEPTH_TESTS_ORDER_2},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 57 "cmd_line.gperf"
      {"-md", FCS_OPT_MAX_DEPTH},
      {"",FCS_OPT_UNRECOGNIZED},
#line 19 "cmd_line.gperf"
      {"--flares-choice", FCS_OPT_FLARES_CHOICE},
#line 14 "cmd_line.gperf"
      {"--decks-num", FCS_OPT_DECKS_NUM},
#line 41 "cmd_line.gperf"
      {"--reset", FCS_OPT_RESET},
#line 28 "cmd_line.gperf"
      {"--method", FCS_OPT_METHOD},
#line 50 "cmd_line.gperf"
      {"--trim-max-stored-states", FCS_OPT_TRIM_MAX_STORED_STATES},
#line 67 "cmd_line.gperf"
      {"-seed", FCS_OPT_SEED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 58 "cmd_line.gperf"
      {"-me", FCS_OPT_METHOD},
#line 15 "cmd_line.gperf"
      {"--depth-tests-order", FCS_OPT_DEPTH_TESTS_ORDER},
#line 16 "cmd_line.gperf"
      {"--depth-tests-order2", FCS_OPT_DEPTH_TESTS_ORDER_2},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 49 "cmd_line.gperf"
      {"--tests-order", FCS_OPT_TESTS_ORDER},
#line 27 "cmd_line.gperf"
      {"--max-stored-states", FCS_OPT_MAX_STORED_STATES},
#line 42 "cmd_line.gperf"
      {"--scans-synergy", FCS_OPT_SCANS_SYNERGY},
#line 25 "cmd_line.gperf"
      {"--max-depth", FCS_OPT_MAX_DEPTH},
      {"",FCS_OPT_UNRECOGNIZED},
#line 59 "cmd_line.gperf"
      {"-mi", FCS_OPT_MAX_ITERS},
#line 64 "cmd_line.gperf"
      {"-nst", FCS_OPT_NEXT_SOFT_THREAD},
      {"",FCS_OPT_UNRECOGNIZED},
#line 39 "cmd_line.gperf"
      {"--read-from-file", FCS_OPT_READ_FROM_FILE},
#line 18 "cmd_line.gperf"
      {"--flare-name", FCS_OPT_FLARE_NAME},
      {"",FCS_OPT_UNRECOGNIZED},
#line 54 "cmd_line.gperf"
      {"-fif", FCS_OPT_FLARES_ITERS_FACTOR},
#line 22 "cmd_line.gperf"
      {"--freecells-num", FCS_OPT_FREECELLS_NUM},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 61 "cmd_line.gperf"
      {"-nf", FCS_OPT_NEXT_FLARE},
#line 34 "cmd_line.gperf"
      {"--optimize-solution", FCS_OPT_OPTIMIZE_SOLUTION},
      {"",FCS_OPT_UNRECOGNIZED},
#line 20 "cmd_line.gperf"
      {"--flares-iters-factor", FCS_OPT_FLARES_ITERS_FACTOR},
      {"",FCS_OPT_UNRECOGNIZED},
#line 32 "cmd_line.gperf"
      {"--next-soft-thread", FCS_OPT_NEXT_SOFT_THREAD},
      {"",FCS_OPT_UNRECOGNIZED},
#line 43 "cmd_line.gperf"
      {"--sequence-move", FCS_OPT_SEQUENCE_MOVE},
#line 51 "cmd_line.gperf"
      {"-asw", FCS_OPT_BEFS_WEIGHTS},
#line 40 "cmd_line.gperf"
      {"--reparent-states", FCS_OPT_REPARENT_STATES},
      {"",FCS_OPT_UNRECOGNIZED},
#line 44 "cmd_line.gperf"
      {"--sequences-are-built-by", FCS_OPT_SEQUENCES_ARE_BUILT_BY},
#line 68 "cmd_line.gperf"
      {"-sp", FCS_OPT_SET_PRUNING},
#line 65 "cmd_line.gperf"
      {"-opt", FCS_OPT_OPTIMIZE_SOLUTION},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 66 "cmd_line.gperf"
      {"-opt-to", FCS_OPT_OPTIMIZATION_TESTS_ORDER},
#line 38 "cmd_line.gperf"
      {"--preset", FCS_OPT_GAME},
      {"",FCS_OPT_UNRECOGNIZED},
#line 13 "cmd_line.gperf"
      {"--calc-real-depth", FCS_OPT_CALC_REAL_DEPTH},
#line 45 "cmd_line.gperf"
      {"--set-pruning", FCS_OPT_SET_PRUNING},
      {"",FCS_OPT_UNRECOGNIZED},
#line 46 "cmd_line.gperf"
      {"--soft-thread-step", FCS_OPT_SOFT_THREAD_STEP},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 63 "cmd_line.gperf"
      {"-ni", FCS_OPT_NEXT_INSTANCE},
#line 62 "cmd_line.gperf"
      {"-nht", FCS_OPT_NEXT_HARD_THREAD},
#line 21 "cmd_line.gperf"
      {"--flares-plan", FCS_OPT_FLARES_PLAN},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 12 "cmd_line.gperf"
      {"--cache-limit", FCS_OPT_CACHE_LIMIT},
#line 17 "cmd_line.gperf"
      {"--empty-stacks-filled-by", FCS_OPT_EMPTY_STACKS_FILLED_BY},
#line 36 "cmd_line.gperf"
      {"--patsolve-y-param", FCS_OPT_PATSOLVE_Y_PARAM},
#line 37 "cmd_line.gperf"
      {"--prelude", FCS_OPT_PRELUDE},
#line 29 "cmd_line.gperf"
      {"--next-flare", FCS_OPT_NEXT_FLARE},
#line 24 "cmd_line.gperf"
      {"--load-config", FCS_OPT_LOAD_CONFIG},
      {"",FCS_OPT_UNRECOGNIZED},
#line 35 "cmd_line.gperf"
      {"--patsolve-x-param", FCS_OPT_PATSOLVE_X_PARAM},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 30 "cmd_line.gperf"
      {"--next-hard-thread", FCS_OPT_NEXT_HARD_THREAD},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 33 "cmd_line.gperf"
      {"--optimization-tests-order", FCS_OPT_OPTIMIZATION_TESTS_ORDER},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED},
#line 11 "cmd_line.gperf"
      {"--a-star-weights", FCS_OPT_BEFS_WEIGHTS},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
      {"",FCS_OPT_UNRECOGNIZED}, {"",FCS_OPT_UNRECOGNIZED},
#line 31 "cmd_line.gperf"
      {"--next-instance", FCS_OPT_NEXT_INSTANCE}
    };

  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register unsigned int key = hash (str, len);

      if (key <= MAX_HASH_VALUE)
        {
          register const char *s = wordlist[key].name;

          if (*str == *s && !strcmp (str + 1, s + 1))
            return &wordlist[key];
        }
    }
  return 0;
}
