code: protected final boolean stateCheckVal(int s, int snum) {
          if (stateCheckBuff != null) {
              int x = stateCheckPos(s, snum);
              return (stateCheckBuff[x / 8] & (1 << (x % 8))) != 0;
          }
          return false;
      }
docs: STATE_CHECK_VAL