Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1 "grover.c"
- # 1 "<built-in>"
- # 1 "<command-line>"
- # 1 "grover.c"
- # 1 "/usr/include/stdio.h" 1 3 4
- # 28 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/features.h" 1 3 4
- # 313 "/usr/include/features.h" 3 4
- # 1 "/usr/include/bits/predefs.h" 1 3 4
- # 314 "/usr/include/features.h" 2 3 4
- # 346 "/usr/include/features.h" 3 4
- # 1 "/usr/include/sys/cdefs.h" 1 3 4
- # 353 "/usr/include/sys/cdefs.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 354 "/usr/include/sys/cdefs.h" 2 3 4
- # 347 "/usr/include/features.h" 2 3 4
- # 378 "/usr/include/features.h" 3 4
- # 1 "/usr/include/gnu/stubs.h" 1 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 5 "/usr/include/gnu/stubs.h" 2 3 4
- # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
- # 8 "/usr/include/gnu/stubs.h" 2 3 4
- # 379 "/usr/include/features.h" 2 3 4
- # 29 "/usr/include/stdio.h" 2 3 4
- extern "C" {
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 211 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 3 4
- typedef unsigned int size_t;
- # 35 "/usr/include/stdio.h" 2 3 4
- # 1 "/usr/include/bits/types.h" 1 3 4
- # 28 "/usr/include/bits/types.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 29 "/usr/include/bits/types.h" 2 3 4
- typedef unsigned char __u_char;
- typedef unsigned short int __u_short;
- typedef unsigned int __u_int;
- typedef unsigned long int __u_long;
- typedef signed char __int8_t;
- typedef unsigned char __uint8_t;
- typedef signed short int __int16_t;
- typedef unsigned short int __uint16_t;
- typedef signed int __int32_t;
- typedef unsigned int __uint32_t;
- __extension__ typedef signed long long int __int64_t;
- __extension__ typedef unsigned long long int __uint64_t;
- __extension__ typedef long long int __quad_t;
- __extension__ typedef unsigned long long int __u_quad_t;
- # 131 "/usr/include/bits/types.h" 3 4
- # 1 "/usr/include/bits/typesizes.h" 1 3 4
- # 132 "/usr/include/bits/types.h" 2 3 4
- __extension__ typedef __u_quad_t __dev_t;
- __extension__ typedef unsigned int __uid_t;
- __extension__ typedef unsigned int __gid_t;
- __extension__ typedef unsigned long int __ino_t;
- __extension__ typedef __u_quad_t __ino64_t;
- __extension__ typedef unsigned int __mode_t;
- __extension__ typedef unsigned int __nlink_t;
- __extension__ typedef long int __off_t;
- __extension__ typedef __quad_t __off64_t;
- __extension__ typedef int __pid_t;
- __extension__ typedef struct { int __val[2]; } __fsid_t;
- __extension__ typedef long int __clock_t;
- __extension__ typedef unsigned long int __rlim_t;
- __extension__ typedef __u_quad_t __rlim64_t;
- __extension__ typedef unsigned int __id_t;
- __extension__ typedef long int __time_t;
- __extension__ typedef unsigned int __useconds_t;
- __extension__ typedef long int __suseconds_t;
- __extension__ typedef int __daddr_t;
- __extension__ typedef long int __swblk_t;
- __extension__ typedef int __key_t;
- __extension__ typedef int __clockid_t;
- __extension__ typedef void * __timer_t;
- __extension__ typedef long int __blksize_t;
- __extension__ typedef long int __blkcnt_t;
- __extension__ typedef __quad_t __blkcnt64_t;
- __extension__ typedef unsigned long int __fsblkcnt_t;
- __extension__ typedef __u_quad_t __fsblkcnt64_t;
- __extension__ typedef unsigned long int __fsfilcnt_t;
- __extension__ typedef __u_quad_t __fsfilcnt64_t;
- __extension__ typedef int __ssize_t;
- typedef __off64_t __loff_t;
- typedef __quad_t *__qaddr_t;
- typedef char *__caddr_t;
- __extension__ typedef int __intptr_t;
- __extension__ typedef unsigned int __socklen_t;
- # 37 "/usr/include/stdio.h" 2 3 4
- # 45 "/usr/include/stdio.h" 3 4
- struct _IO_FILE;
- typedef struct _IO_FILE FILE;
- # 65 "/usr/include/stdio.h" 3 4
- typedef struct _IO_FILE __FILE;
- # 75 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/libio.h" 1 3 4
- # 32 "/usr/include/libio.h" 3 4
- # 1 "/usr/include/_G_config.h" 1 3 4
- # 15 "/usr/include/_G_config.h" 3 4
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 16 "/usr/include/_G_config.h" 2 3 4
- # 1 "/usr/include/wchar.h" 1 3 4
- # 83 "/usr/include/wchar.h" 3 4
- typedef struct
- {
- int __count;
- union
- {
- unsigned int __wch;
- char __wchb[4];
- } __value;
- } __mbstate_t;
- # 21 "/usr/include/_G_config.h" 2 3 4
- typedef struct
- {
- __off_t __pos;
- __mbstate_t __state;
- } _G_fpos_t;
- typedef struct
- {
- __off64_t __pos;
- __mbstate_t __state;
- } _G_fpos64_t;
- # 53 "/usr/include/_G_config.h" 3 4
- typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
- # 33 "/usr/include/libio.h" 2 3 4
- # 53 "/usr/include/libio.h" 3 4
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stdarg.h" 1 3 4
- # 40 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stdarg.h" 3 4
- typedef __builtin_va_list __gnuc_va_list;
- # 54 "/usr/include/libio.h" 2 3 4
- # 170 "/usr/include/libio.h" 3 4
- struct _IO_jump_t; struct _IO_FILE;
- # 180 "/usr/include/libio.h" 3 4
- typedef void _IO_lock_t;
- struct _IO_marker {
- struct _IO_marker *_next;
- struct _IO_FILE *_sbuf;
- int _pos;
- # 203 "/usr/include/libio.h" 3 4
- };
- enum __codecvt_result
- {
- __codecvt_ok,
- __codecvt_partial,
- __codecvt_error,
- __codecvt_noconv
- };
- # 271 "/usr/include/libio.h" 3 4
- struct _IO_FILE {
- int _flags;
- char* _IO_read_ptr;
- char* _IO_read_end;
- char* _IO_read_base;
- char* _IO_write_base;
- char* _IO_write_ptr;
- char* _IO_write_end;
- char* _IO_buf_base;
- char* _IO_buf_end;
- char *_IO_save_base;
- char *_IO_backup_base;
- char *_IO_save_end;
- struct _IO_marker *_markers;
- struct _IO_FILE *_chain;
- int _fileno;
- int _flags2;
- __off_t _old_offset;
- unsigned short _cur_column;
- signed char _vtable_offset;
- char _shortbuf[1];
- _IO_lock_t *_lock;
- # 319 "/usr/include/libio.h" 3 4
- __off64_t _offset;
- # 328 "/usr/include/libio.h" 3 4
- void *__pad1;
- void *__pad2;
- void *__pad3;
- void *__pad4;
- size_t __pad5;
- int _mode;
- char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
- };
- struct _IO_FILE_plus;
- extern struct _IO_FILE_plus _IO_2_1_stdin_;
- extern struct _IO_FILE_plus _IO_2_1_stdout_;
- extern struct _IO_FILE_plus _IO_2_1_stderr_;
- # 364 "/usr/include/libio.h" 3 4
- typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
- typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
- size_t __n);
- typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
- typedef int __io_close_fn (void *__cookie);
- typedef __io_read_fn cookie_read_function_t;
- typedef __io_write_fn cookie_write_function_t;
- typedef __io_seek_fn cookie_seek_function_t;
- typedef __io_close_fn cookie_close_function_t;
- typedef struct
- {
- __io_read_fn *read;
- __io_write_fn *write;
- __io_seek_fn *seek;
- __io_close_fn *close;
- } _IO_cookie_io_functions_t;
- typedef _IO_cookie_io_functions_t cookie_io_functions_t;
- struct _IO_cookie_file;
- extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
- void *__cookie, _IO_cookie_io_functions_t __fns);
- extern "C" {
- extern int __underflow (_IO_FILE *);
- extern int __uflow (_IO_FILE *);
- extern int __overflow (_IO_FILE *, int);
- # 460 "/usr/include/libio.h" 3 4
- extern int _IO_getc (_IO_FILE *__fp);
- extern int _IO_putc (int __c, _IO_FILE *__fp);
- extern int _IO_feof (_IO_FILE *__fp) throw ();
- extern int _IO_ferror (_IO_FILE *__fp) throw ();
- extern int _IO_peekc_locked (_IO_FILE *__fp);
- extern void _IO_flockfile (_IO_FILE *) throw ();
- extern void _IO_funlockfile (_IO_FILE *) throw ();
- extern int _IO_ftrylockfile (_IO_FILE *) throw ();
- # 490 "/usr/include/libio.h" 3 4
- extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
- __gnuc_va_list, int *__restrict);
- extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
- __gnuc_va_list);
- extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
- extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
- extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
- extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
- extern void _IO_free_backup_area (_IO_FILE *) throw ();
- # 552 "/usr/include/libio.h" 3 4
- }
- # 76 "/usr/include/stdio.h" 2 3 4
- typedef __gnuc_va_list va_list;
- # 89 "/usr/include/stdio.h" 3 4
- typedef _G_fpos_t fpos_t;
- typedef _G_fpos64_t fpos64_t;
- # 141 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
- # 142 "/usr/include/stdio.h" 2 3 4
- extern struct _IO_FILE *stdin;
- extern struct _IO_FILE *stdout;
- extern struct _IO_FILE *stderr;
- extern int remove (__const char *__filename) throw ();
- extern int rename (__const char *__old, __const char *__new) throw ();
- extern int renameat (int __oldfd, __const char *__old, int __newfd,
- __const char *__new) throw ();
- extern FILE *tmpfile (void) ;
- # 182 "/usr/include/stdio.h" 3 4
- extern FILE *tmpfile64 (void) ;
- extern char *tmpnam (char *__s) throw () ;
- extern char *tmpnam_r (char *__s) throw () ;
- # 204 "/usr/include/stdio.h" 3 4
- extern char *tempnam (__const char *__dir, __const char *__pfx)
- throw () __attribute__ ((__malloc__)) ;
- extern int fclose (FILE *__stream);
- extern int fflush (FILE *__stream);
- # 229 "/usr/include/stdio.h" 3 4
- extern int fflush_unlocked (FILE *__stream);
- # 239 "/usr/include/stdio.h" 3 4
- extern int fcloseall (void);
- extern FILE *fopen (__const char *__restrict __filename,
- __const char *__restrict __modes) ;
- extern FILE *freopen (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream) ;
- # 272 "/usr/include/stdio.h" 3 4
- extern FILE *fopen64 (__const char *__restrict __filename,
- __const char *__restrict __modes) ;
- extern FILE *freopen64 (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream) ;
- extern FILE *fdopen (int __fd, __const char *__modes) throw () ;
- extern FILE *fopencookie (void *__restrict __magic_cookie,
- __const char *__restrict __modes,
- _IO_cookie_io_functions_t __io_funcs) throw () ;
- extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
- throw () ;
- extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw () ;
- extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw ();
- extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
- int __modes, size_t __n) throw ();
- extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
- size_t __size) throw ();
- extern void setlinebuf (FILE *__stream) throw ();
- extern int fprintf (FILE *__restrict __stream,
- __const char *__restrict __format, ...);
- extern int printf (__const char *__restrict __format, ...);
- extern int sprintf (char *__restrict __s,
- __const char *__restrict __format, ...) throw ();
- extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg);
- extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
- extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg) throw ();
- extern int snprintf (char *__restrict __s, size_t __maxlen,
- __const char *__restrict __format, ...)
- throw () __attribute__ ((__format__ (__printf__, 3, 4)));
- extern int vsnprintf (char *__restrict __s, size_t __maxlen,
- __const char *__restrict __format, __gnuc_va_list __arg)
- throw () __attribute__ ((__format__ (__printf__, 3, 0)));
- extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
- __gnuc_va_list __arg)
- throw () __attribute__ ((__format__ (__printf__, 2, 0))) ;
- extern int __asprintf (char **__restrict __ptr,
- __const char *__restrict __fmt, ...)
- throw () __attribute__ ((__format__ (__printf__, 2, 3))) ;
- extern int asprintf (char **__restrict __ptr,
- __const char *__restrict __fmt, ...)
- throw () __attribute__ ((__format__ (__printf__, 2, 3))) ;
- # 394 "/usr/include/stdio.h" 3 4
- extern int vdprintf (int __fd, __const char *__restrict __fmt,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__printf__, 2, 0)));
- extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
- __attribute__ ((__format__ (__printf__, 2, 3)));
- extern int fscanf (FILE *__restrict __stream,
- __const char *__restrict __format, ...) ;
- extern int scanf (__const char *__restrict __format, ...) ;
- extern int sscanf (__const char *__restrict __s,
- __const char *__restrict __format, ...) throw ();
- # 445 "/usr/include/stdio.h" 3 4
- extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 2, 0))) ;
- extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 1, 0))) ;
- extern int vsscanf (__const char *__restrict __s,
- __const char *__restrict __format, __gnuc_va_list __arg)
- throw () __attribute__ ((__format__ (__scanf__, 2, 0)));
- # 504 "/usr/include/stdio.h" 3 4
- extern int fgetc (FILE *__stream);
- extern int getc (FILE *__stream);
- extern int getchar (void);
- # 532 "/usr/include/stdio.h" 3 4
- extern int getc_unlocked (FILE *__stream);
- extern int getchar_unlocked (void);
- # 543 "/usr/include/stdio.h" 3 4
- extern int fgetc_unlocked (FILE *__stream);
- extern int fputc (int __c, FILE *__stream);
- extern int putc (int __c, FILE *__stream);
- extern int putchar (int __c);
- # 576 "/usr/include/stdio.h" 3 4
- extern int fputc_unlocked (int __c, FILE *__stream);
- extern int putc_unlocked (int __c, FILE *__stream);
- extern int putchar_unlocked (int __c);
- extern int getw (FILE *__stream);
- extern int putw (int __w, FILE *__stream);
- extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
- ;
- extern char *gets (char *__s) ;
- # 622 "/usr/include/stdio.h" 3 4
- extern char *fgets_unlocked (char *__restrict __s, int __n,
- FILE *__restrict __stream) ;
- # 638 "/usr/include/stdio.h" 3 4
- extern __ssize_t __getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream) ;
- extern __ssize_t getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream) ;
- extern __ssize_t getline (char **__restrict __lineptr,
- size_t *__restrict __n,
- FILE *__restrict __stream) ;
- extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
- extern int puts (__const char *__s);
- extern int ungetc (int __c, FILE *__stream);
- extern size_t fread (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream) ;
- extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __s);
- # 699 "/usr/include/stdio.h" 3 4
- extern int fputs_unlocked (__const char *__restrict __s,
- FILE *__restrict __stream);
- # 710 "/usr/include/stdio.h" 3 4
- extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream) ;
- extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream);
- extern int fseek (FILE *__stream, long int __off, int __whence);
- extern long int ftell (FILE *__stream) ;
- extern void rewind (FILE *__stream);
- # 746 "/usr/include/stdio.h" 3 4
- extern int fseeko (FILE *__stream, __off_t __off, int __whence);
- extern __off_t ftello (FILE *__stream) ;
- # 765 "/usr/include/stdio.h" 3 4
- extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
- extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
- # 788 "/usr/include/stdio.h" 3 4
- extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
- extern __off64_t ftello64 (FILE *__stream) ;
- extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
- extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
- extern void clearerr (FILE *__stream) throw ();
- extern int feof (FILE *__stream) throw () ;
- extern int ferror (FILE *__stream) throw () ;
- extern void clearerr_unlocked (FILE *__stream) throw ();
- extern int feof_unlocked (FILE *__stream) throw () ;
- extern int ferror_unlocked (FILE *__stream) throw () ;
- extern void perror (__const char *__s);
- # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
- # 27 "/usr/include/bits/sys_errlist.h" 3 4
- extern int sys_nerr;
- extern __const char *__const sys_errlist[];
- extern int _sys_nerr;
- extern __const char *__const _sys_errlist[];
- # 827 "/usr/include/stdio.h" 2 3 4
- extern int fileno (FILE *__stream) throw () ;
- extern int fileno_unlocked (FILE *__stream) throw () ;
- # 846 "/usr/include/stdio.h" 3 4
- extern FILE *popen (__const char *__command, __const char *__modes) ;
- extern int pclose (FILE *__stream);
- extern char *ctermid (char *__s) throw ();
- extern char *cuserid (char *__s);
- struct obstack;
- extern int obstack_printf (struct obstack *__restrict __obstack,
- __const char *__restrict __format, ...)
- throw () __attribute__ ((__format__ (__printf__, 2, 3)));
- extern int obstack_vprintf (struct obstack *__restrict __obstack,
- __const char *__restrict __format,
- __gnuc_va_list __args)
- throw () __attribute__ ((__format__ (__printf__, 2, 0)));
- extern void flockfile (FILE *__stream) throw ();
- extern int ftrylockfile (FILE *__stream) throw () ;
- extern void funlockfile (FILE *__stream) throw ();
- # 916 "/usr/include/stdio.h" 3 4
- }
- # 2 "grover.c" 2
- # 1 "/usr/include/string.h" 1 3 4
- # 28 "/usr/include/string.h" 3 4
- extern "C" {
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 34 "/usr/include/string.h" 2 3 4
- extern void *memcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *memmove (void *__dest, __const void *__src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
- int __c, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++"
- {
- extern void *memchr (void *__s, int __c, size_t __n)
- throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const void *memchr (__const void *__s, int __c, size_t __n)
- throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 92 "/usr/include/string.h" 3 4
- }
- extern "C++" void *rawmemchr (void *__s, int __c)
- throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" __const void *rawmemchr (__const void *__s, int __c)
- throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" void *memrchr (void *__s, int __c, size_t __n)
- throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" __const void *memrchr (__const void *__s, int __c, size_t __n)
- throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
- size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int strcmp (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcoll (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strxfrm (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (2)));
- # 1 "/usr/include/xlocale.h" 1 3 4
- # 28 "/usr/include/xlocale.h" 3 4
- typedef struct __locale_struct
- {
- struct locale_data *__locales[13];
- const unsigned short int *__ctype_b;
- const int *__ctype_tolower;
- const int *__ctype_toupper;
- const char *__names[13];
- } *__locale_t;
- typedef __locale_t locale_t;
- # 162 "/usr/include/string.h" 2 3 4
- extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
- __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
- extern char *strdup (__const char *__s)
- throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- extern char *strndup (__const char *__string, size_t __n)
- throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- # 208 "/usr/include/string.h" 3 4
- extern "C++"
- {
- extern char *strchr (char *__s, int __c)
- throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *strchr (__const char *__s, int __c)
- throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 231 "/usr/include/string.h" 3 4
- }
- extern "C++"
- {
- extern char *strrchr (char *__s, int __c)
- throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *strrchr (__const char *__s, int __c)
- throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 258 "/usr/include/string.h" 3 4
- }
- extern "C++" char *strchrnul (char *__s, int __c)
- throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" __const char *strchrnul (__const char *__s, int __c)
- throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strcspn (__const char *__s, __const char *__reject)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strspn (__const char *__s, __const char *__accept)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++"
- {
- extern char *strpbrk (char *__s, __const char *__accept)
- throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern __const char *strpbrk (__const char *__s, __const char *__accept)
- throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 310 "/usr/include/string.h" 3 4
- }
- extern "C++"
- {
- extern char *strstr (char *__haystack, __const char *__needle)
- throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern __const char *strstr (__const char *__haystack,
- __const char *__needle)
- throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 338 "/usr/include/string.h" 3 4
- }
- extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
- throw () __attribute__ ((__nonnull__ (2)));
- extern char *__strtok_r (char *__restrict __s,
- __const char *__restrict __delim,
- char **__restrict __save_ptr)
- throw () __attribute__ ((__nonnull__ (2, 3)));
- extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
- char **__restrict __save_ptr)
- throw () __attribute__ ((__nonnull__ (2, 3)));
- extern "C++" char *strcasestr (char *__haystack, __const char *__needle)
- throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++" __const char *strcasestr (__const char *__haystack,
- __const char *__needle)
- throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 380 "/usr/include/string.h" 3 4
- extern void *memmem (__const void *__haystack, size_t __haystacklen,
- __const void *__needle, size_t __needlelen)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
- extern void *__mempcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *mempcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strlen (__const char *__s)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strnlen (__const char *__string, size_t __maxlen)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strerror (int __errnum) throw ();
- # 436 "/usr/include/string.h" 3 4
- extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
- throw () __attribute__ ((__nonnull__ (2)));
- extern char *strerror_l (int __errnum, __locale_t __l) throw ();
- extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern void bcopy (__const void *__src, void *__dest, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++"
- {
- extern char *index (char *__s, int __c)
- throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *index (__const char *__s, int __c)
- throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 485 "/usr/include/string.h" 3 4
- }
- extern "C++"
- {
- extern char *rindex (char *__s, int __c)
- throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *rindex (__const char *__s, int __c)
- throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 513 "/usr/include/string.h" 3 4
- }
- extern int ffs (int __i) throw () __attribute__ ((__const__));
- extern int ffsl (long int __l) throw () __attribute__ ((__const__));
- __extension__ extern int ffsll (long long int __ll)
- throw () __attribute__ ((__const__));
- extern int strcasecmp (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcasecmp_l (__const char *__s1, __const char *__s2,
- __locale_t __loc)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- extern int strncasecmp_l (__const char *__s1, __const char *__s2,
- size_t __n, __locale_t __loc)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
- extern char *strsep (char **__restrict __stringp,
- __const char *__restrict __delim)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strsignal (int __sig) throw ();
- extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *__stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int strverscmp (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
- extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern "C++" char *basename (char *__filename)
- throw () __asm ("basename") __attribute__ ((__nonnull__ (1)));
- extern "C++" __const char *basename (__const char *__filename)
- throw () __asm ("basename") __attribute__ ((__nonnull__ (1)));
- # 644 "/usr/include/string.h" 3 4
- }
- # 3 "grover.c" 2
- # 1 "/usr/include/c++/4.4/cstdlib" 1 3
- # 41 "/usr/include/c++/4.4/cstdlib" 3
- # 42 "/usr/include/c++/4.4/cstdlib" 3
- # 1 "/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h" 1 3
- # 243 "/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h" 3
- # 1 "/usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h" 1 3
- # 244 "/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h" 2 3
- # 1 "/usr/include/c++/4.4/i486-linux-gnu/bits/cpu_defines.h" 1 3
- # 247 "/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h" 2 3
- # 44 "/usr/include/c++/4.4/cstdlib" 2 3
- # 1 "/usr/include/c++/4.4/cstddef" 1 3
- # 41 "/usr/include/c++/4.4/cstddef" 3
- # 42 "/usr/include/c++/4.4/cstddef" 3
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 149 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 3 4
- typedef int ptrdiff_t;
- # 45 "/usr/include/c++/4.4/cstddef" 2 3
- namespace std __attribute__ ((__visibility__ ("default"))) {
- using ::ptrdiff_t;
- using ::size_t;
- }
- # 45 "/usr/include/c++/4.4/cstdlib" 2 3
- # 68 "/usr/include/c++/4.4/cstdlib" 3
- # 1 "/usr/include/stdlib.h" 1 3 4
- # 33 "/usr/include/stdlib.h" 3 4
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 34 "/usr/include/stdlib.h" 2 3 4
- extern "C" {
- # 1 "/usr/include/bits/waitflags.h" 1 3 4
- # 43 "/usr/include/stdlib.h" 2 3 4
- # 1 "/usr/include/bits/waitstatus.h" 1 3 4
- # 65 "/usr/include/bits/waitstatus.h" 3 4
- # 1 "/usr/include/endian.h" 1 3 4
- # 37 "/usr/include/endian.h" 3 4
- # 1 "/usr/include/bits/endian.h" 1 3 4
- # 38 "/usr/include/endian.h" 2 3 4
- # 61 "/usr/include/endian.h" 3 4
- # 1 "/usr/include/bits/byteswap.h" 1 3 4
- # 28 "/usr/include/bits/byteswap.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 29 "/usr/include/bits/byteswap.h" 2 3 4
- # 62 "/usr/include/endian.h" 2 3 4
- # 66 "/usr/include/bits/waitstatus.h" 2 3 4
- union wait
- {
- int w_status;
- struct
- {
- unsigned int __w_termsig:7;
- unsigned int __w_coredump:1;
- unsigned int __w_retcode:8;
- unsigned int:16;
- } __wait_terminated;
- struct
- {
- unsigned int __w_stopval:8;
- unsigned int __w_stopsig:8;
- unsigned int:16;
- } __wait_stopped;
- };
- # 44 "/usr/include/stdlib.h" 2 3 4
- # 96 "/usr/include/stdlib.h" 3 4
- typedef struct
- {
- int quot;
- int rem;
- } div_t;
- typedef struct
- {
- long int quot;
- long int rem;
- } ldiv_t;
- __extension__ typedef struct
- {
- long long int quot;
- long long int rem;
- } lldiv_t;
- # 140 "/usr/include/stdlib.h" 3 4
- extern size_t __ctype_get_mb_cur_max (void) throw () ;
- extern double atof (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern int atoi (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern long int atol (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__ extern long long int atoll (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern double strtod (__const char *__restrict __nptr,
- char **__restrict __endptr)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern float strtof (__const char *__restrict __nptr,
- char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ;
- extern long double strtold (__const char *__restrict __nptr,
- char **__restrict __endptr)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern long int strtol (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern unsigned long int strtoul (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern long long int strtoq (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern unsigned long long int strtouq (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern long long int strtoll (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern unsigned long long int strtoull (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- # 240 "/usr/include/stdlib.h" 3 4
- extern long int strtol_l (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base,
- __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ;
- extern unsigned long int strtoul_l (__const char *__restrict __nptr,
- char **__restrict __endptr,
- int __base, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 4))) ;
- __extension__
- extern long long int strtoll_l (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base,
- __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 4))) ;
- __extension__
- extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
- char **__restrict __endptr,
- int __base, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 4))) ;
- extern double strtod_l (__const char *__restrict __nptr,
- char **__restrict __endptr, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 3))) ;
- extern float strtof_l (__const char *__restrict __nptr,
- char **__restrict __endptr, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 3))) ;
- extern long double strtold_l (__const char *__restrict __nptr,
- char **__restrict __endptr,
- __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 3))) ;
- # 311 "/usr/include/stdlib.h" 3 4
- extern char *l64a (long int __n) throw () ;
- extern long int a64l (__const char *__s)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- # 1 "/usr/include/sys/types.h" 1 3 4
- # 29 "/usr/include/sys/types.h" 3 4
- extern "C" {
- typedef __u_char u_char;
- typedef __u_short u_short;
- typedef __u_int u_int;
- typedef __u_long u_long;
- typedef __quad_t quad_t;
- typedef __u_quad_t u_quad_t;
- typedef __fsid_t fsid_t;
- typedef __loff_t loff_t;
- typedef __ino_t ino_t;
- typedef __ino64_t ino64_t;
- typedef __dev_t dev_t;
- typedef __gid_t gid_t;
- typedef __mode_t mode_t;
- typedef __nlink_t nlink_t;
- typedef __uid_t uid_t;
- typedef __off_t off_t;
- typedef __off64_t off64_t;
- typedef __pid_t pid_t;
- typedef __id_t id_t;
- typedef __ssize_t ssize_t;
- typedef __daddr_t daddr_t;
- typedef __caddr_t caddr_t;
- typedef __key_t key_t;
- # 133 "/usr/include/sys/types.h" 3 4
- # 1 "/usr/include/time.h" 1 3 4
- # 58 "/usr/include/time.h" 3 4
- typedef __clock_t clock_t;
- # 74 "/usr/include/time.h" 3 4
- typedef __time_t time_t;
- # 92 "/usr/include/time.h" 3 4
- typedef __clockid_t clockid_t;
- # 104 "/usr/include/time.h" 3 4
- typedef __timer_t timer_t;
- # 134 "/usr/include/sys/types.h" 2 3 4
- typedef __useconds_t useconds_t;
- typedef __suseconds_t suseconds_t;
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 148 "/usr/include/sys/types.h" 2 3 4
- typedef unsigned long int ulong;
- typedef unsigned short int ushort;
- typedef unsigned int uint;
- # 195 "/usr/include/sys/types.h" 3 4
- typedef int int8_t __attribute__ ((__mode__ (__QI__)));
- typedef int int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int int32_t __attribute__ ((__mode__ (__SI__)));
- typedef int int64_t __attribute__ ((__mode__ (__DI__)));
- typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
- typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
- typedef int register_t __attribute__ ((__mode__ (__word__)));
- # 220 "/usr/include/sys/types.h" 3 4
- # 1 "/usr/include/sys/select.h" 1 3 4
- # 31 "/usr/include/sys/select.h" 3 4
- # 1 "/usr/include/bits/select.h" 1 3 4
- # 23 "/usr/include/bits/select.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 24 "/usr/include/bits/select.h" 2 3 4
- # 32 "/usr/include/sys/select.h" 2 3 4
- # 1 "/usr/include/bits/sigset.h" 1 3 4
- # 24 "/usr/include/bits/sigset.h" 3 4
- typedef int __sig_atomic_t;
- typedef struct
- {
- unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
- } __sigset_t;
- # 35 "/usr/include/sys/select.h" 2 3 4
- typedef __sigset_t sigset_t;
- # 1 "/usr/include/time.h" 1 3 4
- # 120 "/usr/include/time.h" 3 4
- struct timespec
- {
- __time_t tv_sec;
- long int tv_nsec;
- };
- # 45 "/usr/include/sys/select.h" 2 3 4
- # 1 "/usr/include/bits/time.h" 1 3 4
- # 69 "/usr/include/bits/time.h" 3 4
- struct timeval
- {
- __time_t tv_sec;
- __suseconds_t tv_usec;
- };
- # 47 "/usr/include/sys/select.h" 2 3 4
- # 55 "/usr/include/sys/select.h" 3 4
- typedef long int __fd_mask;
- # 67 "/usr/include/sys/select.h" 3 4
- typedef struct
- {
- __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
- } fd_set;
- typedef __fd_mask fd_mask;
- # 99 "/usr/include/sys/select.h" 3 4
- extern "C" {
- # 109 "/usr/include/sys/select.h" 3 4
- extern int select (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- struct timeval *__restrict __timeout);
- # 121 "/usr/include/sys/select.h" 3 4
- extern int pselect (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- const struct timespec *__restrict __timeout,
- const __sigset_t *__restrict __sigmask);
- }
- # 221 "/usr/include/sys/types.h" 2 3 4
- # 1 "/usr/include/sys/sysmacros.h" 1 3 4
- # 30 "/usr/include/sys/sysmacros.h" 3 4
- __extension__
- extern unsigned int gnu_dev_major (unsigned long long int __dev)
- throw ();
- __extension__
- extern unsigned int gnu_dev_minor (unsigned long long int __dev)
- throw ();
- __extension__
- extern unsigned long long int gnu_dev_makedev (unsigned int __major,
- unsigned int __minor)
- throw ();
- # 224 "/usr/include/sys/types.h" 2 3 4
- typedef __blksize_t blksize_t;
- typedef __blkcnt_t blkcnt_t;
- typedef __fsblkcnt_t fsblkcnt_t;
- typedef __fsfilcnt_t fsfilcnt_t;
- # 262 "/usr/include/sys/types.h" 3 4
- typedef __blkcnt64_t blkcnt64_t;
- typedef __fsblkcnt64_t fsblkcnt64_t;
- typedef __fsfilcnt64_t fsfilcnt64_t;
- # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
- # 23 "/usr/include/bits/pthreadtypes.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
- # 50 "/usr/include/bits/pthreadtypes.h" 3 4
- typedef unsigned long int pthread_t;
- typedef union
- {
- char __size[36];
- long int __align;
- } pthread_attr_t;
- # 67 "/usr/include/bits/pthreadtypes.h" 3 4
- typedef struct __pthread_internal_slist
- {
- struct __pthread_internal_slist *__next;
- } __pthread_slist_t;
- typedef union
- {
- struct __pthread_mutex_s
- {
- int __lock;
- unsigned int __count;
- int __owner;
- int __kind;
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
- } __data;
- char __size[24];
- long int __align;
- } pthread_mutex_t;
- typedef union
- {
- char __size[4];
- int __align;
- } pthread_mutexattr_t;
- typedef union
- {
- struct
- {
- int __lock;
- unsigned int __futex;
- __extension__ unsigned long long int __total_seq;
- __extension__ unsigned long long int __wakeup_seq;
- __extension__ unsigned long long int __woken_seq;
- void *__mutex;
- unsigned int __nwaiters;
- unsigned int __broadcast_seq;
- } __data;
- char __size[48];
- __extension__ long long int __align;
- } pthread_cond_t;
- typedef union
- {
- char __size[4];
- int __align;
- } pthread_condattr_t;
- typedef unsigned int pthread_key_t;
- typedef int pthread_once_t;
- typedef union
- {
- # 170 "/usr/include/bits/pthreadtypes.h" 3 4
- struct
- {
- int __lock;
- unsigned int __nr_readers;
- unsigned int __readers_wakeup;
- unsigned int __writer_wakeup;
- unsigned int __nr_readers_queued;
- unsigned int __nr_writers_queued;
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
- int __writer;
- } __data;
- char __size[32];
- long int __align;
- } pthread_rwlock_t;
- typedef union
- {
- char __size[8];
- long int __align;
- } pthread_rwlockattr_t;
- typedef volatile int pthread_spinlock_t;
- typedef union
- {
- char __size[20];
- long int __align;
- } pthread_barrier_t;
- typedef union
- {
- char __size[4];
- int __align;
- } pthread_barrierattr_t;
- # 271 "/usr/include/sys/types.h" 2 3 4
- }
- # 321 "/usr/include/stdlib.h" 2 3 4
- extern long int random (void) throw ();
- extern void srandom (unsigned int __seed) throw ();
- extern char *initstate (unsigned int __seed, char *__statebuf,
- size_t __statelen) throw () __attribute__ ((__nonnull__ (2)));
- extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1)));
- struct random_data
- {
- int32_t *fptr;
- int32_t *rptr;
- int32_t *state;
- int rand_type;
- int rand_deg;
- int rand_sep;
- int32_t *end_ptr;
- };
- extern int random_r (struct random_data *__restrict __buf,
- int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int srandom_r (unsigned int __seed, struct random_data *__buf)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
- size_t __statelen,
- struct random_data *__restrict __buf)
- throw () __attribute__ ((__nonnull__ (2, 4)));
- extern int setstate_r (char *__restrict __statebuf,
- struct random_data *__restrict __buf)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int rand (void) throw ();
- extern void srand (unsigned int __seed) throw ();
- extern int rand_r (unsigned int *__seed) throw ();
- extern double drand48 (void) throw ();
- extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1)));
- extern long int lrand48 (void) throw ();
- extern long int nrand48 (unsigned short int __xsubi[3])
- throw () __attribute__ ((__nonnull__ (1)));
- extern long int mrand48 (void) throw ();
- extern long int jrand48 (unsigned short int __xsubi[3])
- throw () __attribute__ ((__nonnull__ (1)));
- extern void srand48 (long int __seedval) throw ();
- extern unsigned short int *seed48 (unsigned short int __seed16v[3])
- throw () __attribute__ ((__nonnull__ (1)));
- extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1)));
- struct drand48_data
- {
- unsigned short int __x[3];
- unsigned short int __old_x[3];
- unsigned short int __c;
- unsigned short int __init;
- unsigned long long int __a;
- };
- extern int drand48_r (struct drand48_data *__restrict __buffer,
- double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int erand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int lrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int nrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int mrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int jrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int seed48_r (unsigned short int __seed16v[3],
- struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int lcong48_r (unsigned short int __param[7],
- struct drand48_data *__buffer)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
- extern void *calloc (size_t __nmemb, size_t __size)
- throw () __attribute__ ((__malloc__)) ;
- extern void *realloc (void *__ptr, size_t __size)
- throw () __attribute__ ((__warn_unused_result__));
- extern void free (void *__ptr) throw ();
- extern void cfree (void *__ptr) throw ();
- # 1 "/usr/include/alloca.h" 1 3 4
- # 25 "/usr/include/alloca.h" 3 4
- # 1 "/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h" 1 3 4
- # 26 "/usr/include/alloca.h" 2 3 4
- extern "C" {
- extern void *alloca (size_t __size) throw ();
- }
- # 498 "/usr/include/stdlib.h" 2 3 4
- extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
- extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern void abort (void) throw () __attribute__ ((__noreturn__));
- extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1)));
- extern "C++" int at_quick_exit (void (*__func) (void))
- throw () __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1)));
- extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
- throw () __attribute__ ((__nonnull__ (1)));
- extern void exit (int __status) throw () __attribute__ ((__noreturn__));
- extern void quick_exit (int __status) throw () __attribute__ ((__noreturn__));
- extern void _Exit (int __status) throw () __attribute__ ((__noreturn__));
- extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ;
- extern char *__secure_getenv (__const char *__name)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1)));
- extern int setenv (__const char *__name, __const char *__value, int __replace)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int unsetenv (__const char *__name) throw ();
- extern int clearenv (void) throw ();
- # 604 "/usr/include/stdlib.h" 3 4
- extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
- # 615 "/usr/include/stdlib.h" 3 4
- extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 625 "/usr/include/stdlib.h" 3 4
- extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 637 "/usr/include/stdlib.h" 3 4
- extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ;
- # 647 "/usr/include/stdlib.h" 3 4
- extern int mkstemps64 (char *__template, int __suffixlen)
- __attribute__ ((__nonnull__ (1))) ;
- # 658 "/usr/include/stdlib.h" 3 4
- extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
- # 669 "/usr/include/stdlib.h" 3 4
- extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
- # 679 "/usr/include/stdlib.h" 3 4
- extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
- # 689 "/usr/include/stdlib.h" 3 4
- extern int mkostemps (char *__template, int __suffixlen, int __flags)
- __attribute__ ((__nonnull__ (1))) ;
- # 701 "/usr/include/stdlib.h" 3 4
- extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
- __attribute__ ((__nonnull__ (1))) ;
- extern int system (__const char *__command) ;
- extern char *canonicalize_file_name (__const char *__name)
- throw () __attribute__ ((__nonnull__ (1))) ;
- # 729 "/usr/include/stdlib.h" 3 4
- extern char *realpath (__const char *__restrict __name,
- char *__restrict __resolved) throw () ;
- typedef int (*__compar_fn_t) (__const void *, __const void *);
- typedef __compar_fn_t comparison_fn_t;
- typedef int (*__compar_d_fn_t) (__const void *, __const void *, void *);
- extern void *bsearch (__const void *__key, __const void *__base,
- size_t __nmemb, size_t __size, __compar_fn_t __compar)
- __attribute__ ((__nonnull__ (1, 2, 5))) ;
- extern void qsort (void *__base, size_t __nmemb, size_t __size,
- __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
- extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
- __compar_d_fn_t __compar, void *__arg)
- __attribute__ ((__nonnull__ (1, 4)));
- extern int abs (int __x) throw () __attribute__ ((__const__)) ;
- extern long int labs (long int __x) throw () __attribute__ ((__const__)) ;
- __extension__ extern long long int llabs (long long int __x)
- throw () __attribute__ ((__const__)) ;
- extern div_t div (int __numer, int __denom)
- throw () __attribute__ ((__const__)) ;
- extern ldiv_t ldiv (long int __numer, long int __denom)
- throw () __attribute__ ((__const__)) ;
- __extension__ extern lldiv_t lldiv (long long int __numer,
- long long int __denom)
- throw () __attribute__ ((__const__)) ;
- # 802 "/usr/include/stdlib.h" 3 4
- extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *gcvt (double __value, int __ndigit, char *__buf)
- throw () __attribute__ ((__nonnull__ (3))) ;
- extern char *qecvt (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign)
- throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *qfcvt (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign)
- throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *qgcvt (long double __value, int __ndigit, char *__buf)
- throw () __attribute__ ((__nonnull__ (3))) ;
- extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign, char *__restrict __buf,
- size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign, char *__restrict __buf,
- size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int qecvt_r (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign,
- char *__restrict __buf, size_t __len)
- throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int qfcvt_r (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign,
- char *__restrict __buf, size_t __len)
- throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int mblen (__const char *__s, size_t __n) throw () ;
- extern int mbtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n) throw () ;
- extern int wctomb (char *__s, wchar_t __wchar) throw () ;
- extern size_t mbstowcs (wchar_t *__restrict __pwcs,
- __const char *__restrict __s, size_t __n) throw ();
- extern size_t wcstombs (char *__restrict __s,
- __const wchar_t *__restrict __pwcs, size_t __n)
- throw ();
- extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))) ;
- # 890 "/usr/include/stdlib.h" 3 4
- extern int getsubopt (char **__restrict __optionp,
- char *__const *__restrict __tokens,
- char **__restrict __valuep)
- throw () __attribute__ ((__nonnull__ (1, 2, 3))) ;
- extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1)));
- extern int posix_openpt (int __oflag) ;
- extern int grantpt (int __fd) throw ();
- extern int unlockpt (int __fd) throw ();
- extern char *ptsname (int __fd) throw () ;
- extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int getpt (void);
- extern int getloadavg (double __loadavg[], int __nelem)
- throw () __attribute__ ((__nonnull__ (1)));
- # 958 "/usr/include/stdlib.h" 3 4
- }
- # 69 "/usr/include/c++/4.4/cstdlib" 2 3
- # 100 "/usr/include/c++/4.4/cstdlib" 3
- namespace std __attribute__ ((__visibility__ ("default"))) {
- using ::div_t;
- using ::ldiv_t;
- using ::abort;
- using ::abs;
- using ::atexit;
- using ::atof;
- using ::atoi;
- using ::atol;
- using ::bsearch;
- using ::calloc;
- using ::div;
- using ::exit;
- using ::free;
- using ::getenv;
- using ::labs;
- using ::ldiv;
- using ::malloc;
- using ::mblen;
- using ::mbstowcs;
- using ::mbtowc;
- using ::qsort;
- using ::rand;
- using ::realloc;
- using ::srand;
- using ::strtod;
- using ::strtol;
- using ::strtoul;
- using ::system;
- using ::wcstombs;
- using ::wctomb;
- inline long
- abs(long __i) { return labs(__i); }
- inline ldiv_t
- div(long __i, long __j) { return ldiv(__i, __j); }
- }
- # 157 "/usr/include/c++/4.4/cstdlib" 3
- namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
- using ::lldiv_t;
- using ::_Exit;
- inline long long
- abs(long long __x) { return __x >= 0 ? __x : -__x; }
- using ::llabs;
- inline lldiv_t
- div(long long __n, long long __d)
- { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
- using ::lldiv;
- # 190 "/usr/include/c++/4.4/cstdlib" 3
- using ::atoll;
- using ::strtoll;
- using ::strtoull;
- using ::strtof;
- using ::strtold;
- }
- namespace std __attribute__ ((__visibility__ ("default"))) {
- using ::__gnu_cxx::lldiv_t;
- using ::__gnu_cxx::_Exit;
- using ::__gnu_cxx::abs;
- using ::__gnu_cxx::llabs;
- using ::__gnu_cxx::div;
- using ::__gnu_cxx::lldiv;
- using ::__gnu_cxx::atoll;
- using ::__gnu_cxx::strtof;
- using ::__gnu_cxx::strtoll;
- using ::__gnu_cxx::strtoull;
- using ::__gnu_cxx::strtold;
- }
- # 4 "grover.c" 2
- # 1 "grover.h" 1
- # 10 "grover.h"
- # 1 "/usr/local/include/sndfile.h" 1 3
- # 36 "/usr/local/include/sndfile.h" 3
- extern "C" {
- # 46 "/usr/local/include/sndfile.h" 3
- enum
- {
- SF_FORMAT_WAV = 0x010000,
- SF_FORMAT_AIFF = 0x020000,
- SF_FORMAT_AU = 0x030000,
- SF_FORMAT_RAW = 0x040000,
- SF_FORMAT_PAF = 0x050000,
- SF_FORMAT_SVX = 0x060000,
- SF_FORMAT_NIST = 0x070000,
- SF_FORMAT_VOC = 0x080000,
- SF_FORMAT_IRCAM = 0x0A0000,
- SF_FORMAT_W64 = 0x0B0000,
- SF_FORMAT_MAT4 = 0x0C0000,
- SF_FORMAT_MAT5 = 0x0D0000,
- SF_FORMAT_PVF = 0x0E0000,
- SF_FORMAT_XI = 0x0F0000,
- SF_FORMAT_HTK = 0x100000,
- SF_FORMAT_SDS = 0x110000,
- SF_FORMAT_AVR = 0x120000,
- SF_FORMAT_WAVEX = 0x130000,
- SF_FORMAT_SD2 = 0x160000,
- SF_FORMAT_FLAC = 0x170000,
- SF_FORMAT_CAF = 0x180000,
- SF_FORMAT_WVE = 0x190000,
- SF_FORMAT_OGG = 0x200000,
- SF_FORMAT_MPC2K = 0x210000,
- SF_FORMAT_RF64 = 0x220000,
- SF_FORMAT_PCM_S8 = 0x0001,
- SF_FORMAT_PCM_16 = 0x0002,
- SF_FORMAT_PCM_24 = 0x0003,
- SF_FORMAT_PCM_32 = 0x0004,
- SF_FORMAT_PCM_U8 = 0x0005,
- SF_FORMAT_FLOAT = 0x0006,
- SF_FORMAT_DOUBLE = 0x0007,
- SF_FORMAT_ULAW = 0x0010,
- SF_FORMAT_ALAW = 0x0011,
- SF_FORMAT_IMA_ADPCM = 0x0012,
- SF_FORMAT_MS_ADPCM = 0x0013,
- SF_FORMAT_GSM610 = 0x0020,
- SF_FORMAT_VOX_ADPCM = 0x0021,
- SF_FORMAT_G721_32 = 0x0030,
- SF_FORMAT_G723_24 = 0x0031,
- SF_FORMAT_G723_40 = 0x0032,
- SF_FORMAT_DWVW_12 = 0x0040,
- SF_FORMAT_DWVW_16 = 0x0041,
- SF_FORMAT_DWVW_24 = 0x0042,
- SF_FORMAT_DWVW_N = 0x0043,
- SF_FORMAT_DPCM_8 = 0x0050,
- SF_FORMAT_DPCM_16 = 0x0051,
- SF_FORMAT_VORBIS = 0x0060,
- SF_ENDIAN_FILE = 0x00000000,
- SF_ENDIAN_LITTLE = 0x10000000,
- SF_ENDIAN_BIG = 0x20000000,
- SF_ENDIAN_CPU = 0x30000000,
- SF_FORMAT_SUBMASK = 0x0000FFFF,
- SF_FORMAT_TYPEMASK = 0x0FFF0000,
- SF_FORMAT_ENDMASK = 0x30000000
- } ;
- enum
- { SFC_GET_LIB_VERSION = 0x1000,
- SFC_GET_LOG_INFO = 0x1001,
- SFC_GET_CURRENT_SF_INFO = 0x1002,
- SFC_GET_NORM_DOUBLE = 0x1010,
- SFC_GET_NORM_FLOAT = 0x1011,
- SFC_SET_NORM_DOUBLE = 0x1012,
- SFC_SET_NORM_FLOAT = 0x1013,
- SFC_SET_SCALE_FLOAT_INT_READ = 0x1014,
- SFC_SET_SCALE_INT_FLOAT_WRITE = 0x1015,
- SFC_GET_SIMPLE_FORMAT_COUNT = 0x1020,
- SFC_GET_SIMPLE_FORMAT = 0x1021,
- SFC_GET_FORMAT_INFO = 0x1028,
- SFC_GET_FORMAT_MAJOR_COUNT = 0x1030,
- SFC_GET_FORMAT_MAJOR = 0x1031,
- SFC_GET_FORMAT_SUBTYPE_COUNT = 0x1032,
- SFC_GET_FORMAT_SUBTYPE = 0x1033,
- SFC_CALC_SIGNAL_MAX = 0x1040,
- SFC_CALC_NORM_SIGNAL_MAX = 0x1041,
- SFC_CALC_MAX_ALL_CHANNELS = 0x1042,
- SFC_CALC_NORM_MAX_ALL_CHANNELS = 0x1043,
- SFC_GET_SIGNAL_MAX = 0x1044,
- SFC_GET_MAX_ALL_CHANNELS = 0x1045,
- SFC_SET_ADD_PEAK_CHUNK = 0x1050,
- SFC_SET_ADD_HEADER_PAD_CHUNK = 0x1051,
- SFC_UPDATE_HEADER_NOW = 0x1060,
- SFC_SET_UPDATE_HEADER_AUTO = 0x1061,
- SFC_FILE_TRUNCATE = 0x1080,
- SFC_SET_RAW_START_OFFSET = 0x1090,
- SFC_SET_DITHER_ON_WRITE = 0x10A0,
- SFC_SET_DITHER_ON_READ = 0x10A1,
- SFC_GET_DITHER_INFO_COUNT = 0x10A2,
- SFC_GET_DITHER_INFO = 0x10A3,
- SFC_GET_EMBED_FILE_INFO = 0x10B0,
- SFC_SET_CLIPPING = 0x10C0,
- SFC_GET_CLIPPING = 0x10C1,
- SFC_GET_INSTRUMENT = 0x10D0,
- SFC_SET_INSTRUMENT = 0x10D1,
- SFC_GET_LOOP_INFO = 0x10E0,
- SFC_GET_BROADCAST_INFO = 0x10F0,
- SFC_SET_BROADCAST_INFO = 0x10F1,
- SFC_GET_CHANNEL_MAP_INFO = 0x1100,
- SFC_SET_CHANNEL_MAP_INFO = 0x1101,
- SFC_RAW_DATA_NEEDS_ENDSWAP = 0x1110,
- SFC_WAVEX_SET_AMBISONIC = 0x1200,
- SFC_WAVEX_GET_AMBISONIC = 0x1201,
- SFC_SET_VBR_ENCODING_QUALITY = 0x1300,
- SFC_TEST_IEEE_FLOAT_REPLACE = 0x6001,
- SFC_SET_ADD_DITHER_ON_WRITE = 0x1070,
- SFC_SET_ADD_DITHER_ON_READ = 0x1071
- } ;
- # 216 "/usr/local/include/sndfile.h" 3
- enum
- { SF_STR_TITLE = 0x01,
- SF_STR_COPYRIGHT = 0x02,
- SF_STR_SOFTWARE = 0x03,
- SF_STR_ARTIST = 0x04,
- SF_STR_COMMENT = 0x05,
- SF_STR_DATE = 0x06,
- SF_STR_ALBUM = 0x07,
- SF_STR_LICENSE = 0x08,
- SF_STR_TRACKNUMBER = 0x09,
- SF_STR_GENRE = 0x10
- } ;
- # 237 "/usr/local/include/sndfile.h" 3
- enum
- {
- SF_FALSE = 0,
- SF_TRUE = 1,
- SFM_READ = 0x10,
- SFM_WRITE = 0x20,
- SFM_RDWR = 0x30,
- SF_AMBISONIC_NONE = 0x40,
- SF_AMBISONIC_B_FORMAT = 0x41
- } ;
- enum
- { SF_ERR_NO_ERROR = 0,
- SF_ERR_UNRECOGNISED_FORMAT = 1,
- SF_ERR_SYSTEM = 2,
- SF_ERR_MALFORMED_FILE = 3,
- SF_ERR_UNSUPPORTED_ENCODING = 4
- } ;
- enum
- { SF_CHANNEL_MAP_INVALID = 0,
- SF_CHANNEL_MAP_MONO = 1,
- SF_CHANNEL_MAP_LEFT,
- SF_CHANNEL_MAP_RIGHT,
- SF_CHANNEL_MAP_CENTER,
- SF_CHANNEL_MAP_FRONT_LEFT,
- SF_CHANNEL_MAP_FRONT_RIGHT,
- SF_CHANNEL_MAP_FRONT_CENTER,
- SF_CHANNEL_MAP_REAR_CENTER,
- SF_CHANNEL_MAP_REAR_LEFT,
- SF_CHANNEL_MAP_REAR_RIGHT,
- SF_CHANNEL_MAP_LFE,
- SF_CHANNEL_MAP_FRONT_LEFT_OF_CENTER,
- SF_CHANNEL_MAP_FRONT_RIGHT_OF_CENTER,
- SF_CHANNEL_MAP_SIDE_LEFT,
- SF_CHANNEL_MAP_SIDE_RIGHT,
- SF_CHANNEL_MAP_TOP_CENTER,
- SF_CHANNEL_MAP_TOP_FRONT_LEFT,
- SF_CHANNEL_MAP_TOP_FRONT_RIGHT,
- SF_CHANNEL_MAP_TOP_FRONT_CENTER,
- SF_CHANNEL_MAP_TOP_REAR_LEFT,
- SF_CHANNEL_MAP_TOP_REAR_RIGHT,
- SF_CHANNEL_MAP_TOP_REAR_CENTER,
- SF_CHANNEL_MAP_AMBISONIC_B_W,
- SF_CHANNEL_MAP_AMBISONIC_B_X,
- SF_CHANNEL_MAP_AMBISONIC_B_Y,
- SF_CHANNEL_MAP_AMBISONIC_B_Z,
- SF_CHANNEL_MAP_MAX
- } ;
- typedef struct SNDFILE_tag SNDFILE ;
- # 317 "/usr/local/include/sndfile.h" 3
- typedef loff_t sf_count_t ;
- # 327 "/usr/local/include/sndfile.h" 3
- struct SF_INFO
- { sf_count_t frames ;
- int samplerate ;
- int channels ;
- int format ;
- int sections ;
- int seekable ;
- } ;
- typedef struct SF_INFO SF_INFO ;
- # 349 "/usr/local/include/sndfile.h" 3
- typedef struct
- { int format ;
- const char *name ;
- const char *extension ;
- } SF_FORMAT_INFO ;
- enum
- { SFD_DEFAULT_LEVEL = 0,
- SFD_CUSTOM_LEVEL = 0x40000000,
- SFD_NO_DITHER = 500,
- SFD_WHITE = 501,
- SFD_TRIANGULAR_PDF = 502
- } ;
- typedef struct
- { int type ;
- double level ;
- const char *name ;
- } SF_DITHER_INFO ;
- typedef struct
- { sf_count_t offset ;
- sf_count_t length ;
- } SF_EMBED_FILE_INFO ;
- enum
- {
- SF_LOOP_NONE = 800,
- SF_LOOP_FORWARD,
- SF_LOOP_BACKWARD,
- SF_LOOP_ALTERNATING
- } ;
- typedef struct
- { int gain ;
- char basenote, detune ;
- char velocity_lo, velocity_hi ;
- char key_lo, key_hi ;
- int loop_count ;
- struct
- { int mode ;
- unsigned int start ;
- unsigned int end ;
- unsigned int count ;
- } loops [16] ;
- } SF_INSTRUMENT ;
- typedef struct
- {
- short time_sig_num ;
- short time_sig_den ;
- int loop_mode ;
- int num_beats ;
- float bpm ;
- int root_key ;
- int future [6] ;
- } SF_LOOP_INFO ;
- # 456 "/usr/local/include/sndfile.h" 3
- typedef struct { char description [256] ; char originator [32] ; char originator_reference [32] ; char origination_date [10] ; char origination_time [8] ; unsigned int time_reference_low ; unsigned int time_reference_high ; short version ; char umid [64] ; char reserved [190] ; unsigned int coding_history_size ; char coding_history [256] ; } SF_BROADCAST_INFO ;
- typedef sf_count_t (*sf_vio_get_filelen) (void *user_data) ;
- typedef sf_count_t (*sf_vio_seek) (sf_count_t offset, int whence, void *user_data) ;
- typedef sf_count_t (*sf_vio_read) (void *ptr, sf_count_t count, void *user_data) ;
- typedef sf_count_t (*sf_vio_write) (const void *ptr, sf_count_t count, void *user_data) ;
- typedef sf_count_t (*sf_vio_tell) (void *user_data) ;
- struct SF_VIRTUAL_IO
- { sf_vio_get_filelen get_filelen ;
- sf_vio_seek seek ;
- sf_vio_read read ;
- sf_vio_write write ;
- sf_vio_tell tell ;
- } ;
- typedef struct SF_VIRTUAL_IO SF_VIRTUAL_IO ;
- # 484 "/usr/local/include/sndfile.h" 3
- SNDFILE* sf_open (const char *path, int mode, SF_INFO *sfinfo) ;
- # 499 "/usr/local/include/sndfile.h" 3
- SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
- SNDFILE* sf_open_virtual (SF_VIRTUAL_IO *sfvirtual, int mode, SF_INFO *sfinfo, void *user_data) ;
- int sf_error (SNDFILE *sndfile) ;
- const char* sf_strerror (SNDFILE *sndfile) ;
- const char* sf_error_number (int errnum) ;
- int sf_perror (SNDFILE *sndfile) ;
- int sf_error_str (SNDFILE *sndfile, char* str, size_t len) ;
- int sf_command (SNDFILE *sndfile, int command, void *data, int datasize) ;
- int sf_format_check (const SF_INFO *info) ;
- # 557 "/usr/local/include/sndfile.h" 3
- sf_count_t sf_seek (SNDFILE *sndfile, sf_count_t frames, int whence) ;
- # 568 "/usr/local/include/sndfile.h" 3
- int sf_set_string (SNDFILE *sndfile, int str_type, const char* str) ;
- const char* sf_get_string (SNDFILE *sndfile, int str_type) ;
- const char * sf_version_string (void) ;
- sf_count_t sf_read_raw (SNDFILE *sndfile, void *ptr, sf_count_t bytes) ;
- sf_count_t sf_write_raw (SNDFILE *sndfile, const void *ptr, sf_count_t bytes) ;
- # 595 "/usr/local/include/sndfile.h" 3
- sf_count_t sf_readf_short (SNDFILE *sndfile, short *ptr, sf_count_t frames) ;
- sf_count_t sf_writef_short (SNDFILE *sndfile, const short *ptr, sf_count_t frames) ;
- sf_count_t sf_readf_int (SNDFILE *sndfile, int *ptr, sf_count_t frames) ;
- sf_count_t sf_writef_int (SNDFILE *sndfile, const int *ptr, sf_count_t frames) ;
- sf_count_t sf_readf_float (SNDFILE *sndfile, float *ptr, sf_count_t frames) ;
- sf_count_t sf_writef_float (SNDFILE *sndfile, const float *ptr, sf_count_t frames) ;
- sf_count_t sf_readf_double (SNDFILE *sndfile, double *ptr, sf_count_t frames) ;
- sf_count_t sf_writef_double (SNDFILE *sndfile, const double *ptr, sf_count_t frames) ;
- sf_count_t sf_read_short (SNDFILE *sndfile, short *ptr, sf_count_t items) ;
- sf_count_t sf_write_short (SNDFILE *sndfile, const short *ptr, sf_count_t items) ;
- sf_count_t sf_read_int (SNDFILE *sndfile, int *ptr, sf_count_t items) ;
- sf_count_t sf_write_int (SNDFILE *sndfile, const int *ptr, sf_count_t items) ;
- sf_count_t sf_read_float (SNDFILE *sndfile, float *ptr, sf_count_t items) ;
- sf_count_t sf_write_float (SNDFILE *sndfile, const float *ptr, sf_count_t items) ;
- sf_count_t sf_read_double (SNDFILE *sndfile, double *ptr, sf_count_t items) ;
- sf_count_t sf_write_double (SNDFILE *sndfile, const double *ptr, sf_count_t items) ;
- int sf_close (SNDFILE *sndfile) ;
- void sf_write_sync (SNDFILE *sndfile) ;
- # 661 "/usr/local/include/sndfile.h" 3
- }
- # 11 "grover.h" 2
- # 1 "/usr/include/math.h" 1 3 4
- # 30 "/usr/include/math.h" 3 4
- extern "C" {
- # 1 "/usr/include/bits/huge_val.h" 1 3 4
- # 35 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/bits/huge_valf.h" 1 3 4
- # 37 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/bits/huge_vall.h" 1 3 4
- # 38 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/bits/inf.h" 1 3 4
- # 41 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/bits/nan.h" 1 3 4
- # 44 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/bits/mathdef.h" 1 3 4
- # 26 "/usr/include/bits/mathdef.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 27 "/usr/include/bits/mathdef.h" 2 3 4
- # 38 "/usr/include/bits/mathdef.h" 3 4
- typedef long double float_t;
- typedef long double double_t;
- # 48 "/usr/include/math.h" 2 3 4
- # 71 "/usr/include/math.h" 3 4
- # 1 "/usr/include/bits/mathcalls.h" 1 3 4
- # 53 "/usr/include/bits/mathcalls.h" 3 4
- extern double acos (double __x) throw (); extern double __acos (double __x) throw ();
- extern double asin (double __x) throw (); extern double __asin (double __x) throw ();
- extern double atan (double __x) throw (); extern double __atan (double __x) throw ();
- extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw ();
- extern double cos (double __x) throw (); extern double __cos (double __x) throw ();
- extern double sin (double __x) throw (); extern double __sin (double __x) throw ();
- extern double tan (double __x) throw (); extern double __tan (double __x) throw ();
- extern double cosh (double __x) throw (); extern double __cosh (double __x) throw ();
- extern double sinh (double __x) throw (); extern double __sinh (double __x) throw ();
- extern double tanh (double __x) throw (); extern double __tanh (double __x) throw ();
- extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw ();
- extern double acosh (double __x) throw (); extern double __acosh (double __x) throw ();
- extern double asinh (double __x) throw (); extern double __asinh (double __x) throw ();
- extern double atanh (double __x) throw (); extern double __atanh (double __x) throw ();
- extern double exp (double __x) throw (); extern double __exp (double __x) throw ();
- extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw ();
- extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw ();
- extern double log (double __x) throw (); extern double __log (double __x) throw ();
- extern double log10 (double __x) throw (); extern double __log10 (double __x) throw ();
- extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw ();
- extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw ();
- extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw ();
- extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw ();
- extern double log1p (double __x) throw (); extern double __log1p (double __x) throw ();
- extern double logb (double __x) throw (); extern double __logb (double __x) throw ();
- extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw ();
- extern double log2 (double __x) throw (); extern double __log2 (double __x) throw ();
- extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw ();
- extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw ();
- extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw ();
- extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw ();
- extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__));
- extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__));
- extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__));
- extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw ();
- extern int __isinf (double __value) throw () __attribute__ ((__const__));
- extern int __finite (double __value) throw () __attribute__ ((__const__));
- extern int isinf (double __value) throw () __attribute__ ((__const__));
- extern int finite (double __value) throw () __attribute__ ((__const__));
- extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw ();
- extern double significand (double __x) throw (); extern double __significand (double __x) throw ();
- extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__));
- extern double nan (__const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (__const char *__tagb) throw () __attribute__ ((__const__));
- extern int __isnan (double __value) throw () __attribute__ ((__const__));
- extern int isnan (double __value) throw () __attribute__ ((__const__));
- extern double j0 (double) throw (); extern double __j0 (double) throw ();
- extern double j1 (double) throw (); extern double __j1 (double) throw ();
- extern double jn (int, double) throw (); extern double __jn (int, double) throw ();
- extern double y0 (double) throw (); extern double __y0 (double) throw ();
- extern double y1 (double) throw (); extern double __y1 (double) throw ();
- extern double yn (int, double) throw (); extern double __yn (int, double) throw ();
- extern double erf (double) throw (); extern double __erf (double) throw ();
- extern double erfc (double) throw (); extern double __erfc (double) throw ();
- extern double lgamma (double) throw (); extern double __lgamma (double) throw ();
- extern double tgamma (double) throw (); extern double __tgamma (double) throw ();
- extern double gamma (double) throw (); extern double __gamma (double) throw ();
- extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw ();
- extern double rint (double __x) throw (); extern double __rint (double __x) throw ();
- extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__));
- extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__));
- extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw ();
- extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw ();
- extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw ();
- extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw ();
- extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw ();
- extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__));
- extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__));
- extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw ();
- extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw ();
- extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw ();
- extern long int lround (double __x) throw (); extern long int __lround (double __x) throw ();
- extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw ();
- extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw ();
- extern double fmax (double __x, double __y) throw (); extern double __fmax (double __x, double __y) throw ();
- extern double fmin (double __x, double __y) throw (); extern double __fmin (double __x, double __y) throw ();
- extern int __fpclassify (double __value) throw ()
- __attribute__ ((__const__));
- extern int __signbit (double __value) throw ()
- __attribute__ ((__const__));
- extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw ();
- extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw ();
- # 72 "/usr/include/math.h" 2 3 4
- # 94 "/usr/include/math.h" 3 4
- # 1 "/usr/include/bits/mathcalls.h" 1 3 4
- # 53 "/usr/include/bits/mathcalls.h" 3 4
- extern float acosf (float __x) throw (); extern float __acosf (float __x) throw ();
- extern float asinf (float __x) throw (); extern float __asinf (float __x) throw ();
- extern float atanf (float __x) throw (); extern float __atanf (float __x) throw ();
- extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw ();
- extern float cosf (float __x) throw (); extern float __cosf (float __x) throw ();
- extern float sinf (float __x) throw (); extern float __sinf (float __x) throw ();
- extern float tanf (float __x) throw (); extern float __tanf (float __x) throw ();
- extern float coshf (float __x) throw (); extern float __coshf (float __x) throw ();
- extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw ();
- extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw ();
- extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw ();
- extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw ();
- extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw ();
- extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw ();
- extern float expf (float __x) throw (); extern float __expf (float __x) throw ();
- extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw ();
- extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw ();
- extern float logf (float __x) throw (); extern float __logf (float __x) throw ();
- extern float log10f (float __x) throw (); extern float __log10f (float __x) throw ();
- extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw ();
- extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw ();
- extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw ();
- extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw ();
- extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw ();
- extern float logbf (float __x) throw (); extern float __logbf (float __x) throw ();
- extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw ();
- extern float log2f (float __x) throw (); extern float __log2f (float __x) throw ();
- extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw ();
- extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw ();
- extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw ();
- extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw ();
- extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__));
- extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__));
- extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__));
- extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw ();
- extern int __isinff (float __value) throw () __attribute__ ((__const__));
- extern int __finitef (float __value) throw () __attribute__ ((__const__));
- extern int isinff (float __value) throw () __attribute__ ((__const__));
- extern int finitef (float __value) throw () __attribute__ ((__const__));
- extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw ();
- extern float significandf (float __x) throw (); extern float __significandf (float __x) throw ();
- extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__));
- extern float nanf (__const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) throw () __attribute__ ((__const__));
- extern int __isnanf (float __value) throw () __attribute__ ((__const__));
- extern int isnanf (float __value) throw () __attribute__ ((__const__));
- extern float j0f (float) throw (); extern float __j0f (float) throw ();
- extern float j1f (float) throw (); extern float __j1f (float) throw ();
- extern float jnf (int, float) throw (); extern float __jnf (int, float) throw ();
- extern float y0f (float) throw (); extern float __y0f (float) throw ();
- extern float y1f (float) throw (); extern float __y1f (float) throw ();
- extern float ynf (int, float) throw (); extern float __ynf (int, float) throw ();
- extern float erff (float) throw (); extern float __erff (float) throw ();
- extern float erfcf (float) throw (); extern float __erfcf (float) throw ();
- extern float lgammaf (float) throw (); extern float __lgammaf (float) throw ();
- extern float tgammaf (float) throw (); extern float __tgammaf (float) throw ();
- extern float gammaf (float) throw (); extern float __gammaf (float) throw ();
- extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw ();
- extern float rintf (float __x) throw (); extern float __rintf (float __x) throw ();
- extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__));
- extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__));
- extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw ();
- extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw ();
- extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw ();
- extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw ();
- extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw ();
- extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__));
- extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__));
- extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw ();
- extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw ();
- extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw ();
- extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw ();
- extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw ();
- extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw ();
- extern float fmaxf (float __x, float __y) throw (); extern float __fmaxf (float __x, float __y) throw ();
- extern float fminf (float __x, float __y) throw (); extern float __fminf (float __x, float __y) throw ();
- extern int __fpclassifyf (float __value) throw ()
- __attribute__ ((__const__));
- extern int __signbitf (float __value) throw ()
- __attribute__ ((__const__));
- extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw ();
- extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw ();
- # 95 "/usr/include/math.h" 2 3 4
- # 145 "/usr/include/math.h" 3 4
- # 1 "/usr/include/bits/mathcalls.h" 1 3 4
- # 53 "/usr/include/bits/mathcalls.h" 3 4
- extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw ();
- extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw ();
- extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw ();
- extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw ();
- extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw ();
- extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw ();
- extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw ();
- extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw ();
- extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw ();
- extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw ();
- extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw ();
- extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw ();
- extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw ();
- extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw ();
- extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw ();
- extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw ();
- extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw ();
- extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw ();
- extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw ();
- extern long double modfl (long double __x, long double *__iptr) throw (); extern long double __modfl (long double __x, long double *__iptr) throw ();
- extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw ();
- extern long double pow10l (long double __x) throw (); extern long double __pow10l (long double __x) throw ();
- extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw ();
- extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw ();
- extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw ();
- extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw ();
- extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw ();
- extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw ();
- extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw ();
- extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw ();
- extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw ();
- extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__));
- extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__));
- extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__));
- extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw ();
- extern int __isinfl (long double __value) throw () __attribute__ ((__const__));
- extern int __finitel (long double __value) throw () __attribute__ ((__const__));
- extern int isinfl (long double __value) throw () __attribute__ ((__const__));
- extern int finitel (long double __value) throw () __attribute__ ((__const__));
- extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw ();
- extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw ();
- extern long double copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __attribute__ ((__const__));
- extern long double nanl (__const char *__tagb) throw () __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) throw () __attribute__ ((__const__));
- extern int __isnanl (long double __value) throw () __attribute__ ((__const__));
- extern int isnanl (long double __value) throw () __attribute__ ((__const__));
- extern long double j0l (long double) throw (); extern long double __j0l (long double) throw ();
- extern long double j1l (long double) throw (); extern long double __j1l (long double) throw ();
- extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw ();
- extern long double y0l (long double) throw (); extern long double __y0l (long double) throw ();
- extern long double y1l (long double) throw (); extern long double __y1l (long double) throw ();
- extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw ();
- extern long double erfl (long double) throw (); extern long double __erfl (long double) throw ();
- extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw ();
- extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw ();
- extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw ();
- extern long double gammal (long double) throw (); extern long double __gammal (long double) throw ();
- extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw ();
- extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw ();
- extern long double nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__));
- extern long double nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__));
- extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw ();
- extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw ();
- extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw ();
- extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw ();
- extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw ();
- extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__));
- extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__));
- extern long double remquol (long double __x, long double __y, int *__quo) throw (); extern long double __remquol (long double __x, long double __y, int *__quo) throw ();
- extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw ();
- extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw ();
- extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw ();
- extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw ();
- extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw ();
- extern long double fmaxl (long double __x, long double __y) throw (); extern long double __fmaxl (long double __x, long double __y) throw ();
- extern long double fminl (long double __x, long double __y) throw (); extern long double __fminl (long double __x, long double __y) throw ();
- extern int __fpclassifyl (long double __value) throw ()
- __attribute__ ((__const__));
- extern int __signbitl (long double __value) throw ()
- __attribute__ ((__const__));
- extern long double fmal (long double __x, long double __y, long double __z) throw (); extern long double __fmal (long double __x, long double __y, long double __z) throw ();
- extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw ();
- # 146 "/usr/include/math.h" 2 3 4
- # 161 "/usr/include/math.h" 3 4
- extern int signgam;
- # 202 "/usr/include/math.h" 3 4
- enum
- {
- FP_NAN,
- FP_INFINITE,
- FP_ZERO,
- FP_SUBNORMAL,
- FP_NORMAL
- };
- # 295 "/usr/include/math.h" 3 4
- typedef enum
- {
- _IEEE_ = -1,
- _SVID_,
- _XOPEN_,
- _POSIX_,
- _ISOC_
- } _LIB_VERSION_TYPE;
- extern _LIB_VERSION_TYPE _LIB_VERSION;
- # 318 "/usr/include/math.h" 3 4
- struct __exception
- {
- int type;
- char *name;
- double arg1;
- double arg2;
- double retval;
- };
- extern int matherr (struct __exception *__exc) throw ();
- # 476 "/usr/include/math.h" 3 4
- }
- # 12 "grover.h" 2
- # 1 "/usr/local/include/aubio/aubio.h" 1 3
- # 151 "/usr/local/include/aubio/aubio.h" 3
- extern "C"
- {
- # 1 "/usr/local/include/aubio/types.h" 1 3
- # 31 "/usr/local/include/aubio/types.h" 3
- extern "C" {
- # 41 "/usr/local/include/aubio/types.h" 3
- typedef float smpl_t;
- # 51 "/usr/local/include/aubio/types.h" 3
- typedef double lsmp_t;
- # 60 "/usr/local/include/aubio/types.h" 3
- typedef unsigned int uint_t;
- typedef int sint_t;
- typedef char char_t;
- }
- # 157 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/fvec.h" 1 3
- # 25 "/usr/local/include/aubio/fvec.h" 3
- extern "C" {
- # 38 "/usr/local/include/aubio/fvec.h" 3
- typedef struct {
- uint_t length;
- smpl_t *data;
- } fvec_t;
- fvec_t * new_fvec(uint_t length);
- void del_fvec(fvec_t *s);
- # 65 "/usr/local/include/aubio/fvec.h" 3
- smpl_t fvec_read_sample(fvec_t *s, uint_t position);
- # 77 "/usr/local/include/aubio/fvec.h" 3
- void fvec_write_sample(fvec_t *s, smpl_t data, uint_t position);
- # 88 "/usr/local/include/aubio/fvec.h" 3
- smpl_t * fvec_get_data(fvec_t *s);
- void fvec_print(fvec_t *s);
- void fvec_set(fvec_t *s, smpl_t val);
- void fvec_zeros(fvec_t *s);
- void fvec_ones(fvec_t *s);
- void fvec_rev(fvec_t *s);
- # 135 "/usr/local/include/aubio/fvec.h" 3
- void fvec_weight(fvec_t *s, fvec_t *weight);
- void fvec_copy(fvec_t *s, fvec_t *t);
- }
- # 158 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/cvec.h" 1 3
- # 25 "/usr/local/include/aubio/cvec.h" 3
- extern "C" {
- # 39 "/usr/local/include/aubio/cvec.h" 3
- typedef struct {
- uint_t length;
- smpl_t *norm;
- smpl_t *phas;
- } cvec_t;
- # 56 "/usr/local/include/aubio/cvec.h" 3
- cvec_t * new_cvec(uint_t length);
- void del_cvec(cvec_t *s);
- # 74 "/usr/local/include/aubio/cvec.h" 3
- void cvec_write_norm(cvec_t *s, smpl_t data, uint_t position);
- # 86 "/usr/local/include/aubio/cvec.h" 3
- void cvec_write_phas(cvec_t *s, smpl_t data, uint_t position);
- # 97 "/usr/local/include/aubio/cvec.h" 3
- smpl_t cvec_read_norm(cvec_t *s, uint_t position);
- # 108 "/usr/local/include/aubio/cvec.h" 3
- smpl_t cvec_read_phas(cvec_t *s, uint_t position);
- # 118 "/usr/local/include/aubio/cvec.h" 3
- smpl_t * cvec_get_norm(cvec_t *s);
- # 128 "/usr/local/include/aubio/cvec.h" 3
- smpl_t * cvec_get_phas(cvec_t *s);
- void cvec_print(cvec_t *s);
- void cvec_set(cvec_t *s, smpl_t val);
- void cvec_zeros(cvec_t *s);
- void cvec_ones(cvec_t *s);
- }
- # 159 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/lvec.h" 1 3
- # 25 "/usr/local/include/aubio/lvec.h" 3
- extern "C" {
- # 39 "/usr/local/include/aubio/lvec.h" 3
- typedef struct {
- uint_t length;
- lsmp_t *data;
- } lvec_t;
- lvec_t * new_lvec(uint_t length);
- void del_lvec(lvec_t *s);
- # 66 "/usr/local/include/aubio/lvec.h" 3
- lsmp_t lvec_read_sample(lvec_t *s, uint_t position);
- # 78 "/usr/local/include/aubio/lvec.h" 3
- void lvec_write_sample(lvec_t *s, lsmp_t data, uint_t position);
- # 89 "/usr/local/include/aubio/lvec.h" 3
- lsmp_t * lvec_get_data(lvec_t *s);
- void lvec_print(lvec_t *s);
- void lvec_set(lvec_t *s, smpl_t val);
- void lvec_zeros(lvec_t *s);
- void lvec_ones(lvec_t *s);
- }
- # 160 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/fmat.h" 1 3
- # 25 "/usr/local/include/aubio/fmat.h" 3
- extern "C" {
- # 38 "/usr/local/include/aubio/fmat.h" 3
- typedef struct {
- uint_t length;
- uint_t height;
- smpl_t **data;
- } fmat_t;
- fmat_t * new_fmat(uint_t length, uint_t channels);
- void del_fmat(fmat_t *s);
- # 68 "/usr/local/include/aubio/fmat.h" 3
- smpl_t fmat_read_sample(fmat_t *s, uint_t channel, uint_t position);
- # 81 "/usr/local/include/aubio/fmat.h" 3
- void fmat_write_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position);
- # 92 "/usr/local/include/aubio/fmat.h" 3
- smpl_t * fmat_get_channel(fmat_t *s, uint_t channel);
- # 104 "/usr/local/include/aubio/fmat.h" 3
- void fmat_put_channel(fmat_t *s, smpl_t * data, uint_t channel);
- # 114 "/usr/local/include/aubio/fmat.h" 3
- smpl_t ** fmat_get_data(fmat_t *s);
- void fmat_print(fmat_t *s);
- void fmat_set(fmat_t *s, smpl_t val);
- void fmat_zeros(fmat_t *s);
- void fmat_ones(fmat_t *s);
- void fmat_rev(fmat_t *s);
- # 161 "/usr/local/include/aubio/fmat.h" 3
- void fmat_weight(fmat_t *s, fmat_t *weight);
- void fmat_copy(fmat_t *s, fmat_t *t);
- }
- # 161 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/musicutils.h" 1 3
- # 29 "/usr/local/include/aubio/musicutils.h" 3
- extern "C" {
- # 46 "/usr/local/include/aubio/musicutils.h" 3
- fvec_t *new_aubio_window (char_t * window_type, uint_t size);
- # 58 "/usr/local/include/aubio/musicutils.h" 3
- smpl_t aubio_unwrap2pi (smpl_t phase);
- smpl_t aubio_bintomidi (smpl_t bin, smpl_t samplerate, smpl_t fftsize);
- smpl_t aubio_miditobin (smpl_t midi, smpl_t samplerate, smpl_t fftsize);
- smpl_t aubio_bintofreq (smpl_t bin, smpl_t samplerate, smpl_t fftsize);
- smpl_t aubio_freqtobin (smpl_t freq, smpl_t samplerate, smpl_t fftsize);
- smpl_t aubio_freqtomidi (smpl_t freq);
- smpl_t aubio_miditofreq (smpl_t midi);
- void aubio_cleanup (void);
- # 96 "/usr/local/include/aubio/musicutils.h" 3
- smpl_t aubio_zero_crossing_rate (fvec_t * v);
- # 107 "/usr/local/include/aubio/musicutils.h" 3
- smpl_t aubio_db_spl (fvec_t * v);
- # 117 "/usr/local/include/aubio/musicutils.h" 3
- uint_t aubio_silence_detection (fvec_t * v, smpl_t threshold);
- # 127 "/usr/local/include/aubio/musicutils.h" 3
- smpl_t aubio_level_detection (fvec_t * v, smpl_t threshold);
- }
- # 162 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/temporal/resampler.h" 1 3
- # 34 "/usr/local/include/aubio/temporal/resampler.h" 3
- extern "C" {
- typedef struct _aubio_resampler_t aubio_resampler_t;
- aubio_resampler_t *new_aubio_resampler (smpl_t ratio, uint_t type);
- void del_aubio_resampler (aubio_resampler_t * s);
- # 58 "/usr/local/include/aubio/temporal/resampler.h" 3
- void aubio_resampler_do (aubio_resampler_t * s, fvec_t * input,
- fvec_t * output);
- }
- # 163 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/temporal/filter.h" 1 3
- # 64 "/usr/local/include/aubio/temporal/filter.h" 3
- extern "C" {
- typedef struct _aubio_filter_t aubio_filter_t;
- void aubio_filter_do (aubio_filter_t * f, fvec_t * in);
- # 87 "/usr/local/include/aubio/temporal/filter.h" 3
- void aubio_filter_do_outplace (aubio_filter_t * f, fvec_t * in, fvec_t * out);
- # 96 "/usr/local/include/aubio/temporal/filter.h" 3
- void aubio_filter_do_filtfilt (aubio_filter_t * f, fvec_t * in, fvec_t * tmp);
- # 105 "/usr/local/include/aubio/temporal/filter.h" 3
- lvec_t *aubio_filter_get_feedback (aubio_filter_t * f);
- # 114 "/usr/local/include/aubio/temporal/filter.h" 3
- lvec_t *aubio_filter_get_feedforward (aubio_filter_t * f);
- # 123 "/usr/local/include/aubio/temporal/filter.h" 3
- uint_t aubio_filter_get_order (aubio_filter_t * f);
- # 132 "/usr/local/include/aubio/temporal/filter.h" 3
- uint_t aubio_filter_get_samplerate (aubio_filter_t * f);
- # 142 "/usr/local/include/aubio/temporal/filter.h" 3
- uint_t aubio_filter_set_samplerate (aubio_filter_t * f, uint_t samplerate);
- void aubio_filter_do_reset (aubio_filter_t * f);
- # 161 "/usr/local/include/aubio/temporal/filter.h" 3
- aubio_filter_t *new_aubio_filter (uint_t order);
- void del_aubio_filter (aubio_filter_t * f);
- }
- # 164 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/temporal/biquad.h" 1 3
- # 41 "/usr/local/include/aubio/temporal/biquad.h" 3
- extern "C" {
- # 54 "/usr/local/include/aubio/temporal/biquad.h" 3
- uint_t aubio_filter_set_biquad (aubio_filter_t * f, lsmp_t b0, lsmp_t b1,
- lsmp_t b2, lsmp_t a1, lsmp_t a2);
- # 66 "/usr/local/include/aubio/temporal/biquad.h" 3
- aubio_filter_t *new_aubio_filter_biquad (lsmp_t b0, lsmp_t b1, lsmp_t b2,
- lsmp_t a1, lsmp_t a2);
- }
- # 165 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/temporal/a_weighting.h" 1 3
- # 58 "/usr/local/include/aubio/temporal/a_weighting.h" 3
- extern "C" {
- # 70 "/usr/local/include/aubio/temporal/a_weighting.h" 3
- aubio_filter_t *new_aubio_filter_a_weighting (uint_t samplerate);
- # 80 "/usr/local/include/aubio/temporal/a_weighting.h" 3
- uint_t aubio_filter_set_a_weighting (aubio_filter_t * f, uint_t samplerate);
- }
- # 166 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/temporal/c_weighting.h" 1 3
- # 58 "/usr/local/include/aubio/temporal/c_weighting.h" 3
- extern "C" {
- # 70 "/usr/local/include/aubio/temporal/c_weighting.h" 3
- aubio_filter_t *new_aubio_filter_c_weighting (uint_t samplerate);
- # 80 "/usr/local/include/aubio/temporal/c_weighting.h" 3
- uint_t aubio_filter_set_c_weighting (aubio_filter_t * f, uint_t samplerate);
- }
- # 167 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/spectral/fft.h" 1 3
- # 31 "/usr/local/include/aubio/spectral/fft.h" 3
- extern "C" {
- # 42 "/usr/local/include/aubio/spectral/fft.h" 3
- typedef struct _aubio_fft_t aubio_fft_t;
- aubio_fft_t * new_aubio_fft (uint_t size);
- void del_aubio_fft(aubio_fft_t * s);
- # 64 "/usr/local/include/aubio/spectral/fft.h" 3
- void aubio_fft_do (aubio_fft_t *s, fvec_t * input, cvec_t * spectrum);
- void aubio_fft_rdo (aubio_fft_t *s, cvec_t * spectrum, fvec_t * output);
- # 81 "/usr/local/include/aubio/spectral/fft.h" 3
- void aubio_fft_do_complex (aubio_fft_t *s, fvec_t * input, fvec_t * compspec);
- void aubio_fft_rdo_complex (aubio_fft_t *s, fvec_t * compspec, fvec_t * output);
- void aubio_fft_get_spectrum(fvec_t * compspec, cvec_t * spectrum);
- void aubio_fft_get_realimag(cvec_t * spectrum, fvec_t * compspec);
- void aubio_fft_get_phas(fvec_t * compspec, cvec_t * spectrum);
- void aubio_fft_get_imag(cvec_t * spectrum, fvec_t * compspec);
- void aubio_fft_get_norm(fvec_t * compspec, cvec_t * spectrum);
- void aubio_fft_get_real(cvec_t * spectrum, fvec_t * compspec);
- }
- # 168 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/spectral/phasevoc.h" 1 3
- # 36 "/usr/local/include/aubio/spectral/phasevoc.h" 3
- extern "C" {
- typedef struct _aubio_pvoc_t aubio_pvoc_t;
- aubio_pvoc_t * new_aubio_pvoc (uint_t win_s, uint_t hop_s);
- void del_aubio_pvoc(aubio_pvoc_t *pv);
- # 68 "/usr/local/include/aubio/spectral/phasevoc.h" 3
- void aubio_pvoc_do(aubio_pvoc_t *pv, fvec_t *in, cvec_t * fftgrain);
- # 81 "/usr/local/include/aubio/spectral/phasevoc.h" 3
- void aubio_pvoc_rdo(aubio_pvoc_t *pv, cvec_t * fftgrain, fvec_t *out);
- uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv);
- uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv);
- }
- # 169 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/spectral/filterbank.h" 1 3
- # 34 "/usr/local/include/aubio/spectral/filterbank.h" 3
- extern "C"
- {
- typedef struct _aubio_filterbank_t aubio_filterbank_t;
- aubio_filterbank_t *new_aubio_filterbank (uint_t n_filters, uint_t win_s);
- void del_aubio_filterbank (aubio_filterbank_t * fb);
- # 63 "/usr/local/include/aubio/spectral/filterbank.h" 3
- void aubio_filterbank_do (aubio_filterbank_t * fb, cvec_t * in, fvec_t * out);
- fmat_t *aubio_filterbank_get_coeffs (aubio_filterbank_t * f);
- uint_t aubio_filterbank_set_coeffs (aubio_filterbank_t * f, fmat_t * filters);
- }
- # 170 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/spectral/filterbank_mel.h" 1 3
- # 38 "/usr/local/include/aubio/spectral/filterbank_mel.h" 3
- extern "C"
- {
- # 52 "/usr/local/include/aubio/spectral/filterbank_mel.h" 3
- uint_t aubio_filterbank_set_triangle_bands (aubio_filterbank_t * fb,
- fvec_t * freqs, smpl_t samplerate);
- # 63 "/usr/local/include/aubio/spectral/filterbank_mel.h" 3
- uint_t aubio_filterbank_set_mel_coeffs_slaney (aubio_filterbank_t * fb,
- smpl_t samplerate);
- }
- # 171 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/spectral/mfcc.h" 1 3
- # 32 "/usr/local/include/aubio/spectral/mfcc.h" 3
- extern "C"
- {
- typedef struct _aubio_mfcc_t aubio_mfcc_t;
- # 47 "/usr/local/include/aubio/spectral/mfcc.h" 3
- aubio_mfcc_t *new_aubio_mfcc (uint_t buf_size,
- uint_t n_filters, uint_t n_coeffs, uint_t samplerate);
- void del_aubio_mfcc (aubio_mfcc_t * mf);
- # 64 "/usr/local/include/aubio/spectral/mfcc.h" 3
- void aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t * in, fvec_t * out);
- }
- # 172 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/spectral/specdesc.h" 1 3
- # 148 "/usr/local/include/aubio/spectral/specdesc.h" 3
- extern "C" {
- typedef struct _aubio_specdesc_t aubio_specdesc_t;
- # 163 "/usr/local/include/aubio/spectral/specdesc.h" 3
- void aubio_specdesc_do (aubio_specdesc_t * o, cvec_t * fftgrain,
- fvec_t * desc);
- aubio_specdesc_t *new_aubio_specdesc (char_t * method, uint_t buf_size);
- void del_aubio_specdesc (aubio_specdesc_t * o);
- }
- # 173 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/pitch/pitch.h" 1 3
- # 25 "/usr/local/include/aubio/pitch/pitch.h" 3
- extern "C" {
- # 38 "/usr/local/include/aubio/pitch/pitch.h" 3
- typedef struct _aubio_pitch_t aubio_pitch_t;
- # 47 "/usr/local/include/aubio/pitch/pitch.h" 3
- void aubio_pitch_do (aubio_pitch_t * o, fvec_t * in, fvec_t * out);
- uint_t aubio_pitch_set_tolerance (aubio_pitch_t * o, smpl_t tol);
- void del_aubio_pitch (aubio_pitch_t * o);
- # 72 "/usr/local/include/aubio/pitch/pitch.h" 3
- aubio_pitch_t *new_aubio_pitch (char_t * method,
- uint_t buf_size, uint_t hop_size, uint_t samplerate);
- uint_t aubio_pitch_set_unit (aubio_pitch_t * o, char_t * mode);
- }
- # 174 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/onset/onset.h" 1 3
- # 41 "/usr/local/include/aubio/onset/onset.h" 3
- extern "C" {
- typedef struct _aubio_onset_t aubio_onset_t;
- # 55 "/usr/local/include/aubio/onset/onset.h" 3
- aubio_onset_t * new_aubio_onset (char_t * method,
- uint_t buf_size, uint_t hop_size, uint_t samplerate);
- # 65 "/usr/local/include/aubio/onset/onset.h" 3
- void aubio_onset_do (aubio_onset_t *o, fvec_t * input, fvec_t * onset);
- uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
- uint_t aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold);
- # 90 "/usr/local/include/aubio/onset/onset.h" 3
- uint_t aubio_onset_set_minioi(aubio_onset_t * o, uint_t minioi);
- void del_aubio_onset(aubio_onset_t * o);
- }
- # 175 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/onset/peakpicker.h" 1 3
- # 31 "/usr/local/include/aubio/onset/peakpicker.h" 3
- extern "C" {
- typedef struct _aubio_peakpicker_t aubio_peakpicker_t;
- aubio_peakpicker_t * new_aubio_peakpicker(void);
- void aubio_peakpicker_do(aubio_peakpicker_t * p, fvec_t * in, fvec_t * out);
- void del_aubio_peakpicker(aubio_peakpicker_t * p);
- fvec_t *aubio_peakpicker_get_thresholded_input (aubio_peakpicker_t * p);
- uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);
- smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p);
- }
- # 176 "/usr/local/include/aubio/aubio.h" 2 3
- # 1 "/usr/local/include/aubio/tempo/tempo.h" 1 3
- # 34 "/usr/local/include/aubio/tempo/tempo.h" 3
- extern "C" {
- typedef struct _aubio_tempo_t aubio_tempo_t;
- aubio_tempo_t * new_aubio_tempo (char_t * method,
- uint_t buf_size, uint_t hop_size, uint_t samplerate);
- void aubio_tempo_do (aubio_tempo_t *o, fvec_t * input, fvec_t * tempo);
- uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
- uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold);
- # 60 "/usr/local/include/aubio/tempo/tempo.h" 3
- smpl_t aubio_tempo_get_bpm(aubio_tempo_t * bt);
- # 70 "/usr/local/include/aubio/tempo/tempo.h" 3
- smpl_t aubio_tempo_get_confidence(aubio_tempo_t * bt);
- void del_aubio_tempo(aubio_tempo_t * o);
- }
- # 177 "/usr/local/include/aubio/aubio.h" 2 3
- # 193 "/usr/local/include/aubio/aubio.h" 3
- }
- # 14 "grover.h" 2
- # 1 "/usr/include/aubio/sndfileio.h" 1 3 4
- # 27 "/usr/include/aubio/sndfileio.h" 3 4
- extern "C" {
- typedef struct _aubio_sndfile_t aubio_sndfile_t;
- aubio_sndfile_t * new_aubio_sndfile_ro (const char * inputfile);
- aubio_sndfile_t * new_aubio_sndfile_wo(aubio_sndfile_t * existingfile, const char * outputname);
- int aubio_sndfile_open_wo (aubio_sndfile_t * file, const char * outputname);
- int aubio_sndfile_read(aubio_sndfile_t * file, int frames, fvec_t * read);
- int aubio_sndfile_write(aubio_sndfile_t * file, int frames, fvec_t * write);
- int del_aubio_sndfile(aubio_sndfile_t * file);
- void aubio_sndfile_info(aubio_sndfile_t * file);
- uint_t aubio_sndfile_channels(aubio_sndfile_t * file);
- uint_t aubio_sndfile_samplerate(aubio_sndfile_t * file);
- }
- # 15 "grover.h" 2
- # 1 "/usr/include/aubio/beattracking.h" 1 3 4
- # 40 "/usr/include/aubio/beattracking.h" 3 4
- extern "C" {
- typedef struct _aubio_beattracking_t aubio_beattracking_t;
- aubio_beattracking_t * new_aubio_beattracking(uint_t winlen, uint_t channels);
- # 61 "/usr/include/aubio/beattracking.h" 3 4
- void aubio_beattracking_do(aubio_beattracking_t * bt, fvec_t * dfframes, fvec_t * out);
- void del_aubio_beattracking(aubio_beattracking_t * p);
- }
- # 16 "grover.h" 2
- struct _aubio_sndfile_t {
- SNDFILE *handle;
- int samplerate;
- int channels;
- int format;
- float *tmpdata;
- int size;
- };
- aubio_sndfile_t * new_aubio_sndfile_ro(const char* outputname);
- int aubio_sndfile_read_mono(aubio_sndfile_t * f, int frames, fvec_t * read);
- int aubio_process(smpl_t ** input, smpl_t ** output, int nframes);
- # 5 "grover.c" 2
- fvec_t * tempo_out = __null;
- int overlap_size = 256;
- fvec_t * woodblock = __null;
- fvec_t * obuf = __null;
- fvec_t * ibuf = __null;
- unsigned int pos = 0;
- int usejack = 0;
- aubio_tempo_t * bt = __null;
- smpl_t istactus = 0;
- smpl_t isonset = 0;
- int main(int argc, char **argv) {
- tempo_out = new_fvec(2);
- woodblock = new_fvec(overlap_size);
- obuf = new_fvec(overlap_size);
- ibuf = new_fvec(overlap_size);
- aubio_sndfile_t * media_file = new_aubio_sndfile_ro("everyday.wav");
- printf("%d\n", media_file->samplerate);
- printf("%d\n", media_file->size);
- int samplerate = media_file->samplerate;
- int frames_read = 0;
- printf("reading file.. ");
- while (overlap_size == aubio_sndfile_read_mono(media_file, overlap_size, woodblock)) {
- frames_read += overlap_size;
- }
- printf("done reading file!\n");
- printf("%d", frames_read);
- printf("\n");
- return 0;
- }
- int aubio_sndfile_read_mono (aubio_sndfile_t * f, int frames, fvec_t * read) {
- sf_count_t read_frames;
- int i, j, channels = f->channels;
- int nsamples = frames * channels;
- int aread;
- smpl_t *pread;
- if (nsamples >= f->size) {
- fprintf(stderr, "Maximum aubio_sndfile_read buffer size exceeded.");
- return -1;
- }
- read_frames = sf_read_float (f->handle, f->tmpdata, nsamples);
- aread = (int) floor (read_frames / (float) channels);
- pread = (smpl_t *) fvec_get_data (read);
- for (i = 0; i < channels; i++) {
- for (j = 0; j < aread; j++) {
- pread[j] += (smpl_t) f->tmpdata[channels * j + i];
- }
- }
- for (j = 0; j < aread; j++) {
- pread[j] /= (smpl_t)channels;
- }
- return aread;
- }
- aubio_sndfile_t * new_aubio_sndfile_ro(const char* outputname) {
- aubio_sndfile_t * f = (aubio_sndfile_t*)malloc(sizeof(aubio_sndfile_t));
- SF_INFO sfinfo;
- memset(&sfinfo,0,sizeof (sfinfo));
- f->handle = sf_open (outputname, SFM_READ, &sfinfo);
- if (f->handle == __null) {
- fprintf(stderr, "Failed opening %s: %s\n", outputname, sf_strerror (__null));
- return __null;
- }
- if (sfinfo.channels > 6) {
- fprintf(stderr, "Not able to process more than %d channels\n", 6);
- return __null;
- }
- f->size = 4096*sfinfo.channels;
- f->tmpdata = (float*)malloc((f->size)*sizeof(float));
- f->samplerate = sfinfo.samplerate;
- f->channels = sfinfo.channels;
- f->format = sfinfo.format;
- return f;
- }
- int aubio_process(smpl_t **input, smpl_t **output, int nframes) {
- unsigned int j;
- for (j=0;j<(unsigned)nframes;j++) {
- if(usejack) {
- fvec_write_sample(ibuf, input[0][j], pos);
- output[0][j] = fvec_read_sample(obuf, pos);
- }
- if (pos == overlap_size-1) {
- aubio_tempo_do (bt,ibuf,tempo_out);
- istactus = fvec_read_sample (tempo_out, 0);
- isonset = fvec_read_sample (tempo_out, 1);
- if (istactus > 0.) {
- } else {
- }
- pos = -1;
- }
- pos++;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement