#define _BSD_SOURCE
#define _XOPEN_SOURCE
#include <sys/time.h>
#ifdef WIN32
#include <malloc.h>
#else
#include <alloca.h>
#endif
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <math.h>
#ifdef HAVE_ONIGURUMA
#include <oniguruma.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include