file
stringlengths
18
26
data
stringlengths
4
1.03M
the_stack_data/211081048.c
//array1.c // arrays example #include <stdio.h> int a1 [] = {16, 2, 77, 40, 13}; int sum = 0; int n; int main () { for (n=0 ; n<5 ; n++ ) { sum += a1[n]; } printf("%d \n", sum); return 0; }
the_stack_data/145452848.c
struct Base { int type; void *internal; }; struct Something { int data; }; int main() { struct Something something = {.data = 13}; struct Base base = {.type = 0, .internal = &something}; printf("%d\n", ((struct Something *)(base.internal))->data); return 0; }
the_stack_data/546887.c
#include <time.h> char *ctime_r(const time_t *t, char *buf) { struct tm tm; localtime_r(t, &tm); return asctime_r(&tm, buf); }
the_stack_data/46696.c
/* * C Program to Input Few Numbers & Perform Merge Sort on them using Recursion */ #include <stdio.h> void mergeSort(int [], int, int, int); void partition(int [],int, int); int main() { int list[50]; int i, size; printf("Enter total number of elements:"); scanf("%d", &size); printf("Enter the elements:\n"); for(i = 0; i < size; i++) { scanf("%d", &list[i]); } partition(list, 0, size - 1); printf("After merge sort:\n"); for(i = 0;i < size; i++) { printf("%d ",list[i]); } return 0; } void partition(int list[],int low,int high) { int mid; if(low < high) { mid = (low + high) / 2; partition(list, low, mid); partition(list, mid + 1, high); mergeSort(list, low, mid, high); } } void mergeSort(int list[],int low,int mid,int high) { int i, mi, k, lo, temp[50]; lo = low; i = low; mi = mid + 1; while ((lo <= mid) && (mi <= high)) { if (list[lo] <= list[mi]) { temp[i] = list[lo]; lo++; } else { temp[i] = list[mi]; mi++; } i++; } if (lo > mid) { for (k = mi; k <= high; k++) { temp[i] = list[k]; i++; } } else { for (k = lo; k <= mid; k++) { temp[i] = list[k]; i++; } } for (k = low; k <= high; k++) { list[k] = temp[k]; } } /* Enter total number of elements:5 Enter the elements: 5 45 15 35 75 After merge sort: 5 15 35 45 75 -------------------------------- Process exited after 17.42 seconds with return value 0 Press any key to continue . . . */
the_stack_data/100140965.c
#include <stdio.h> int main(int argc, char **argv, char **envp) { char **p = envp; do { printf("%s\n", *p); } while (*(++p)); return 0; }
the_stack_data/126703273.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #define ULONG uint32_t #define USHORT uint16_t #define UCHAR uint8_t ULONG isdata[1000000]; /* each bit defines one byte as: code=0, data=1 */ extern void dis_asm(ULONG off, ULONG val, char *stg); int static inline le2int(unsigned char* buf) { int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; return res; } int main(int argc, char **argv) { FILE *in, *out; char *ptr, stg[256]; unsigned char buf[4]; ULONG pos, sz, val, loop; int offset, offset1; USHORT regid; if(argc == 1 || strcmp(argv[1], "--help") == 0) { printf("Usage: arm_disass [input file]\n"); printf(" disassembles input file to 'disasm.txt'\n"); exit(-1); } in = fopen(argv[1], "rb"); if(in == NULL) { printf("Cannot open %s", argv[1]); exit(-1); } out = fopen("disasm.txt", "w"); if(out == NULL) exit(-1); fseek(in, 0, SEEK_END); sz = ftell(in); /* first loop only sets data/code tags */ for(loop=0; loop<2; loop++) { for(pos=0; pos<sz; pos+=4) { /* clear disassembler string start */ memset(stg, 0, 40); /* read next code dword */ fseek(in, pos, SEEK_SET); fread(buf, 1, 4, in); val = le2int(buf); /* check for data tag set: if 1 byte out of 4 is marked => assume data */ if((isdata[pos>>5] & (0xf << (pos & 31))) || (val & 0xffff0000) == 0) { sprintf(stg, "%6x: %08x", pos, val); } else { dis_asm(pos, val, stg); /* check for instant mov operation */ if(memcmp(stg+17, "mov ", 4) == 0 && (ptr=strstr(stg, "0x")) != NULL) { regid = *(USHORT*)(stg+22); sscanf(ptr+2, "%x", &offset); if(ptr[-1] == '-') offset = -offset; } else /* check for add/sub operation */ if((ptr=strstr(stg, "0x")) != NULL && (memcmp(stg+17, "add ", 4) == 0 || memcmp(stg+17, "sub ", 4) == 0)) { if(regid == *(USHORT*)(stg+22) && regid == *(USHORT*)(stg+26)) { sscanf(ptr+2, "%x", &offset1); if(ptr[-1] == '-') offset1 = -offset1; if(memcmp(stg+17, "add ", 4) == 0) offset += offset1; else offset -= offset1; /* add result to disassembler string */ sprintf(stg+strlen(stg), " <- 0x%x", offset); } else regid = 0; } else regid = 0; /* check for const data */ if(memcmp(stg+26, "[pc, ", 5) == 0 && (ptr=strstr(stg, "0x")) != NULL) { sscanf(ptr+2, "%x", &offset); if(ptr[-1] == '-') offset = -offset; /* add data tag */ isdata[(pos+offset+8)>>5] |= 1 << ((pos+offset+8) & 31); /* add const data to disassembler string */ fseek(in, pos+offset+8, SEEK_SET); fread(&buf, 1, 4, in); offset = le2int(buf); sprintf(stg+strlen(stg), " <- 0x%x", offset); } } /* remove trailing spaces */ while(stg[strlen(stg)-1] == 32) stg[strlen(stg)-1] = 0; if(loop == 1) fprintf(out, "%s\n", stg); } } fclose(in); return 0; }
the_stack_data/92324907.c
#include <stdio.h> int g(int n); int main(void) { int n = 100000; printf("%d\n", g(n)); return 0; } int g(int n) { if (n == 0) { return 1; } else { return g(n - 1); } }
the_stack_data/243894166.c
/* * Run a set of tests, reporting results. * * Test suite driver that runs a set of tests implementing a subset of the * Test Anything Protocol (TAP) and reports the results. * * Any bug reports, bug fixes, and improvements are very much welcome and * should be sent to the e-mail address below. This program is part of C TAP * Harness <https://www.eyrie.org/~eagle/software/c-tap-harness/>. * * Copyright 2000-2001, 2004, 2006-2018 Russ Allbery <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * * SPDX-License-Identifier: MIT */ /* * Usage: * * runtests [-hv] [-b <build-dir>] [-s <source-dir>] -l <test-list> * runtests [-hv] [-b <build-dir>] [-s <source-dir>] <test> [<test> ...] * runtests -o [-h] [-b <build-dir>] [-s <source-dir>] <test> * * In the first case, expects a list of executables located in the given file, * one line per executable, possibly followed by a space-separated list of * options. For each one, runs it as part of a test suite, reporting results. * In the second case, use the same infrastructure, but run only the tests * listed on the command line. * * Test output should start with a line containing the number of tests * (numbered from 1 to this number), optionally preceded by "1..", although * that line may be given anywhere in the output. Each additional line should * be in the following format: * * ok <number> * not ok <number> * ok <number> # skip * not ok <number> # todo * * where <number> is the number of the test. An optional comment is permitted * after the number if preceded by whitespace. ok indicates success, not ok * indicates failure. "# skip" and "# todo" are a special cases of a comment, * and must start with exactly that formatting. They indicate the test was * skipped for some reason (maybe because it doesn't apply to this platform) * or is testing something known to currently fail. The text following either * "# skip" or "# todo" and whitespace is the reason. * * As a special case, the first line of the output may be in the form: * * 1..0 # skip some reason * * which indicates that this entire test case should be skipped and gives a * reason. * * Any other lines are ignored, although for compliance with the TAP protocol * all lines other than the ones in the above format should be sent to * standard error rather than standard output and start with #. * * This is a subset of TAP as documented in Test::Harness::TAP or * TAP::Parser::Grammar, which comes with Perl. * * If the -o option is given, instead run a single test and display all of its * output. This is intended for use with failing tests so that the person * running the test suite can get more details about what failed. * * If built with the C preprocessor symbols C_TAP_SOURCE and C_TAP_BUILD * defined, C TAP Harness will export those values in the environment so that * tests can find the source and build directory and will look for tests under * both directories. These paths can also be set with the -b and -s * command-line options, which will override anything set at build time. * * If the -v option is given, or the C_TAP_VERBOSE environment variable is set, * display the full output of each test as it runs rather than showing a * summary of the results of each test. */ /* Required for fdopen(), getopt(), and putenv(). */ #if defined(__STRICT_ANSI__) || defined(PEDANTIC) # ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 500 # endif #endif #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <time.h> #include <unistd.h> /* sys/time.h must be included before sys/resource.h on some platforms. */ #include <sys/resource.h> /* AIX 6.1 (and possibly later) doesn't have WCOREDUMP. */ #ifndef WCOREDUMP # define WCOREDUMP(status) ((unsigned)(status) & 0x80) #endif /* * POSIX requires that these be defined in <unistd.h>, but they're not always * available. If one of them has been defined, all the rest almost certainly * have. */ #ifndef STDIN_FILENO # define STDIN_FILENO 0 # define STDOUT_FILENO 1 # define STDERR_FILENO 2 #endif /* * Used for iterating through arrays. Returns the number of elements in the * array (useful for a < upper bound in a for loop). */ #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) /* * The source and build versions of the tests directory. This is used to set * the C_TAP_SOURCE and C_TAP_BUILD environment variables (and the SOURCE and * BUILD environment variables set for backward compatibility) and find test * programs, if set. Normally, this should be set as part of the build * process to the test subdirectories of $(abs_top_srcdir) and * $(abs_top_builddir) respectively. */ #ifndef C_TAP_SOURCE # define C_TAP_SOURCE NULL #endif #ifndef C_TAP_BUILD # define C_TAP_BUILD NULL #endif /* Test status codes. */ enum test_status { TEST_FAIL, TEST_PASS, TEST_SKIP, TEST_INVALID }; /* Really, just a boolean, but this is more self-documenting. */ enum test_verbose { CONCISE = 0, VERBOSE = 1 }; /* Indicates the state of our plan. */ enum plan_status { PLAN_INIT, /* Nothing seen yet. */ PLAN_FIRST, /* Plan seen before any tests. */ PLAN_PENDING, /* Test seen and no plan yet. */ PLAN_FINAL /* Plan seen after some tests. */ }; /* Error exit statuses for test processes. */ #define CHILDERR_DUP 100 /* Couldn't redirect stderr or stdout. */ #define CHILDERR_EXEC 101 /* Couldn't exec child process. */ #define CHILDERR_STDIN 102 /* Couldn't open stdin file. */ #define CHILDERR_STDERR 103 /* Couldn't open stderr file. */ /* Structure to hold data for a set of tests. */ struct testset { char *file; /* The file name of the test. */ char **command; /* The argv vector to run the command. */ enum plan_status plan; /* The status of our plan. */ unsigned long count; /* Expected count of tests. */ unsigned long current; /* The last seen test number. */ unsigned int length; /* The length of the last status message. */ unsigned long passed; /* Count of passing tests. */ unsigned long failed; /* Count of failing lists. */ unsigned long skipped; /* Count of skipped tests (passed). */ unsigned long allocated; /* The size of the results table. */ enum test_status *results; /* Table of results by test number. */ unsigned int aborted; /* Whether the set was aborted. */ unsigned int reported; /* Whether the results were reported. */ int status; /* The exit status of the test. */ unsigned int all_skipped; /* Whether all tests were skipped. */ char *reason; /* Why all tests were skipped. */ }; /* Structure to hold a linked list of test sets. */ struct testlist { struct testset *ts; struct testlist *next; }; /* * Usage message. Should be used as a printf format with four arguments: the * path to runtests, given three times, and the usage_description. This is * split into variables to satisfy the pedantic ISO C90 limit on strings. */ static const char usage_message[] = "\ Usage: %s [-hv] [-b <build-dir>] [-s <source-dir>] <test> ...\n\ %s [-hv] [-b <build-dir>] [-s <source-dir>] -l <test-list>\n\ %s -o [-h] [-b <build-dir>] [-s <source-dir>] <test>\n\ \n\ Options:\n\ -b <build-dir> Set the build directory to <build-dir>\n\ %s"; static const char usage_extra[] = "\ -l <list> Take the list of tests to run from <test-list>\n\ -o Run a single test rather than a list of tests\n\ -s <source-dir> Set the source directory to <source-dir>\n\ -v Show the full output of each test\n\ \n\ runtests normally runs each test listed on the command line. With the -l\n\ option, it instead runs every test listed in a file. With the -o option,\n\ it instead runs a single test and shows its complete output.\n"; /* * Header used for test output. %s is replaced by the file name of the list * of tests. */ static const char banner[] = "\n\ Running all tests listed in %s. If any tests fail, run the failing\n\ test program with runtests -o to see more details.\n\n"; /* Header for reports of failed tests. */ static const char header[] = "\n\ Failed Set Fail/Total (%) Skip Stat Failing Tests\n\ -------------------------- -------------- ---- ---- ------------------------"; /* Include the file name and line number in malloc failures. */ #define xcalloc(n, size) x_calloc((n), (size), __FILE__, __LINE__) #define xmalloc(size) x_malloc((size), __FILE__, __LINE__) #define xstrdup(p) x_strdup((p), __FILE__, __LINE__) #define xstrndup(p, size) x_strndup((p), (size), __FILE__, __LINE__) #define xreallocarray(p, n, size) \ x_reallocarray((p), (n), (size), __FILE__, __LINE__) /* * __attribute__ is available in gcc 2.5 and later, but only with gcc 2.7 * could you use the __format__ form of the attributes, which is what we use * (to avoid confusion with other macros). */ #ifndef __attribute__ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(spec) /* empty */ # endif #endif /* * We use __alloc_size__, but it was only available in fairly recent versions * of GCC. Suppress warnings about the unknown attribute if GCC is too old. * We know that we're GCC at this point, so we can use the GCC variadic macro * extension, which will still work with versions of GCC too old to have C99 * variadic macro support. */ #if !defined(__attribute__) && !defined(__alloc_size__) # if defined(__GNUC__) && !defined(__clang__) # if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) # define __alloc_size__(spec, args...) /* empty */ # endif # endif #endif /* * LLVM and Clang pretend to be GCC but don't support all of the __attribute__ * settings that GCC does. For them, suppress warnings about unknown * attributes on declarations. This unfortunately will affect the entire * compilation context, but there's no push and pop available. */ #if !defined(__attribute__) && (defined(__llvm__) || defined(__clang__)) # pragma GCC diagnostic ignored "-Wattributes" #endif /* Declare internal functions that benefit from compiler attributes. */ static void die(const char *, ...) __attribute__((__nonnull__, __noreturn__, __format__(printf, 1, 2))); static void sysdie(const char *, ...) __attribute__((__nonnull__, __noreturn__, __format__(printf, 1, 2))); static void *x_calloc(size_t, size_t, const char *, int) __attribute__((__alloc_size__(1, 2), __malloc__, __nonnull__)); static void *x_malloc(size_t, const char *, int) __attribute__((__alloc_size__(1), __malloc__, __nonnull__)); static void *x_reallocarray(void *, size_t, size_t, const char *, int) __attribute__((__alloc_size__(2, 3), __malloc__, __nonnull__(4))); static char *x_strdup(const char *, const char *, int) __attribute__((__malloc__, __nonnull__)); static char *x_strndup(const char *, size_t, const char *, int) __attribute__((__malloc__, __nonnull__)); /* * Report a fatal error and exit. */ static void die(const char *format, ...) { va_list args; fflush(stdout); fprintf(stderr, "runtests: "); va_start(args, format); vfprintf(stderr, format, args); va_end(args); fprintf(stderr, "\n"); exit(1); } /* * Report a fatal error, including the results of strerror, and exit. */ static void sysdie(const char *format, ...) { int oerrno; va_list args; oerrno = errno; fflush(stdout); fprintf(stderr, "runtests: "); va_start(args, format); vfprintf(stderr, format, args); va_end(args); fprintf(stderr, ": %s\n", strerror(oerrno)); exit(1); } /* * Allocate zeroed memory, reporting a fatal error and exiting on failure. */ static void * x_calloc(size_t n, size_t size, const char *file, int line) { void *p; n = (n > 0) ? n : 1; size = (size > 0) ? size : 1; p = calloc(n, size); if (p == NULL) sysdie("failed to calloc %lu bytes at %s line %d", (unsigned long) size, file, line); return p; } /* * Allocate memory, reporting a fatal error and exiting on failure. */ static void * x_malloc(size_t size, const char *file, int line) { void *p; p = malloc(size); if (p == NULL) sysdie("failed to malloc %lu bytes at %s line %d", (unsigned long) size, file, line); return p; } /* * Reallocate memory, reporting a fatal error and exiting on failure. * * We should technically use SIZE_MAX here for the overflow check, but * SIZE_MAX is C99 and we're only assuming C89 + SUSv3, which does not * guarantee that it exists. They do guarantee that UINT_MAX exists, and we * can assume that UINT_MAX <= SIZE_MAX. And we should not be allocating * anything anywhere near that large. * * (In theory, C89 and C99 permit size_t to be smaller than unsigned int, but * I disbelieve in the existence of such systems and they will have to cope * without overflow checks.) */ static void * x_reallocarray(void *p, size_t n, size_t size, const char *file, int line) { if (n > 0 && UINT_MAX / n <= size) sysdie("realloc too large at %s line %d", file, line); p = realloc(p, n * size); if (p == NULL) sysdie("failed to realloc %lu bytes at %s line %d", (unsigned long) (n * size), file, line); return p; } /* * Copy a string, reporting a fatal error and exiting on failure. */ static char * x_strdup(const char *s, const char *file, int line) { char *p; size_t len; len = strlen(s) + 1; p = malloc(len); if (p == NULL) sysdie("failed to strdup %lu bytes at %s line %d", (unsigned long) len, file, line); memcpy(p, s, len); return p; } /* * Copy the first n characters of a string, reporting a fatal error and * existing on failure. * * Avoid using the system strndup function since it may not exist (on Mac OS * X, for example), and there's no need to introduce another portability * requirement. */ char * x_strndup(const char *s, size_t size, const char *file, int line) { const char *p; size_t len; char *copy; /* Don't assume that the source string is nul-terminated. */ for (p = s; (size_t) (p - s) < size && *p != '\0'; p++) ; len = (size_t) (p - s); copy = malloc(len + 1); if (copy == NULL) sysdie("failed to strndup %lu bytes at %s line %d", (unsigned long) len, file, line); memcpy(copy, s, len); copy[len] = '\0'; return copy; } /* * Form a new string by concatenating multiple strings. The arguments must be * terminated by (const char *) 0. * * This function only exists because we can't assume asprintf. We can't * simulate asprintf with snprintf because we're only assuming SUSv3, which * does not require that snprintf with a NULL buffer return the required * length. When those constraints are relaxed, this should be ripped out and * replaced with asprintf or a more trivial replacement with snprintf. */ static char * concat(const char *first, ...) { va_list args; char *result; const char *string; size_t offset; size_t length = 0; /* * Find the total memory required. Ensure we don't overflow length. We * aren't guaranteed to have SIZE_MAX, so use UINT_MAX as an acceptable * substitute (see the x_nrealloc comments). */ va_start(args, first); for (string = first; string != NULL; string = va_arg(args, const char *)) { if (length >= UINT_MAX - strlen(string)) { errno = EINVAL; sysdie("strings too long in concat"); } length += strlen(string); } va_end(args); length++; /* Create the string. */ result = xmalloc(length); va_start(args, first); offset = 0; for (string = first; string != NULL; string = va_arg(args, const char *)) { memcpy(result + offset, string, strlen(string)); offset += strlen(string); } va_end(args); result[offset] = '\0'; return result; } /* * Given a struct timeval, return the number of seconds it represents as a * double. Use difftime() to convert a time_t to a double. */ static double tv_seconds(const struct timeval *tv) { return difftime(tv->tv_sec, 0) + (double) tv->tv_usec * 1e-6; } /* * Given two struct timevals, return the difference in seconds. */ static double tv_diff(const struct timeval *tv1, const struct timeval *tv0) { return tv_seconds(tv1) - tv_seconds(tv0); } /* * Given two struct timevals, return the sum in seconds as a double. */ static double tv_sum(const struct timeval *tv1, const struct timeval *tv2) { return tv_seconds(tv1) + tv_seconds(tv2); } /* * Given a pointer to a string, skip any leading whitespace and return a * pointer to the first non-whitespace character. */ static const char * skip_whitespace(const char *p) { while (isspace((unsigned char)(*p))) p++; return p; } /* * Given a pointer to a string, skip any non-whitespace characters and return * a pointer to the first whitespace character, or to the end of the string. */ static const char * skip_non_whitespace(const char *p) { while (*p != '\0' && !isspace((unsigned char)(*p))) p++; return p; } /* * Start a program, connecting its stdout to a pipe on our end and its stderr * to /dev/null, and storing the file descriptor to read from in the two * argument. Returns the PID of the new process. Errors are fatal. */ static pid_t test_start(char *const *command, int *fd) { int fds[2], infd, errfd; pid_t child; /* Create a pipe used to capture the output from the test program. */ if (pipe(fds) == -1) { puts("ABORTED"); fflush(stdout); sysdie("can't create pipe"); } /* Fork a child process, massage the file descriptors, and exec. */ child = fork(); switch (child) { case -1: puts("ABORTED"); fflush(stdout); sysdie("can't fork"); /* In the child. Set up our standard output. */ case 0: close(fds[0]); close(STDOUT_FILENO); if (dup2(fds[1], STDOUT_FILENO) < 0) _exit(CHILDERR_DUP); close(fds[1]); /* Point standard input at /dev/null. */ close(STDIN_FILENO); infd = open("/dev/null", O_RDONLY); if (infd < 0) _exit(CHILDERR_STDIN); if (infd != STDIN_FILENO) { if (dup2(infd, STDIN_FILENO) < 0) _exit(CHILDERR_DUP); close(infd); } /* Point standard error at /dev/null. */ close(STDERR_FILENO); errfd = open("/dev/null", O_WRONLY); if (errfd < 0) _exit(CHILDERR_STDERR); if (errfd != STDERR_FILENO) { if (dup2(errfd, STDERR_FILENO) < 0) _exit(CHILDERR_DUP); close(errfd); } /* Now, exec our process. */ if (execv(command[0], command) == -1) _exit(CHILDERR_EXEC); break; /* In parent. Close the extra file descriptor. */ default: close(fds[1]); break; } *fd = fds[0]; return child; } /* * Back up over the output saying what test we were executing. */ static void test_backspace(struct testset *ts) { unsigned int i; if (!isatty(STDOUT_FILENO)) return; for (i = 0; i < ts->length; i++) putchar('\b'); for (i = 0; i < ts->length; i++) putchar(' '); for (i = 0; i < ts->length; i++) putchar('\b'); ts->length = 0; } /* * Allocate or resize the array of test results to be large enough to contain * the test number in. */ static void resize_results(struct testset *ts, unsigned long n) { unsigned long i; size_t s; /* If there's already enough space, return quickly. */ if (n <= ts->allocated) return; /* * If no space has been allocated, do the initial allocation. Otherwise, * resize. Start with 32 test cases and then add 1024 with each resize to * try to reduce the number of reallocations. */ if (ts->allocated == 0) { s = (n > 32) ? n : 32; ts->results = xcalloc(s, sizeof(enum test_status)); } else { s = (n > ts->allocated + 1024) ? n : ts->allocated + 1024; ts->results = xreallocarray(ts->results, s, sizeof(enum test_status)); } /* Set the results for the newly-allocated test array. */ for (i = ts->allocated; i < s; i++) ts->results[i] = TEST_INVALID; ts->allocated = s; } /* * Report an invalid test number and set the appropriate flags. Pulled into a * separate function since we do this in several places. */ static void invalid_test_number(struct testset *ts, long n, enum test_verbose verbose) { if (!verbose) test_backspace(ts); printf("ABORTED (invalid test number %ld)\n", n); ts->aborted = 1; ts->reported = 1; } /* * Read the plan line of test output, which should contain the range of test * numbers. We may initialize the testset structure here if we haven't yet * seen a test. Return true if initialization succeeded and the test should * continue, false otherwise. */ static int test_plan(const char *line, struct testset *ts, enum test_verbose verbose) { long n; /* * Accept a plan without the leading 1.. for compatibility with older * versions of runtests. This will only be allowed if we've not yet seen * a test result. */ line = skip_whitespace(line); if (strncmp(line, "1..", 3) == 0) line += 3; /* * Get the count and check it for validity. * * If we have something of the form "1..0 # skip foo", the whole file was * skipped; record that. If we do skip the whole file, zero out all of * our statistics, since they're no longer relevant. * * strtol is called with a second argument to advance the line pointer * past the count to make it simpler to detect the # skip case. */ n = strtol(line, (char **) &line, 10); if (n == 0) { line = skip_whitespace(line); if (*line == '#') { line = skip_whitespace(line + 1); if (strncasecmp(line, "skip", 4) == 0) { line = skip_whitespace(line + 4); if (*line != '\0') { ts->reason = xstrdup(line); ts->reason[strlen(ts->reason) - 1] = '\0'; } ts->all_skipped = 1; ts->aborted = 1; ts->count = 0; ts->passed = 0; ts->skipped = 0; ts->failed = 0; return 0; } } } if (n <= 0) { puts("ABORTED (invalid test count)"); ts->aborted = 1; ts->reported = 1; return 0; } /* * If we are doing lazy planning, check the plan against the largest test * number that we saw and fail now if we saw a check outside the plan * range. */ if (ts->plan == PLAN_PENDING && (unsigned long) n < ts->count) { invalid_test_number(ts, (long) ts->count, verbose); return 0; } /* * Otherwise, allocated or resize the results if needed and update count, * and then record that we've seen a plan. */ resize_results(ts, (unsigned long) n); ts->count = (unsigned long) n; if (ts->plan == PLAN_INIT) ts->plan = PLAN_FIRST; else if (ts->plan == PLAN_PENDING) ts->plan = PLAN_FINAL; return 1; } /* * Given a single line of output from a test, parse it and return the success * status of that test. Anything printed to stdout not matching the form * /^(not )?ok \d+/ is ignored. Sets ts->current to the test number that just * reported status. */ static void test_checkline(const char *line, struct testset *ts, enum test_verbose verbose) { enum test_status status = TEST_PASS; const char *bail; char *end; long number; unsigned long current; int outlen; /* Before anything, check for a test abort. */ bail = strstr(line, "Bail out!"); if (bail != NULL) { bail = skip_whitespace(bail + strlen("Bail out!")); if (*bail != '\0') { size_t length; length = strlen(bail); if (bail[length - 1] == '\n') length--; if (!verbose) test_backspace(ts); printf("ABORTED (%.*s)\n", (int) length, bail); ts->reported = 1; } ts->aborted = 1; return; } /* * If the given line isn't newline-terminated, it was too big for an * fgets(), which means ignore it. */ if (line[strlen(line) - 1] != '\n') return; /* If the line begins with a hash mark, ignore it. */ if (line[0] == '#') return; /* If we haven't yet seen a plan, look for one. */ if (ts->plan == PLAN_INIT && isdigit((unsigned char)(*line))) { if (!test_plan(line, ts, verbose)) return; } else if (strncmp(line, "1..", 3) == 0) { if (ts->plan == PLAN_PENDING) { if (!test_plan(line, ts, verbose)) return; } else { if (!verbose) test_backspace(ts); puts("ABORTED (multiple plans)"); ts->aborted = 1; ts->reported = 1; return; } } /* Parse the line, ignoring something we can't parse. */ if (strncmp(line, "not ", 4) == 0) { status = TEST_FAIL; line += 4; } if (strncmp(line, "ok", 2) != 0) return; line = skip_whitespace(line + 2); errno = 0; number = strtol(line, &end, 10); if (errno != 0 || end == line) current = ts->current + 1; else if (number <= 0) { invalid_test_number(ts, number, verbose); return; } else current = (unsigned long) number; if (current > ts->count && ts->plan == PLAN_FIRST) { invalid_test_number(ts, (long) current, verbose); return; } /* We have a valid test result. Tweak the results array if needed. */ if (ts->plan == PLAN_INIT || ts->plan == PLAN_PENDING) { ts->plan = PLAN_PENDING; resize_results(ts, current); if (current > ts->count) ts->count = current; } /* * Handle directives. We should probably do something more interesting * with unexpected passes of todo tests. */ while (isdigit((unsigned char)(*line))) line++; line = skip_whitespace(line); if (*line == '#') { line = skip_whitespace(line + 1); if (strncasecmp(line, "skip", 4) == 0) status = TEST_SKIP; if (strncasecmp(line, "todo", 4) == 0) status = (status == TEST_FAIL) ? TEST_SKIP : TEST_FAIL; } /* Make sure that the test number is in range and not a duplicate. */ if (ts->results[current - 1] != TEST_INVALID) { if (!verbose) test_backspace(ts); printf("ABORTED (duplicate test number %lu)\n", current); ts->aborted = 1; ts->reported = 1; return; } /* Good results. Increment our various counters. */ switch (status) { case TEST_PASS: ts->passed++; break; case TEST_FAIL: ts->failed++; break; case TEST_SKIP: ts->skipped++; break; case TEST_INVALID: break; } ts->current = current; ts->results[current - 1] = status; if (!verbose && isatty(STDOUT_FILENO)) { test_backspace(ts); if (ts->plan == PLAN_PENDING) outlen = printf("%lu/?", current); else outlen = printf("%lu/%lu", current, ts->count); ts->length = (outlen >= 0) ? (unsigned int) outlen : 0; fflush(stdout); } } /* * Print out a range of test numbers, returning the number of characters it * took up. Takes the first number, the last number, the number of characters * already printed on the line, and the limit of number of characters the line * can hold. Add a comma and a space before the range if chars indicates that * something has already been printed on the line, and print ... instead if * chars plus the space needed would go over the limit (use a limit of 0 to * disable this). */ static unsigned int test_print_range(unsigned long first, unsigned long last, unsigned long chars, unsigned int limit) { unsigned int needed = 0; unsigned long n; for (n = first; n > 0; n /= 10) needed++; if (last > first) { for (n = last; n > 0; n /= 10) needed++; needed++; } if (chars > 0) needed += 2; if (limit > 0 && chars + needed > limit) { needed = 0; if (chars <= limit) { if (chars > 0) { printf(", "); needed += 2; } printf("..."); needed += 3; } } else { if (chars > 0) printf(", "); if (last > first) printf("%lu-", first); printf("%lu", last); } return needed; } /* * Summarize a single test set. The second argument is 0 if the set exited * cleanly, a positive integer representing the exit status if it exited * with a non-zero status, and a negative integer representing the signal * that terminated it if it was killed by a signal. */ static void test_summarize(struct testset *ts, int status) { unsigned long i; unsigned long missing = 0; unsigned long failed = 0; unsigned long first = 0; unsigned long last = 0; if (ts->aborted) { fputs("ABORTED", stdout); if (ts->count > 0) printf(" (passed %lu/%lu)", ts->passed, ts->count - ts->skipped); } else { for (i = 0; i < ts->count; i++) { if (ts->results[i] == TEST_INVALID) { if (missing == 0) fputs("MISSED ", stdout); if (first && i == last) last = i + 1; else { if (first) test_print_range(first, last, missing - 1, 0); missing++; first = i + 1; last = i + 1; } } } if (first) test_print_range(first, last, missing - 1, 0); first = 0; last = 0; for (i = 0; i < ts->count; i++) { if (ts->results[i] == TEST_FAIL) { if (missing && !failed) fputs("; ", stdout); if (failed == 0) fputs("FAILED ", stdout); if (first && i == last) last = i + 1; else { if (first) test_print_range(first, last, failed - 1, 0); failed++; first = i + 1; last = i + 1; } } } if (first) test_print_range(first, last, failed - 1, 0); if (!missing && !failed) { fputs(!status ? "ok" : "dubious", stdout); if (ts->skipped > 0) { if (ts->skipped == 1) printf(" (skipped %lu test)", ts->skipped); else printf(" (skipped %lu tests)", ts->skipped); } } } if (status > 0) printf(" (exit status %d)", status); else if (status < 0) printf(" (killed by signal %d%s)", -status, WCOREDUMP(ts->status) ? ", core dumped" : ""); putchar('\n'); } /* * Given a test set, analyze the results, classify the exit status, handle a * few special error messages, and then pass it along to test_summarize() for * the regular output. Returns true if the test set ran successfully and all * tests passed or were skipped, false otherwise. */ static int test_analyze(struct testset *ts) { if (ts->reported) return 0; if (ts->all_skipped) { if (ts->reason == NULL) puts("skipped"); else printf("skipped (%s)\n", ts->reason); return 1; } else if (WIFEXITED(ts->status) && WEXITSTATUS(ts->status) != 0) { switch (WEXITSTATUS(ts->status)) { case CHILDERR_DUP: if (!ts->reported) puts("ABORTED (can't dup file descriptors)"); break; case CHILDERR_EXEC: if (!ts->reported) puts("ABORTED (execution failed -- not found?)"); break; case CHILDERR_STDIN: case CHILDERR_STDERR: if (!ts->reported) puts("ABORTED (can't open /dev/null)"); break; default: test_summarize(ts, WEXITSTATUS(ts->status)); break; } return 0; } else if (WIFSIGNALED(ts->status)) { test_summarize(ts, -WTERMSIG(ts->status)); return 0; } else if (ts->plan != PLAN_FIRST && ts->plan != PLAN_FINAL) { puts("ABORTED (no valid test plan)"); ts->aborted = 1; return 0; } else { test_summarize(ts, 0); return (ts->failed == 0); } } /* * Runs a single test set, accumulating and then reporting the results. * Returns true if the test set was successfully run and all tests passed, * false otherwise. */ static int test_run(struct testset *ts, enum test_verbose verbose) { pid_t testpid, child; int outfd, status; unsigned long i; FILE *output; char buffer[BUFSIZ]; /* Run the test program. */ testpid = test_start(ts->command, &outfd); output = fdopen(outfd, "r"); if (!output) { puts("ABORTED"); fflush(stdout); sysdie("fdopen failed"); } /* * Pass each line of output to test_checkline(), and print the line if * verbosity is requested. */ while (!ts->aborted && fgets(buffer, sizeof(buffer), output)) { if (verbose) printf("%s", buffer); test_checkline(buffer, ts, verbose); } if (ferror(output) || ts->plan == PLAN_INIT) ts->aborted = 1; if (!verbose) test_backspace(ts); /* * Consume the rest of the test output, close the output descriptor, * retrieve the exit status, and pass that information to test_analyze() * for eventual output. */ while (fgets(buffer, sizeof(buffer), output)) if (verbose) printf("%s", buffer); fclose(output); child = waitpid(testpid, &ts->status, 0); if (child == (pid_t) -1) { if (!ts->reported) { puts("ABORTED"); fflush(stdout); } sysdie("waitpid for %u failed", (unsigned int) testpid); } if (ts->all_skipped) ts->aborted = 0; status = test_analyze(ts); /* Convert missing tests to failed tests. */ for (i = 0; i < ts->count; i++) { if (ts->results[i] == TEST_INVALID) { ts->failed++; ts->results[i] = TEST_FAIL; status = 0; } } return status; } /* Summarize a list of test failures. */ static void test_fail_summary(const struct testlist *fails) { struct testset *ts; unsigned int chars; unsigned long i, first, last, total; double failed; puts(header); /* Failed Set Fail/Total (%) Skip Stat Failing (25) -------------------------- -------------- ---- ---- -------------- */ for (; fails; fails = fails->next) { ts = fails->ts; total = ts->count - ts->skipped; failed = (double) ts->failed; printf("%-26.26s %4lu/%-4lu %3.0f%% %4lu ", ts->file, ts->failed, total, total ? (failed * 100.0) / (double) total : 0, ts->skipped); if (WIFEXITED(ts->status)) printf("%4d ", WEXITSTATUS(ts->status)); else printf(" -- "); if (ts->aborted) { puts("aborted"); continue; } chars = 0; first = 0; last = 0; for (i = 0; i < ts->count; i++) { if (ts->results[i] == TEST_FAIL) { if (first != 0 && i == last) last = i + 1; else { if (first != 0) chars += test_print_range(first, last, chars, 19); first = i + 1; last = i + 1; } } } if (first != 0) test_print_range(first, last, chars, 19); putchar('\n'); } } /* * Check whether a given file path is a valid test. Currently, this checks * whether it is executable and is a regular file. Returns true or false. */ static int is_valid_test(const char *path) { struct stat st; if (access(path, X_OK) < 0) return 0; if (stat(path, &st) < 0) return 0; if (!S_ISREG(st.st_mode)) return 0; return 1; } /* * Given the name of a test, a pointer to the testset struct, and the source * and build directories, find the test. We try first relative to the current * directory, then in the build directory (if not NULL), then in the source * directory. In each of those directories, we first try a "-t" extension and * then a ".t" extension. When we find an executable program, we return the * path to that program. If none of those paths are executable, just fill in * the name of the test as is. * * The caller is responsible for freeing the path member of the testset * struct. */ static char * find_test(const char *name, const char *source, const char *build) { char *path = NULL; const char *bases[3], *suffix, *base; unsigned int i, j; const char *suffixes[3] = { "-t", ".t", "" }; /* Possible base directories. */ bases[0] = "."; bases[1] = build; bases[2] = source; /* Try each suffix with each base. */ for (i = 0; i < ARRAY_SIZE(suffixes); i++) { suffix = suffixes[i]; for (j = 0; j < ARRAY_SIZE(bases); j++) { base = bases[j]; if (base == NULL) continue; path = concat(base, "/", name, suffix, (const char *) 0); if (is_valid_test(path)) return path; free(path); path = NULL; } } if (path == NULL) path = xstrdup(name); return path; } /* * Parse a single line of a test list and store the test name and command to * execute it in the given testset struct. * * Normally, each line is just the name of the test, which is located in the * test directory and turned into a command to run. However, each line may * have whitespace-separated options, which change the command that's run. * Current supported options are: * * valgrind * Run the test under valgrind if C_TAP_VALGRIND is set. The contents * of that environment variable are taken as the valgrind command (with * options) to run. The command is parsed with a simple split on * whitespace and no quoting is supported. * * libtool * If running under valgrind, use libtool to invoke valgrind. This avoids * running valgrind on the wrapper shell script generated by libtool. If * set, C_TAP_LIBTOOL must be set to the full path to the libtool program * to use to run valgrind and thus the test. Ignored if the test isn't * being run under valgrind. */ static void parse_test_list_line(const char *line, struct testset *ts, const char *source, const char *build) { const char *p, *end, *option, *libtool; const char *valgrind = NULL; unsigned int use_libtool = 0; unsigned int use_valgrind = 0; size_t len, i; /* Determine the name of the test. */ p = skip_non_whitespace(line); ts->file = xstrndup(line, p - line); /* Check if any test options are set. */ p = skip_whitespace(p); while (*p != '\0') { end = skip_non_whitespace(p); if (strncmp(p, "libtool", end - p) == 0) { use_libtool = 1; p = end; } else if (strncmp(p, "valgrind", end - p) == 0) { valgrind = getenv("C_TAP_VALGRIND"); use_valgrind = (valgrind != NULL); p = end; } else { option = xstrndup(p, end - p); die("unknown test list option %s", option); } p = skip_whitespace(end); } /* Construct the argv to run the test. First, find the length. */ len = 1; if (use_valgrind && valgrind != NULL) { p = skip_whitespace(valgrind); while (*p != '\0') { len++; p = skip_whitespace(skip_non_whitespace(p)); } if (use_libtool) len += 2; } /* Now, build the command. */ ts->command = xcalloc(len + 1, sizeof(char *)); i = 0; if (use_valgrind && valgrind != NULL) { if (use_libtool) { libtool = getenv("C_TAP_LIBTOOL"); if (libtool == NULL) die("valgrind with libtool requested, but C_TAP_LIBTOOL is not" " set"); ts->command[i++] = xstrdup(libtool); ts->command[i++] = xstrdup("--mode=execute"); } p = skip_whitespace(valgrind); while (*p != '\0') { end = skip_non_whitespace(p); ts->command[i++] = xstrndup(p, end - p); p = skip_whitespace(end); } } if (i != len - 1) die("internal error while constructing command line"); ts->command[i++] = find_test(ts->file, source, build); ts->command[i] = NULL; } /* * Read a list of tests from a file, returning the list of tests as a struct * testlist, or NULL if there were no tests (such as a file containing only * comments). Reports an error to standard error and exits if the list of * tests cannot be read. */ static struct testlist * read_test_list(const char *filename, const char *source, const char *build) { FILE *file; unsigned int line; size_t length; char buffer[BUFSIZ]; const char *start; struct testlist *listhead, *current; /* Create the initial container list that will hold our results. */ listhead = xcalloc(1, sizeof(struct testlist)); current = NULL; /* * Open our file of tests to run and read it line by line, creating a new * struct testlist and struct testset for each line. */ file = fopen(filename, "r"); if (file == NULL) sysdie("can't open %s", filename); line = 0; while (fgets(buffer, sizeof(buffer), file)) { line++; length = strlen(buffer) - 1; if (buffer[length] != '\n') { fprintf(stderr, "%s:%u: line too long\n", filename, line); exit(1); } buffer[length] = '\0'; /* Skip comments, leading spaces, and blank lines. */ start = skip_whitespace(buffer); if (strlen(start) == 0) continue; if (start[0] == '#') continue; /* Allocate the new testset structure. */ if (current == NULL) current = listhead; else { current->next = xcalloc(1, sizeof(struct testlist)); current = current->next; } current->ts = xcalloc(1, sizeof(struct testset)); current->ts->plan = PLAN_INIT; /* Parse the line and store the results in the testset struct. */ parse_test_list_line(start, current->ts, source, build); } fclose(file); /* If there were no tests, current is still NULL. */ if (current == NULL) { free(listhead); return NULL; } /* Return the results. */ return listhead; } /* * Build a list of tests from command line arguments. Takes the argv and argc * representing the command line arguments and returns a newly allocated test * list, or NULL if there were no tests. The caller is responsible for * freeing. */ static struct testlist * build_test_list(char *argv[], int argc, const char *source, const char *build) { int i; struct testlist *listhead, *current; /* Create the initial container list that will hold our results. */ listhead = xcalloc(1, sizeof(struct testlist)); current = NULL; /* Walk the list of arguments and create test sets for them. */ for (i = 0; i < argc; i++) { if (current == NULL) current = listhead; else { current->next = xcalloc(1, sizeof(struct testlist)); current = current->next; } current->ts = xcalloc(1, sizeof(struct testset)); current->ts->plan = PLAN_INIT; current->ts->file = xstrdup(argv[i]); current->ts->command = xcalloc(2, sizeof(char *)); current->ts->command[0] = find_test(current->ts->file, source, build); current->ts->command[1] = NULL; } /* If there were no tests, current is still NULL. */ if (current == NULL) { free(listhead); return NULL; } /* Return the results. */ return listhead; } /* Free a struct testset. */ static void free_testset(struct testset *ts) { size_t i; free(ts->file); for (i = 0; ts->command[i] != NULL; i++) free(ts->command[i]); free(ts->command); free(ts->results); free(ts->reason); free(ts); } /* * Run a batch of tests. Takes two additional parameters: the root of the * source directory and the root of the build directory. Test programs will * be first searched for in the current directory, then the build directory, * then the source directory. Returns true iff all tests passed, and always * frees the test list that's passed in. */ static int test_batch(struct testlist *tests, enum test_verbose verbose) { size_t length, i; size_t longest = 0; unsigned int count = 0; struct testset *ts; struct timeval start, end; struct rusage stats; struct testlist *failhead = NULL; struct testlist *failtail = NULL; struct testlist *current, *next; int succeeded; unsigned long total = 0; unsigned long passed = 0; unsigned long skipped = 0; unsigned long failed = 0; unsigned long aborted = 0; /* Walk the list of tests to find the longest name. */ for (current = tests; current != NULL; current = current->next) { length = strlen(current->ts->file); if (length > longest) longest = length; } /* * Add two to longest and round up to the nearest tab stop. This is how * wide the column for printing the current test name will be. */ longest += 2; if (longest % 8) longest += 8 - (longest % 8); /* Start the wall clock timer. */ gettimeofday(&start, NULL); /* Now, plow through our tests again, running each one. */ for (current = tests; current != NULL; current = current->next) { ts = current->ts; /* Print out the name of the test file. */ fputs(ts->file, stdout); if (verbose) fputs("\n\n", stdout); else for (i = strlen(ts->file); i < longest; i++) putchar('.'); if (isatty(STDOUT_FILENO)) fflush(stdout); /* Run the test. */ succeeded = test_run(ts, verbose); fflush(stdout); if (verbose) putchar('\n'); /* Record cumulative statistics. */ aborted += ts->aborted; total += ts->count + ts->all_skipped; passed += ts->passed; skipped += ts->skipped + ts->all_skipped; failed += ts->failed; count++; /* If the test fails, we shuffle it over to the fail list. */ if (!succeeded) { if (failhead == NULL) { failhead = xmalloc(sizeof(struct testset)); failtail = failhead; } else { failtail->next = xmalloc(sizeof(struct testset)); failtail = failtail->next; } failtail->ts = ts; failtail->next = NULL; } } total -= skipped; /* Stop the timer and get our child resource statistics. */ gettimeofday(&end, NULL); getrusage(RUSAGE_CHILDREN, &stats); /* Summarize the failures and free the failure list. */ if (failhead != NULL) { test_fail_summary(failhead); while (failhead != NULL) { next = failhead->next; free(failhead); failhead = next; } } /* Free the memory used by the test lists. */ while (tests != NULL) { next = tests->next; free_testset(tests->ts); free(tests); tests = next; } /* Print out the final test summary. */ putchar('\n'); if (aborted != 0) { if (aborted == 1) printf("Aborted %lu test set", aborted); else printf("Aborted %lu test sets", aborted); printf(", passed %lu/%lu tests", passed, total); } else if (failed == 0) fputs("All tests successful", stdout); else printf("Failed %lu/%lu tests, %.2f%% okay", failed, total, (double) (total - failed) * 100.0 / (double) total); if (skipped != 0) { if (skipped == 1) printf(", %lu test skipped", skipped); else printf(", %lu tests skipped", skipped); } puts("."); printf("Files=%u, Tests=%lu", count, total); printf(", %.2f seconds", tv_diff(&end, &start)); printf(" (%.2f usr + %.2f sys = %.2f CPU)\n", tv_seconds(&stats.ru_utime), tv_seconds(&stats.ru_stime), tv_sum(&stats.ru_utime, &stats.ru_stime)); return (failed == 0 && aborted == 0); } /* * Run a single test case. This involves just running the test program after * having done the environment setup and finding the test program. */ static void test_single(const char *program, const char *source, const char *build) { char *path; path = find_test(program, source, build); if (execl(path, path, (char *) 0) == -1) sysdie("cannot exec %s", path); } /* * Main routine. Set the C_TAP_SOURCE, C_TAP_BUILD, SOURCE, and BUILD * environment variables and then, given a file listing tests, run each test * listed. */ int main(int argc, char *argv[]) { int option; int status = 0; int single = 0; enum test_verbose verbose = CONCISE; char *c_tap_source_env = NULL; char *c_tap_build_env = NULL; char *source_env = NULL; char *build_env = NULL; const char *program; const char *shortlist; const char *list = NULL; const char *source = C_TAP_SOURCE; const char *build = C_TAP_BUILD; struct testlist *tests; program = argv[0]; while ((option = getopt(argc, argv, "b:hl:os:v")) != EOF) { switch (option) { case 'b': build = optarg; break; case 'h': printf(usage_message, program, program, program, usage_extra); exit(0); case 'l': list = optarg; break; case 'o': single = 1; break; case 's': source = optarg; break; case 'v': verbose = VERBOSE; break; default: exit(1); } } argv += optind; argc -= optind; if ((list == NULL && argc < 1) || (list != NULL && argc > 0)) { fprintf(stderr, usage_message, program, program, program, usage_extra); exit(1); } /* * If C_TAP_VERBOSE is set in the environment, that also turns on verbose * mode. */ if (getenv("C_TAP_VERBOSE") != NULL) verbose = VERBOSE; /* * Set C_TAP_SOURCE and C_TAP_BUILD environment variables. Also set * SOURCE and BUILD for backward compatibility, although we're trying to * migrate to the ones with a C_TAP_* prefix. */ if (source != NULL) { c_tap_source_env = concat("C_TAP_SOURCE=", source, (const char *) 0); if (putenv(c_tap_source_env) != 0) sysdie("cannot set C_TAP_SOURCE in the environment"); source_env = concat("SOURCE=", source, (const char *) 0); if (putenv(source_env) != 0) sysdie("cannot set SOURCE in the environment"); } if (build != NULL) { c_tap_build_env = concat("C_TAP_BUILD=", build, (const char *) 0); if (putenv(c_tap_build_env) != 0) sysdie("cannot set C_TAP_BUILD in the environment"); build_env = concat("BUILD=", build, (const char *) 0); if (putenv(build_env) != 0) sysdie("cannot set BUILD in the environment"); } /* Run the tests as instructed. */ if (single) test_single(argv[0], source, build); else if (list != NULL) { shortlist = strrchr(list, '/'); if (shortlist == NULL) shortlist = list; else shortlist++; printf(banner, shortlist); tests = read_test_list(list, source, build); status = test_batch(tests, verbose) ? 0 : 1; } else { tests = build_test_list(argv, argc, source, build); status = test_batch(tests, verbose) ? 0 : 1; } /* For valgrind cleanliness, free all our memory. */ if (source_env != NULL) { putenv((char *) "C_TAP_SOURCE="); putenv((char *) "SOURCE="); free(c_tap_source_env); free(source_env); } if (build_env != NULL) { putenv((char *) "C_TAP_BUILD="); putenv((char *) "BUILD="); free(c_tap_build_env); free(build_env); } exit(status); }
the_stack_data/54826282.c
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; typedef signed long int __int64_t; typedef unsigned long int __uint64_t; typedef long int __quad_t; typedef unsigned long int __u_quad_t; typedef unsigned long int __dev_t; typedef unsigned int __uid_t; typedef unsigned int __gid_t; typedef unsigned long int __ino_t; typedef unsigned long int __ino64_t; typedef unsigned int __mode_t; typedef unsigned long int __nlink_t; typedef long int __off_t; typedef long int __off64_t; typedef int __pid_t; typedef struct { int __val[2]; } __fsid_t; typedef long int __clock_t; typedef unsigned long int __rlim_t; typedef unsigned long int __rlim64_t; typedef unsigned int __id_t; typedef long int __time_t; typedef unsigned int __useconds_t; typedef long int __suseconds_t; typedef int __daddr_t; typedef int __key_t; typedef int __clockid_t; typedef void * __timer_t; typedef long int __blksize_t; typedef long int __blkcnt_t; typedef long int __blkcnt64_t; typedef unsigned long int __fsblkcnt_t; typedef unsigned long int __fsblkcnt64_t; typedef unsigned long int __fsfilcnt_t; typedef unsigned long int __fsfilcnt64_t; typedef long int __fsword_t; typedef long int __ssize_t; typedef long int __syscall_slong_t; typedef unsigned long int __syscall_ulong_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; typedef long int __intptr_t; typedef unsigned int __socklen_t; 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 __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 __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; typedef __clock_t clock_t; typedef __time_t time_t; typedef __clockid_t clockid_t; typedef __timer_t timer_t; typedef long unsigned int size_t; typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; 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__))); static __inline unsigned int __bswap_32 (unsigned int __bsx) { return __builtin_bswap32 (__bsx); } static __inline __uint64_t __bswap_64 (__uint64_t __bsx) { return __builtin_bswap64 (__bsx); } typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; typedef __sigset_t sigset_t; struct timespec { __time_t tv_sec; __syscall_slong_t tv_nsec; }; struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; typedef __suseconds_t suseconds_t; typedef long int __fd_mask; typedef struct { __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); 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); __extension__ extern unsigned int gnu_dev_major (unsigned long long int __dev) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); __extension__ extern unsigned int gnu_dev_minor (unsigned long long int __dev) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); __extension__ extern unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; typedef unsigned long int pthread_t; union pthread_attr_t { char __size[56]; long int __align; }; typedef union pthread_attr_t pthread_attr_t; typedef struct __pthread_internal_list { struct __pthread_internal_list *__prev; struct __pthread_internal_list *__next; } __pthread_list_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; unsigned int __nusers; int __kind; short __spins; short __elision; __pthread_list_t __list; } __data; char __size[40]; 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 { 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; int __writer; int __shared; unsigned long int __pad1; unsigned long int __pad2; unsigned int __flags; } __data; char __size[56]; 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[32]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; struct iovec { void *iov_base; size_t iov_len; }; extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) ; extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) ; extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off_t __offset) ; extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off_t __offset) ; typedef __socklen_t socklen_t; enum __socket_type { SOCK_STREAM = 1, SOCK_DGRAM = 2, SOCK_RAW = 3, SOCK_RDM = 4, SOCK_SEQPACKET = 5, SOCK_DCCP = 6, SOCK_PACKET = 10, SOCK_CLOEXEC = 02000000, SOCK_NONBLOCK = 00004000 }; typedef unsigned short int sa_family_t; struct sockaddr { sa_family_t sa_family; char sa_data[14]; }; struct sockaddr_storage { sa_family_t ss_family; unsigned long int __ss_align; char __ss_padding[(128 - (2 * sizeof (unsigned long int)))]; }; enum { MSG_OOB = 0x01, MSG_PEEK = 0x02, MSG_DONTROUTE = 0x04, MSG_CTRUNC = 0x08, MSG_PROXY = 0x10, MSG_TRUNC = 0x20, MSG_DONTWAIT = 0x40, MSG_EOR = 0x80, MSG_WAITALL = 0x100, MSG_FIN = 0x200, MSG_SYN = 0x400, MSG_CONFIRM = 0x800, MSG_RST = 0x1000, MSG_ERRQUEUE = 0x2000, MSG_NOSIGNAL = 0x4000, MSG_MORE = 0x8000, MSG_WAITFORONE = 0x10000, MSG_FASTOPEN = 0x20000000, MSG_CMSG_CLOEXEC = 0x40000000 }; struct msghdr { void *msg_name; socklen_t msg_namelen; struct iovec *msg_iov; size_t msg_iovlen; void *msg_control; size_t msg_controllen; int msg_flags; }; struct cmsghdr { size_t cmsg_len; int cmsg_level; int cmsg_type; __extension__ unsigned char __cmsg_data []; }; extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __attribute__ ((__nothrow__ , __leaf__)); enum { SCM_RIGHTS = 0x01 }; struct linger { int l_onoff; int l_linger; }; struct osockaddr { unsigned short int sa_family; unsigned char sa_data[14]; }; enum { SHUT_RD = 0, SHUT_WR, SHUT_RDWR }; extern int socket (int __domain, int __type, int __protocol) __attribute__ ((__nothrow__ , __leaf__)); extern int socketpair (int __domain, int __type, int __protocol, int __fds[2]) __attribute__ ((__nothrow__ , __leaf__)); extern int bind (int __fd, const struct sockaddr * __addr, socklen_t __len) __attribute__ ((__nothrow__ , __leaf__)); extern int getsockname (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __len) __attribute__ ((__nothrow__ , __leaf__)); extern int connect (int __fd, const struct sockaddr * __addr, socklen_t __len); extern int getpeername (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __len) __attribute__ ((__nothrow__ , __leaf__)); extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags); extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); extern ssize_t sendto (int __fd, const void *__buf, size_t __n, int __flags, const struct sockaddr * __addr, socklen_t __addr_len); extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); extern ssize_t sendmsg (int __fd, const struct msghdr *__message, int __flags); extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); extern int getsockopt (int __fd, int __level, int __optname, void *__restrict __optval, socklen_t *__restrict __optlen) __attribute__ ((__nothrow__ , __leaf__)); extern int setsockopt (int __fd, int __level, int __optname, const void *__optval, socklen_t __optlen) __attribute__ ((__nothrow__ , __leaf__)); extern int listen (int __fd, int __n) __attribute__ ((__nothrow__ , __leaf__)); extern int accept (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); extern int shutdown (int __fd, int __how) __attribute__ ((__nothrow__ , __leaf__)); extern int sockatmark (int __fd) __attribute__ ((__nothrow__ , __leaf__)); extern int isfdtype (int __fd, int __fdtype) __attribute__ ((__nothrow__ , __leaf__)); typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned long int uint64_t; typedef signed char int_least8_t; typedef short int int_least16_t; typedef int int_least32_t; typedef long int int_least64_t; typedef unsigned char uint_least8_t; typedef unsigned short int uint_least16_t; typedef unsigned int uint_least32_t; typedef unsigned long int uint_least64_t; typedef signed char int_fast8_t; typedef long int int_fast16_t; typedef long int int_fast32_t; typedef long int int_fast64_t; typedef unsigned char uint_fast8_t; typedef unsigned long int uint_fast16_t; typedef unsigned long int uint_fast32_t; typedef unsigned long int uint_fast64_t; typedef long int intptr_t; typedef unsigned long int uintptr_t; typedef long int intmax_t; typedef unsigned long int uintmax_t; enum { IPPROTO_IP = 0, IPPROTO_HOPOPTS = 0, IPPROTO_ICMP = 1, IPPROTO_IGMP = 2, IPPROTO_IPIP = 4, IPPROTO_TCP = 6, IPPROTO_EGP = 8, IPPROTO_PUP = 12, IPPROTO_UDP = 17, IPPROTO_IDP = 22, IPPROTO_TP = 29, IPPROTO_DCCP = 33, IPPROTO_IPV6 = 41, IPPROTO_ROUTING = 43, IPPROTO_FRAGMENT = 44, IPPROTO_RSVP = 46, IPPROTO_GRE = 47, IPPROTO_ESP = 50, IPPROTO_AH = 51, IPPROTO_ICMPV6 = 58, IPPROTO_NONE = 59, IPPROTO_DSTOPTS = 60, IPPROTO_MTP = 92, IPPROTO_ENCAP = 98, IPPROTO_PIM = 103, IPPROTO_COMP = 108, IPPROTO_SCTP = 132, IPPROTO_UDPLITE = 136, IPPROTO_RAW = 255, IPPROTO_MAX }; typedef uint16_t in_port_t; enum { IPPORT_ECHO = 7, IPPORT_DISCARD = 9, IPPORT_SYSTAT = 11, IPPORT_DAYTIME = 13, IPPORT_NETSTAT = 15, IPPORT_FTP = 21, IPPORT_TELNET = 23, IPPORT_SMTP = 25, IPPORT_TIMESERVER = 37, IPPORT_NAMESERVER = 42, IPPORT_WHOIS = 43, IPPORT_MTP = 57, IPPORT_TFTP = 69, IPPORT_RJE = 77, IPPORT_FINGER = 79, IPPORT_TTYLINK = 87, IPPORT_SUPDUP = 95, IPPORT_EXECSERVER = 512, IPPORT_LOGINSERVER = 513, IPPORT_CMDSERVER = 514, IPPORT_EFSSERVER = 520, IPPORT_BIFFUDP = 512, IPPORT_WHOSERVER = 513, IPPORT_ROUTESERVER = 520, IPPORT_RESERVED = 1024, IPPORT_USERRESERVED = 5000 }; typedef uint32_t in_addr_t; struct in_addr { in_addr_t s_addr; }; struct in6_addr { union { uint8_t __u6_addr8[16]; uint16_t __u6_addr16[8]; uint32_t __u6_addr32[4]; } __in6_u; }; extern const struct in6_addr in6addr_any; extern const struct in6_addr in6addr_loopback; struct sockaddr_in { sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; unsigned char sin_zero[sizeof (struct sockaddr) - (sizeof (unsigned short int)) - sizeof (in_port_t) - sizeof (struct in_addr)]; }; struct sockaddr_in6 { sa_family_t sin6_family; in_port_t sin6_port; uint32_t sin6_flowinfo; struct in6_addr sin6_addr; uint32_t sin6_scope_id; }; struct ip_mreq { struct in_addr imr_multiaddr; struct in_addr imr_interface; }; struct ip_mreq_source { struct in_addr imr_multiaddr; struct in_addr imr_interface; struct in_addr imr_sourceaddr; }; struct ipv6_mreq { struct in6_addr ipv6mr_multiaddr; unsigned int ipv6mr_interface; }; struct group_req { uint32_t gr_interface; struct sockaddr_storage gr_group; }; struct group_source_req { uint32_t gsr_interface; struct sockaddr_storage gsr_group; struct sockaddr_storage gsr_source; }; struct ip_msfilter { struct in_addr imsf_multiaddr; struct in_addr imsf_interface; uint32_t imsf_fmode; uint32_t imsf_numsrc; struct in_addr imsf_slist[1]; }; struct group_filter { uint32_t gf_interface; struct sockaddr_storage gf_group; uint32_t gf_fmode; uint32_t gf_numsrc; struct sockaddr_storage gf_slist[1]; }; struct ip_opts { struct in_addr ip_dst; char ip_opts[40]; }; struct ip_mreqn { struct in_addr imr_multiaddr; struct in_addr imr_address; int imr_ifindex; }; struct in_pktinfo { int ipi_ifindex; struct in_addr ipi_spec_dst; struct in_addr ipi_addr; }; extern uint32_t ntohl (uint32_t __netlong) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); extern uint16_t ntohs (uint16_t __netshort) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); extern uint32_t htonl (uint32_t __hostlong) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); extern uint16_t htons (uint16_t __hostshort) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) __attribute__ ((__nothrow__ , __leaf__)); extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) __attribute__ ((__nothrow__ , __leaf__)); typedef __builtin_va_list __gnuc_va_list; extern void warn (const char *__format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); extern void vwarn (const char *__format, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 1, 0))); extern void warnx (const char *__format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); extern void vwarnx (const char *__format, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 1, 0))); extern void err (int __status, const char *__format, ...) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3))); extern void verr (int __status, const char *__format, __gnuc_va_list) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0))); extern void errx (int __status, const char *__format, ...) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3))); extern void verrx (int __status, const char *, __gnuc_va_list) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0))); extern void *memcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, const void *__src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, const void *__restrict __src, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); extern int memcmp (const void *__s1, const void *__s2, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memchr (const void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strcpy (char *__restrict __dest, const char *__restrict __src) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, const char *__restrict __src) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (const char *__s1, const char *__s2) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (const char *__s1, const char *__s2, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (const char *__s1, const char *__s2) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); 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; extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); extern char *strdup (const char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); extern char *strndup (const char *__string, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); extern char *strchr (const char *__s, int __c) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strrchr (const char *__s, int __c) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strcspn (const char *__s, const char *__reject) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (const char *__s, const char *__accept) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strpbrk (const char *__s, const char *__accept) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strstr (const char *__haystack, const char *__needle) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strtok (char *__restrict __s, const char *__restrict __delim) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); extern size_t strlen (const char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strnlen (const char *__string, size_t __maxlen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__)); extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)); extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); extern void bcopy (const void *__src, void *__dest, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); extern int bcmp (const void *__s1, const void *__s2, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *index (const char *__s, int __c) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *rindex (const char *__s, int __c) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); extern int strcasecmp (const char *__s1, const char *__s2) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strsep (char **__restrict __stringp, const char *__restrict __delim) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__)); extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *__stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); extern char *stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); typedef __gnuc_va_list va_list; struct _IO_FILE; typedef struct _IO_FILE FILE; typedef struct _IO_FILE __FILE; typedef struct { int __count; union { unsigned int __wch; char __wchb[4]; } __value; } __mbstate_t; typedef struct { __off_t __pos; __mbstate_t __state; } _G_fpos_t; typedef struct { __off64_t __pos; __mbstate_t __state; } _G_fpos64_t; struct _IO_jump_t; struct _IO_FILE; typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; }; enum __codecvt_result { __codecvt_ok, __codecvt_partial, __codecvt_error, __codecvt_noconv }; 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; __off64_t _offset; void *__pad1; void *__pad2; void *__pad3; void *__pad4; size_t __pad5; int _mode; char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; }; typedef struct _IO_FILE _IO_FILE; 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_; 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); extern int __underflow (_IO_FILE *); extern int __uflow (_IO_FILE *); extern int __overflow (_IO_FILE *, int); extern int _IO_getc (_IO_FILE *__fp); extern int _IO_putc (int __c, _IO_FILE *__fp); extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_peekc_locked (_IO_FILE *__fp); extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); 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 *) __attribute__ ((__nothrow__ , __leaf__)); typedef _G_fpos_t fpos_t; extern struct _IO_FILE *stdin; extern struct _IO_FILE *stdout; extern struct _IO_FILE *stderr; extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__)); extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__)); extern int renameat (int __oldfd, const char *__old, int __newfd, const char *__new) __attribute__ ((__nothrow__ , __leaf__)); extern FILE *tmpfile (void) ; extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ; extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ; extern char *tempnam (const char *__dir, const char *__pfx) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; extern int fclose (FILE *__stream); extern int fflush (FILE *__stream); extern int fflush_unlocked (FILE *__stream); 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) ; extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) ; extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) ; extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) ; extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__)); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) __attribute__ ((__nothrow__ , __leaf__)); extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); 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, ...) __attribute__ ((__nothrow__)); 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) __attribute__ ((__nothrow__)); extern int snprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, ...) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); extern int vsnprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); 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, ...) __attribute__ ((__nothrow__ , __leaf__)); extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") ; extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") ; extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__)) ; 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) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0))); extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") __attribute__ ((__format__ (__scanf__, 2, 0))) ; extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") __attribute__ ((__format__ (__scanf__, 1, 0))) ; extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0))); extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); 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); 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) __attribute__ ((__deprecated__)); 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); 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); extern int fseeko (FILE *__stream, __off_t __off, int __whence); extern __off_t ftello (FILE *__stream) ; extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); extern int fsetpos (FILE *__stream, const fpos_t *__pos); extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern void perror (const char *__s); extern int sys_nerr; extern const char *const sys_errlist[]; extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern FILE *popen (const char *__command, const char *__modes) ; extern int pclose (FILE *__stream); extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__)); extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); typedef struct HAllocator_ { void* (*alloc)(struct HAllocator_* allocator, size_t size); void* (*realloc)(struct HAllocator_* allocator, void* ptr, size_t size); void (*free)(struct HAllocator_* allocator, void* ptr); } HAllocator; typedef struct HArena_ HArena ; HArena *h_new_arena(HAllocator* allocator, size_t block_size); void* h_arena_malloc(HArena *arena, size_t count) __attribute__(( malloc, alloc_size(2) )); void h_arena_free(HArena *arena, void* ptr); void h_delete_arena(HArena *arena); typedef struct { size_t used; size_t wasted; } HArenaStats; void h_allocator_stats(HArena *arena, HArenaStats *stats); typedef int bool; typedef struct HParseState_ HParseState; typedef enum HParserBackend_ { PB_MIN = 0, PB_PACKRAT = PB_MIN, PB_REGULAR, PB_LLk, PB_LALR, PB_GLR, PB_MAX = PB_GLR } HParserBackend; typedef enum HTokenType_ { TT_NONE = 1, TT_BYTES = 2, TT_SINT = 4, TT_UINT = 8, TT_SEQUENCE = 16, TT_RESERVED_1, TT_ERR = 32, TT_USER = 64, TT_MAX } HTokenType; typedef struct HCountedArray_ { size_t capacity; size_t used; HArena * arena; struct HParsedToken_ **elements; } HCountedArray; typedef struct HBytes_ { const uint8_t *token; size_t len; } HBytes; typedef struct HParsedToken_ { HTokenType token_type; union { HBytes bytes; int64_t sint; uint64_t uint; double dbl; float flt; HCountedArray *seq; void *user; }; size_t index; char bit_offset; } HParsedToken; typedef struct HParseResult_ { const HParsedToken *ast; int64_t bit_length; HArena * arena; } HParseResult; typedef struct HBitWriter_ HBitWriter; typedef HParsedToken* (*HAction)(const HParseResult *p, void* user_data); typedef bool (*HPredicate)(HParseResult *p, void* user_data); typedef struct HCFChoice_ HCFChoice; typedef struct HRVMProg_ HRVMProg; typedef struct HParserVtable_ HParserVtable; typedef struct HParser_ { const HParserVtable *vtable; HParserBackend backend; void* backend_data; void *env; HCFChoice *desugared; const char *name; } HParser; typedef struct HParserTestcase_ { unsigned char* input; size_t length; char* output_unambiguous; } HParserTestcase; typedef struct HCaseResult_ { bool success; union { const char* actual_results; size_t parse_time; }; } HCaseResult; typedef struct HBackendResults_ { HParserBackend backend; bool compile_success; size_t n_testcases; size_t failed_testcases; HCaseResult *cases; } HBackendResults; typedef struct HBenchmarkResults_ { size_t len; HBackendResults *results; } HBenchmarkResults; HParseResult* h_parse(const HParser* parser, const uint8_t* input, size_t length); HParseResult* h_parse__m(HAllocator* mm__, const HParser* parser, const uint8_t* input, size_t length); HParseResult* h_parse_error(const HParser *parser, const uint8_t* input, size_t length, FILE *error_fd); HParseResult* h_parse_error__m(HAllocator* mm__, const HParser *parser, const uint8_t* input, size_t length, FILE *error_fd); HParser* h_token(const uint8_t *str, const size_t len); HParser* h_token__m(HAllocator* mm__, const uint8_t *str, const size_t len); HParser* h_ch(const uint8_t c); HParser* h_ch__m(HAllocator* mm__, const uint8_t c); HParser* h_ch_range(const uint8_t lower, const uint8_t upper); HParser* h_ch_range__m(HAllocator* mm__, const uint8_t lower, const uint8_t upper); HParser* h_int_range(const HParser *p, const int64_t lower, const int64_t upper); HParser* h_int_range__m(HAllocator* mm__, const HParser *p, const int64_t lower, const int64_t upper); HParser * h_strint(const int signed); HParser * h_strint__m(HAllocator* mm__, const int signed); HParser* h_bits(size_t len, bool sign); HParser* h_bits__m(HAllocator* mm__, size_t len, bool sign); HParser* h_int64(void); HParser* h_int64__m(HAllocator* mm__); HParser* h_int32(void); HParser* h_int32__m(HAllocator* mm__); HParser* h_int16(void); HParser* h_int16__m(HAllocator* mm__); HParser* h_int8(void); HParser* h_int8__m(HAllocator* mm__); HParser* h_uint64(void); HParser* h_uint64__m(HAllocator* mm__); HParser* h_uint32(void); HParser* h_uint32__m(HAllocator* mm__); HParser* h_uint16(void); HParser* h_uint16__m(HAllocator* mm__); HParser* h_uint8(void); HParser* h_uint8__m(HAllocator* mm__); HParser* h_whitespace(const HParser* p); HParser* h_whitespace__m(HAllocator* mm__, const HParser* p); HParser* h_left(const HParser* p, const HParser* q); HParser* h_left__m(HAllocator* mm__, const HParser* p, const HParser* q); HParser* h_right(const HParser* p, const HParser* q); HParser* h_right__m(HAllocator* mm__, const HParser* p, const HParser* q); HParser* h_middle(const HParser* p, const HParser* x, const HParser* q); HParser* h_middle__m(HAllocator* mm__, const HParser* p, const HParser* x, const HParser* q); HParser* h_action(const HParser* p, const HAction a, void* user_data); HParser* h_action__m(HAllocator* mm__, const HParser* p, const HAction a, void* user_data); HParser* h_in(const uint8_t *charset, size_t length); HParser* h_in__m(HAllocator* mm__, const uint8_t *charset, size_t length); HParser* h_not_in(const uint8_t *charset, size_t length); HParser* h_not_in__m(HAllocator* mm__, const uint8_t *charset, size_t length); HParser* h_end_p(void); HParser* h_end_p__m(HAllocator* mm__); HParser* h_nothing_p(void); HParser* h_nothing_p__m(HAllocator* mm__); HParser* h_sequence(HParser* p, ...) __attribute__((sentinel)); HParser* h_sequence__m(HAllocator* mm__, HParser* p, ...) __attribute__((sentinel)); HParser* h_sequence__mv(HAllocator* mm__, HParser* p, va_list ap); HParser* h_sequence__v(HParser* p, va_list ap); HParser* h_sequence__a(void *args[]); HParser* h_sequence__ma(HAllocator *mm__, void *args[]); HParser* h_choice(HParser* p, ...) __attribute__((sentinel)); HParser* h_choice__m(HAllocator* mm__, HParser* p, ...) __attribute__((sentinel)); HParser* h_choice__mv(HAllocator* mm__, HParser* p, va_list ap); HParser* h_choice__v(HParser* p, va_list ap); HParser* h_choice__a(void *args[]); HParser* h_choice__ma(HAllocator *mm__, void *args[]); HParser* h_butnot(const HParser* p1, const HParser* p2); HParser* h_butnot__m(HAllocator* mm__, const HParser* p1, const HParser* p2); HParser* h_difference(const HParser* p1, const HParser* p2); HParser* h_difference__m(HAllocator* mm__, const HParser* p1, const HParser* p2); HParser* h_xor(const HParser* p1, const HParser* p2); HParser* h_xor__m(HAllocator* mm__, const HParser* p1, const HParser* p2); HParser* h_many(const HParser* p); HParser* h_many__m(HAllocator* mm__, const HParser* p); HParser* h_many1(const HParser* p); HParser* h_many1__m(HAllocator* mm__, const HParser* p); HParser* h_repeat_n(const HParser* p, const size_t n); HParser* h_repeat_n__m(HAllocator* mm__, const HParser* p, const size_t n); HParser* h_optional(const HParser* p); HParser* h_optional__m(HAllocator* mm__, const HParser* p); HParser* h_ignore(const HParser* p); HParser* h_ignore__m(HAllocator* mm__, const HParser* p); HParser* h_sepBy(const HParser* p, const HParser* sep); HParser* h_sepBy__m(HAllocator* mm__, const HParser* p, const HParser* sep); HParser* h_sepBy1(const HParser* p, const HParser* sep); HParser* h_sepBy1__m(HAllocator* mm__, const HParser* p, const HParser* sep); HParser* h_epsilon_p(void); HParser* h_epsilon_p__m(HAllocator* mm__); HParser* h_length_value(const HParser* length, const HParser* value); HParser* h_length_value__m(HAllocator* mm__, const HParser* length, const HParser* value); HParser* h_attr_bool(const HParser* p, HPredicate pred, void* user_data); HParser* h_attr_bool__m(HAllocator* mm__, const HParser* p, HPredicate pred, void* user_data); HParser* h_and(const HParser* p); HParser* h_and__m(HAllocator* mm__, const HParser* p); HParser* h_not(const HParser* p); HParser* h_not__m(HAllocator* mm__, const HParser* p); HParser* h_indirect(void); HParser* h_indirect__m(HAllocator* mm__); void h_bind_indirect(HParser* indirect, const HParser* inner); void h_bind_indirect__m(HAllocator* mm__, HParser* indirect, const HParser* inner); void h_parse_result_free(HParseResult *result); void h_parse_result_free__m(HAllocator* mm__, HParseResult *result); char* h_write_result_unamb(const HParsedToken* tok); void h_pprint(FILE* stream, const HParsedToken* tok, int indent, int delta); HParser * h_name(const char *name, HParser *p); HParser * h_trace(FILE *file, const char*prefix,HParser *p); HParser * h_trace__m(HAllocator* mm__, FILE *file, const char*prefix,HParser *p); int h_compile(HParser* parser, HParserBackend backend, const void* params); int h_compile__m(HAllocator* mm__, HParser* parser, HParserBackend backend, const void* params); HBitWriter *h_bit_writer_new(HAllocator* mm__); void h_bit_writer_put(HBitWriter* w, uint64_t data, size_t nbits); const uint8_t* h_bit_writer_get_buffer(HBitWriter* w, size_t *len); void h_bit_writer_free(HBitWriter* w); HParsedToken *h_act_first(const HParseResult *p, void* userdata); HParsedToken *h_act_second(const HParseResult *p, void* userdata); HParsedToken *h_act_last(const HParseResult *p, void* userdata); HParsedToken *h_act_flatten(const HParseResult *p, void* userdata); HParsedToken *h_act_ignore(const HParseResult *p, void* userdata); HBenchmarkResults * h_benchmark(HParser* parser, HParserTestcase* testcases); HBenchmarkResults * h_benchmark__m(HAllocator* mm__, HParser* parser, HParserTestcase* testcases); void h_benchmark_report(FILE* stream, HBenchmarkResults* results); int h_allocate_token_type(const char* name); int h_get_token_type_number(const char* name); const char* h_get_token_type_name(int token_type);
the_stack_data/125141602.c
/* selection sort */ void selection_sort(int * arr, int n) { int min, pos, temp; for ( int i=0; i<n-1; i++ ) { min=arr[i]; for ( int j=i+1; j<n; j++ ) { if ( arr[j]<min ) { min=arr[j]; pos=j; } } temp=arr[i]; arr[i]=arr[pos]; arr[pos]=temp; } }
the_stack_data/139829.c
// File: 8.19-Tao.c // Author: TaoKY #include <stdio.h> #define SIZE 100000 char memoryPoll[SIZE]; char *pos = memoryPoll; // Well, @iBug is too angry at this problem... // In fact, K&R's book has the solution to the problem. // But Tan's ambiguous words really make the problem very confusing. void *new(int n); void free(void *p); int main(){ // nothing to do return 0; } void *new(int n){ if (n >= 0 && pos + n <= memoryPoll + SIZE){ char *res = pos; pos += n; return (void *)res; } else return NULL; } void free(void *p){ if ((char *)p >= memoryPoll && (char *)p < memoryPoll + SIZE) pos = (char *)p; }
the_stack_data/3264045.c
/* * Warning - this relies heavily on the TLI implementation in PTX 2.X and will * probably not work under PTX 4. * * Author: Tim Wright, Sequent Computer Systems Ltd., UK. * * Modified slightly to conform to the new internal interfaces - Wietse */ #ifndef lint static char sccsid[] = "@(#) tli-sequent.c 1.1 94/12/28 17:42:51"; #endif #ifdef TLI_SEQUENT /* System libraries. */ #include <sys/types.h> #include <sys/param.h> #include <sys/stat.h> #include <sys/tiuser.h> #include <sys/stream.h> #include <sys/stropts.h> #include <sys/tihdr.h> #include <sys/timod.h> #include <sys/socket.h> #include <netinet/in.h> #include <stdio.h> #include <syslog.h> #include <errno.h> #include <string.h> extern int errno; extern char *sys_errlist[]; extern int sys_nerr; extern int t_errno; extern char *t_errlist[]; extern int t_nerr; /* Local stuff. */ #include "tcpd.h" #include "tli-sequent.h" /* Forward declarations. */ static char *tli_error(); static void tli_sink(); /* tli_host - determine endpoint info */ int tli_host(request) struct request_info *request; { static struct sockaddr_in client; static struct sockaddr_in server; struct _ti_user *tli_state_ptr; union T_primitives *TSI_prim_ptr; struct strpeek peek; int len; /* * Use DNS and socket routines for name and address conversions. */ sock_methods(request); /* * Find out the client address using getpeerinaddr(). This call is the * TLI equivalent to getpeername() under Dynix/ptx. */ len = sizeof(client); t_sync(request->fd); if (getpeerinaddr(request->fd, &client, len) < 0) { tcpd_warn("can't get client address: %s", tli_error()); return; } request->client->sin = &client; /* Call TLI utility routine to get information on endpoint */ if ((tli_state_ptr = _t_checkfd(request->fd)) == NULL) return; if (tli_state_ptr->ti_servtype == T_CLTS) { /* UDP - may need to get address the hard way */ if (client.sin_addr.s_addr == 0) { /* The UDP endpoint is not connected so we didn't get the */ /* remote address - get it the hard way ! */ /* Look at the control part of the top message on the stream */ /* we don't want to remove it from the stream so we use I_PEEK */ peek.ctlbuf.maxlen = tli_state_ptr->ti_ctlsize; peek.ctlbuf.len = 0; peek.ctlbuf.buf = tli_state_ptr->ti_ctlbuf; /* Don't even look at the data */ peek.databuf.maxlen = -1; peek.databuf.len = 0; peek.databuf.buf = 0; peek.flags = 0; switch (ioctl(request->fd, I_PEEK, &peek)) { case -1: tcpd_warn("can't peek at endpoint: %s", tli_error()); return; case 0: /* No control part - we're hosed */ tcpd_warn("can't get UDP info: %s", tli_error()); return; default: /* FALL THROUGH */ ; } /* Can we even check the PRIM_type ? */ if (peek.ctlbuf.len < sizeof(long)) { tcpd_warn("UDP control info garbage"); return; } TSI_prim_ptr = (union T_primitives *) peek.ctlbuf.buf; if (TSI_prim_ptr->type != T_UNITDATA_IND) { tcpd_warn("wrong type for UDP control info"); return; } /* Validate returned unitdata indication packet */ if ((peek.ctlbuf.len < sizeof(struct T_unitdata_ind)) || ((TSI_prim_ptr->unitdata_ind.OPT_length != 0) && (peek.ctlbuf.len < TSI_prim_ptr->unitdata_ind.OPT_length + TSI_prim_ptr->unitdata_ind.OPT_offset))) { tcpd_warn("UDP control info garbaged"); return; } /* Extract the address */ memcpy(&client, peek.ctlbuf.buf + TSI_prim_ptr->unitdata_ind.SRC_offset, TSI_prim_ptr->unitdata_ind.SRC_length); } request->sink = tli_sink; } if (getmyinaddr(request->fd, &server, len) < 0) tcpd_warn("can't get local address: %s", tli_error()); else request->server->sin = &server; } /* tli_error - convert tli error number to text */ static char *tli_error() { static char buf[40]; if (t_errno != TSYSERR) { if (t_errno < 0 || t_errno >= t_nerr) { sprintf(buf, "Unknown TLI error %d", t_errno); return (buf); } else { return (t_errlist[t_errno]); } } else { if (errno < 0 || errno >= sys_nerr) { sprintf(buf, "Unknown UNIX error %d", errno); return (buf); } else { return (sys_errlist[errno]); } } } /* tli_sink - absorb unreceived datagram */ static void tli_sink(fd) int fd; { struct t_unitdata *unit; int flags; /* * Something went wrong. Absorb the datagram to keep inetd from looping. * Allocate storage for address, control and data. If that fails, sleep * for a couple of seconds in an attempt to keep inetd from looping too * fast. */ if ((unit = (struct t_unitdata *) t_alloc(fd, T_UNITDATA, T_ALL)) == 0) { tcpd_warn("t_alloc: %s", tli_error()); sleep(5); } else { (void) t_rcvudata(fd, unit, &flags); t_free((void *) unit, T_UNITDATA); } } #endif /* TLI_SEQUENT */
the_stack_data/95450821.c
#include <stdio.h> int main(void) /*(*/ { /*int n, int n2, int n3;*/ int n, n2, n3; n = 5; n2 = n * n; /*n3 = n2 * n2;*/ n3 = n2 * n; /*printf("n = %d, n squared = %d, n cubed = %d\n", n, n2, n3);*/ printf("n = %d, n squared = %d, n cubed = %d\n", n, n2, n3); return 0; /*)*/ }
the_stack_data/58452.c
#include <stdio.h> // 尼克彻斯定理 // 任何一个大于 2 的整数的立方都可以表示成一串连续奇数的和,这些奇数一定是要连续的 // // 首项: first = num*num-num+1 // 第n项: An = first + n*2 // 多项和: Sn = n*first + n*(n-1)*2/2 int main(){ int num,end; _Bool turn = 1; int an,sn=0; int i=0,g; int anlist[100]; printf("input: "); scanf("%d",&num); end = num*num*num; while( turn ){ an = (num*num-num+1) + i*2; sn += an; anlist[i++] = an; if( end == sn ){ break; } } if(i<=3){ printf("%d = %d + %d + %d",end,anlist[0],anlist[1],anlist[2]); } else if(i>3){ printf("%d = %d + %d ... + %d",end,anlist[0],anlist[1],anlist[i-1]); } return 0; }
the_stack_data/29826388.c
/* stringtest.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <malloc.h> #include <stdbool.h> void chartest(char *str, int i) { printf("Char: %c \n", str[i]); } void test(char *str) { printf("Char: %c \n", *str+3); } /* Token */ typedef struct { char *toktype ; char value[20]; } Token; Token *maketok(char *str, char val[20]) { Token *atok; atok = (Token *) malloc(sizeof(Token)); atok->toktype = str; memcpy(atok->value, val, 20); return atok; } void printtok(Token *tok) { printf("Token type: %s \n", tok->toktype) ; printf("Token value: %s \n", tok->value); } int main() { char *str = "012345678" ; chartest(str, 0); chartest(str, 4); test(str); char *str2 = "keyword" ; char arr[] = {"select"}; Token *t ; t = maketok(str2, arr); printtok(t); printf("arr[0] %c \n", arr[0]); printf("arr[1] %c \n", arr[1]); printf("arr[2] %c \n", arr[2]); free(t); return 0; }
the_stack_data/770253.c
#include<stdio.h> #include<stdlib.h> #include<math.h> #define MAXSIZE 254 #define DIMENTION 15 #define NUMOFFILE 100 #define FNAME_OUTPUT "./output001.txt" #define TEMP_NUM 11 #define MITI_NUM 21 typedef struct { char name[20]; char onso[50]; int flame; double mcepdata[MAXSIZE][DIMENTION]; } mcepdata_t; int main(void) { int h0, h, i, j, k; FILE *fp_temp, *fp_miti, *fp_output; mcepdata_t city_temp, city_miti; char ch0[200]; double d[MAXSIZE][MAXSIZE]; double g[MAXSIZE][MAXSIZE]; double tangokankyori[NUMOFFILE]; double tangokankyori_min; int num_matchfname = 0; int count = 0; printf("city%03dとcity%03dの認識実験を行います\n", TEMP_NUM, MITI_NUM); for(h0 = 0; h0 < NUMOFFILE; h0++) { sprintf(ch0, "./city%03d/city%03d_%03d.txt", TEMP_NUM, TEMP_NUM, h0 + 1); if((fp_temp = fopen(ch0, "r")) == NULL) { printf("temp file open error!\n"); exit(EXIT_FAILURE); } fgets(city_temp.name, sizeof(city_temp.name), fp_temp); fgets(city_temp.onso, sizeof(city_temp.onso), fp_temp); fgets(ch0, sizeof(ch0), fp_temp); city_temp.flame = atoi(ch0); for(i = 0; i < city_temp.flame; i++) { for(j = 0; j < DIMENTION; j++) { fscanf(fp_temp, "%lf", &city_temp.mcepdata[i][j]); } } for(h = 0; h < NUMOFFILE; h++) { sprintf(ch0, "./city%03d/city%03d_%03d.txt", MITI_NUM, MITI_NUM, h + 1); if((fp_miti = fopen(ch0, "r")) == NULL) { printf("miti file open error!!\n"); exit(EXIT_FAILURE); } fgets(city_miti.name, sizeof(city_miti.name), fp_miti); fgets(city_miti.onso, sizeof(city_miti.onso), fp_miti); fgets(ch0, sizeof(ch0), fp_miti); city_miti.flame = atoi(ch0); for(i = 0; i < city_miti.flame; i++) { for(j = 0; j < DIMENTION; i++) { fscanf(fp_miti, "%lf", &city_miti.mcepdata[i][j]); } } for(i = 0; i < city_temp.flame; i++) { for(j = 0; j < city_miti.flame; j++) { d[i][j] = 0; for(int k = 0; k < DIMENTION; k++) { d[i][j] += (city_temp.mcepdata[i][k] - city_miti.mcepdata[j][k]) * (city_temp.mcepdata[i][k] - city_miti.mcepdata[j][k]); } sqrtl(d[i][j]); } } g[0][0] = d[0][0]; for(i = 1; i < city_temp.flame; i++) { g[i][0] = g[i - 1][0] + d[i][0]; } for(j = 1; j < city_miti.flame; j++) { g[0][j] = g[0][j - 1] + d[0][j]; } for(i = 1; i < city_temp.flame; i++) { for(j = 1; j < city_miti.flame; j++) { double a = g[i][j - 1] + d[i][j]; double b = g[i - 1][j - 1] + 2 * d[i][j]; double c = g[i - 1][j] + d[i][j]; g[i][j] = a; if(b < g[i][j]) { g[i][j] = b; } if(c < g[i][j]) { g[i][j] = c; } } } tangokankyori[h] = g[city_temp.flame - 1][city_miti.flame - 1] / (city_temp.flame + city_miti.flame); fclose(fp_miti); } tangokankyori_min = tangokankyori[0]; num_matchfname = 0; for(h = 1; h < NUMOFFILE; h++) { if(tangokankyori_min > tangokankyori[h]) { tangokankyori_min = tangokankyori[h]; num_matchfname = h; } } fclose(fp_temp); if(num_matchfname == h0) { count++; } if(num_matchfname != h0) { printf("----------Result NOT Matching----------\n"); printf("city_temp : city%03d/city%03d_%03d.txt\n", TEMP_NUM, TEMP_NUM, h0 + 1); printf("city_miti : city%03d_city%03d_%03d.txt\n", MITI_NUM, MITI_NUM, num_matchfname + 1); printf("tangokankyori : %f\n", tangokankyori_min); } } sprintf(ch0, FNAME_OUTPUT); if((fp_output = fopen(ch0, "a")) == NULL) { printf("output file open error!!\n"); exit(EXIT_FAILURE); } fprintf(fp_output, "正解率%d%%です\n", count); printf("\nファイルを作成しました\n"); printf("正答率 %d%% です\n", count); fclose(fp_output); return 0; }
the_stack_data/17956.c
#include <stdio.h> #define N 10 void quicksort(int a[], int *low, int *high); int *split(int a[], int *low, int *high); int main(void) { int a[N], i; printf("Enter %d numbers to be sorted: ", N); for (i = 0; i < N; i++) scanf("%d", &a[i]); quicksort(a, a, a + N - 1); printf("In sorted order: "); for (i = 0; i < N; i++) printf("%d ", a[i]); printf("\n"); return 0; } void quicksort(int a[], int *low, int *high) { int *middle; if (low >= high) return; middle = split(a, low, high); quicksort(a, low, middle - 1); quicksort(a, middle + 1, high); } int *split(int a[], int *low, int *high) { int part_element = *low; for (;;) { while (low < high && part_element <= *high) high--; if (low >= high) break; *low++ = *high; while (low < high && *low <= part_element) low++; if (low >= high) break; *high-- = *low; } *high = part_element; return high; }
the_stack_data/496836.c
/*- * Copyright (c) 2012 Simon W. Moore * All rights reserved. * * This software was developed by SRI International and the University of * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 * ("CTSRD"), as part of the DARPA CRASH research programme. * * @BERI_LICENSE_HEADER_START@ * * Licensed to BERI Open Systems C.I.C. (BERI) under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. BERI licenses this * file to you under the BERI Hardware-Software License, Version 1.0 (the * "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.beri-open-systems.org/legal/license-1-0.txt * * Unless required by applicable law or agreed to in writing, Work distributed * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * @BERI_LICENSE_HEADER_END@ */ /***************************************************************************** * This program reads SREC format memory images and writes them to Intel * NOR flash memory. This has been tested on FreeBSD on the CHERI processor * for the Terasic DE4 FPGA board. *****************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <err.h> #include <stdbool.h> #include <sys/mman.h> #include <string.h> /***************************************************************************** * read data files *****************************************************************************/ static u_int8_t* read_data; static int read_data_len = -1; static int read_data_base_addr8b = -1; inline int hex2dec(int c) { if(c>='A') return c - 'A' + 10; else return c - '0'; } inline int twohex(int c0, int c1) { return hex2dec(c0)<<4 | hex2dec(c1); } void readsrec(char* fn, int savedata) { FILE* fp = fopen(fn,"r"); char c = 'S'; int format,len,addr; int nextaddr = -1; int lenmarker = 1024*1024; int j, sum; int b[256]; char line[600]; int linelen, linepos; if(savedata==true) printf("Reading from file %s\n",fn); else printf("Reading from file %s and not saving data\n",fn); if(fp==NULL) errx(1, "Failed to read %s", fn); read_data_base_addr8b = -1; read_data_len = 0; while(c=='S') { if(fgets(line, 600, fp) == NULL) { c = ' '; linelen = 0; } else { c = line[0]; linelen = strlen(line); } if((c=='S') && (linelen>8)) { format = line[1] - ((int) '0'); len = twohex(line[2], line[3]); // N.B. code would support format=1 but not tested so not enabled if(!((format==2) || (format==3))) errx(1, "SREC format %d not supported", format); // collect bytes for(j=0, linepos=4; (j<len) && (linepos<(linelen-1)) ; j++) { b[j] = twohex(line[linepos], line[linepos+1]); linepos += 2; } if(line[linepos]!='\n') errx(1, "End of line missing, e.g. due to wrong length (len=%1d)", len); // address according to format (big endian) for(j=addr=0; j<=format; j++) addr = (addr<<8) | b[j]; if(read_data_base_addr8b < 0) read_data_base_addr8b = addr; if((nextaddr>=0) && (addr!=nextaddr)) errx(1, "none contiguous SREC file"); nextaddr = addr+((len-1) - (format+1)); // calculate checksum including sum of checksum for(j=0, sum=len; j<len; j++) sum += b[j]; sum = (~sum) & 0xff; if(sum!=0) errx(1, "SREC checksum fail"); if(savedata==true) for(j=format+1; j<len-1; j++) { read_data[read_data_len] = b[j]; read_data_len++; } if(read_data_len > lenmarker) { printf("Read %1d MiB\n", lenmarker>>20); lenmarker += 1024*1024; } /* printf("c=%c, format=%1d, len=%2d, addr=0x%08x",c,format,len,addr); for(j=format+1; j<len-1; j++) printf(" %02x", b[j]); putchar('\n'); */ } } fclose(fp); } /*****************************************************************************/ static int flashfd; volatile static u_int16_t *flashmem16; inline u_int16_t byteswap(u_int16_t w) { return ((w>>8) & 0xff) | ((w & 0xff)<<8); } void flash_write(u_int64_t offset, u_int16_t d) { flashmem16[offset] = byteswap(d); } u_int16_t flash_read(u_int64_t offset) { return byteswap(flashmem16[offset]); } int flash_read_status(int offset) { flash_write(offset,0x70); return flash_read(offset); } void flash_clear_status(int offset) { flash_write(offset,0x50); } void flash_read_mode(int offset) { flash_write(offset,0xff); } void unlock_block_for_writes(int offset) { flash_write(offset,0x60); // lock block setup flash_write(offset,0xd0); // unlock block } void lock_block_to_prevent_writes(int offset) { flash_write(offset,0x60); // lock block setup flash_write(offset,0x01); // lock block } void single_write(int offset, int data) { int j; int status; unlock_block_for_writes(offset); flash_write(offset,0x40); // send write command flash_write(offset,data); status = flash_read_status(offset); for(j=0; ((status & 0x80)==0) && (j<0xfff); j++) status = flash_read_status(offset); if((status & 0x80)==0) warnx("ERROR on write - flash is busy even after 0x%x checks\n",j); status = flash_read_status(offset); if((status & (1<<3))!=0) warnx("Vpp voltage droop error during write, aborted, status=0x%02x\n", status); if((status & (3<<4))!=0) warnx("Command sequence error during write, aborted, status=0x%02x\n", status); if((status & (1<<1))!=0) warnx("Block locked during write process, aborted, status=0x%02x\n", status); if((status & (1<<5))!=0) warnx("write failed at offset 0x%08x, status=0x%02x\n", offset<<1, status); lock_block_to_prevent_writes(offset); flash_read_mode(offset); } void block_write(int addr16b, int* data) // assumes data is block of length 0x20 { int j, f, status; unlock_block_for_writes(addr16b); flash_write(addr16b,0xe8); // send block write command if((flash_read(addr16b) & 0x80)==0) warnx("block_write to flash failed - block write not supported by device?"); flash_write(addr16b,0x1f); // write 0x20 words into buffer for(j=0; j<0x20; j++) // write 32 words of data into buffer flash_write(addr16b+j,data[j]); flash_write(addr16b,0xd0); // confirm write status = flash_read(addr16b); for(j=0; ((status & 0x80)==0) && (j<0xfff); j++) status = flash_read(addr16b); if((status & 0x80)==0) warnx("ERROR on block-write - flash is busy even after 0x%x checks\n",j); status = flash_read_status(addr16b); if((status & (1<<3))!=0) warnx("Vpp voltage droop error during block-write, aborted, status=0x%02x\n", status); if((status & (3<<4))!=0) warnx("Command sequence error during block-write, aborted, status=0x%02x\n", status); if((status & (1<<1))!=0) warnx("Block locked during block-write process, aborted, status=0x%02x\n", status); if((status & (1<<5))!=0) warnx("Block-write failed at offset 0x%08x, status=0x%02x\n", addr16b<<1, status); lock_block_to_prevent_writes(addr16b); flash_read_mode(addr16b); /* // read check done at end so it doesn't need to be done here unless we're debugging for(j=0; j<0x20; j++) { f = flash_read(addr16b+j); if(f != data[j]) warnx("Block-write failed to write[0x%08x] 0x%04x, read back 0x%04x", (addr16b+j)<<1, data[j], f); } */ } void erase_block(int addr16b) { int j, status; unlock_block_for_writes(addr16b); flash_clear_status(addr16b); flash_write(addr16b,0x20); flash_write(addr16b,0xD0); status = flash_read(addr16b); for(j=0; ((status & 0x80)==0) && (j<10000000); j++) status = flash_read(addr16b); if((status & 0x80)==0) warnx("Error on erase - flash is busy even after %1d status checks, status=0x%02x\n", j, status); status = flash_read_status(addr16b); if((status & (1<<3))!=0) warnx("Vpp voltage droop error during erease, aborted, status=0x%02x\n", status); if((status & (3<<4))!=0) warnx("Command sequence error during erase, aborted, status=0x%02x\n", status); if((status & (1<<1))!=0) warnx("Block locked during erase process, aborted, status=0x%02x\n", status); if((status & (1<<5))!=0) warnx("Erase failed at addr16b 0x%08x, status=0x%02x\n", addr16b<<1, status); lock_block_to_prevent_writes(addr16b); flash_clear_status(addr16b); flash_read_mode(addr16b); flash_read_mode(addr16b); j = flash_read(addr16b); if(j!=0xffff) warnx("Erase appears to have happened but read back 0x%04x but expecting 0xffff",j); } void display_device_info() { int j; int r; printf("Flash device information:\n"); flash_write(0, 0x90); // write command printf(" manufacturer code: 0x%04x\n",flash_read(0x00)); printf(" device id code: 0x%04x\n",flash_read(0x01)); printf(" block lock config 0: 0x%04x\n",flash_read(0x02)); printf(" block lock config 1: 0x%04x\n",flash_read(0x03)); printf(" block lock config 2: 0x%04x\n",flash_read(0x04)); printf(" configuration register: 0x%04x\n",flash_read(0x05)); printf(" lock register 0: 0x%04x\n",flash_read(0x80)); printf(" lock register 1: 0x%04x\n",flash_read(0x89)); printf(" 64-bit factory program protection: 0x%04x 0x%04x 0x%04x 0x%04x\n" ,flash_read(0x84) ,flash_read(0x83) ,flash_read(0x82) ,flash_read(0x81)); printf(" 64-bit user program protection: 0x%04x 0x%04x 0x%04x 0x%04x\n" ,flash_read(0x88) ,flash_read(0x87) ,flash_read(0x86) ,flash_read(0x85)); printf(" 128-bit user program protection: 0x%04x 0x%04x 0x%04x 0x%04x\n" ,flash_read(0x88) ,flash_read(0x87) ,flash_read(0x86) ,flash_read(0x85)); for(j=0x84; j<=0x109; j+=8) { printf("128-bit user program prot. reg[0x%04x]:",(j-0x84)/8); for(r=7; r>0; r--) printf(" 0x%04x",flash_read((j+r))); putchar('\n'); } } int check_memory(int report) { int offset16b; for(offset16b = 0; offset16b < (read_data_len>>1); offset16b++) { int w = read_data[offset16b<<1] | (read_data[(offset16b<<1)+1]<<8); int addr16b = offset16b + (read_data_base_addr8b>>1); int f = flash_read(addr16b); if(w != f) { if(report) printf("memory check fail: addr=0x%08x from file: 0x%04x from flash: 0x%04x\n", addr16b<<1, w, f); return false; } } return true; } // erase blocks that need to be erased void erase_sweep(void) { int offset16b; int markpoint = 1024*1024 - 1; int mb = 0; printf("Beginning erase sweep\n"); for(offset16b = 0; offset16b<(read_data_len>>1); offset16b++) { int w = read_data[offset16b<<1] | (read_data[(offset16b<<1)+1]<<8); int addr16b = offset16b+(read_data_base_addr8b>>1); int f = flash_read(addr16b); if((w & f) != w) { erase_block(addr16b); if(flash_read(addr16b) != 0xffff) warnx( "Flash erase doesn't appear to have erased a block"); } if(offset16b>=markpoint) { mb++; markpoint += 1024*1024/2; printf("Erase sweep passed %d MiB\n",mb); } } } void write_sweep(void) { int offset16b; int markpoint = (1024*1024/2)-1; int mb = 0; printf("Beginning write sweep\n"); for(offset16b = 0; offset16b<(read_data_len>>1); ) { int addr16b = offset16b + (read_data_base_addr8b>>1); if(((addr16b & 0x1f) == 0) && ((offset16b+0x1f)<(read_data_len>>1))) { // write a block int w[32]; int j, correct; for(j=0, correct=true; (j<0x20); j++) { int k = (offset16b+j); w[j] = read_data[k<<1] | (read_data[(k<<1)+1]<<8); correct &= w[j] == flash_read(addr16b+j); } if(!correct) block_write(addr16b,w); offset16b += 0x20; } else { // do single writes int w = read_data[offset16b<<1] | (read_data[(offset16b<<1)+1]<<8); int f = flash_read(addr16b); if(w != f) single_write(addr16b, w); offset16b++; } if(offset16b>=markpoint) { mb++; markpoint += 1024*1024/2; printf("Write sweep passed %d MiB\n",mb); } } } int main(int argc, char *argv[]) { if(argc!=2) errx(0,"Usage: %s file.srec",argv[0]); flashfd = open("/dev/de4flash", O_RDWR | O_NONBLOCK); if(flashfd < 0) err(1, "open flash"); flashmem16 = mmap(NULL, 64*1024*1024, PROT_READ | PROT_WRITE, MAP_SHARED, flashfd, 0); if (flashmem16 == MAP_FAILED) err(1, "mmap flash"); display_device_info(); flash_read_mode(0); printf("flash status = 0x%02x\n", flash_read_status(0x20000)); flash_clear_status(0x20000); printf("flash status after clear = 0x%02x\n", flash_read_status(0x20000)); flash_read_mode(0); // could parse the file first to see what buffer size is needed but this is too slow // readsrec(argv[1], false); // hack - allocate more than enough memory to hold the data to be read read_data = (u_int8_t*) malloc(64*1024*1024 * sizeof(u_int8_t)); readsrec(argv[1], true); if(read_data_len<1) err(1, "readsrec - read no SREC data"); printf("srec file start address=0x%08x length=0x%08x\n", read_data_base_addr8b, read_data_len); if(check_memory(false) == true) printf("Memory already holds the right data - exiting...\n"); else { erase_sweep(); write_sweep(); if(check_memory(true) == true) printf("Flash writes complete\n"); else errx(1,"FAILED TO WRITE DATA CORRECTLY\n"); } return 0; }
the_stack_data/206392402.c
/** * @file * * @brief * * Copyright (c) 2013-2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The name of Atmel may not be used to endorse or promote products derived * from this software without specific prior written permission. * * 4. This software may only be redistributed and used in connection with an * Atmel microcontroller product. * * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * \asf_license_stop */ #if (defined ENABLE_TFA) || (defined TFA_BAT_MON) /* === INCLUDES ============================================================ */ #include <stdint.h> #include <string.h> #include <stdbool.h> #include <stdlib.h> #include "pal.h" #include "return_val.h" #include "tal.h" #include "ieee_const.h" #include "tal_constants.h" #include "at86rf232.h" #include "tal_internal.h" #include "tfa.h" /* === TYPES =============================================================== */ /* === MACROS ============================================================== */ /* Constant define for the ED scaling: register value at -35dBm */ #define CLIP_VALUE_REG (56) /* === GLOBALS ============================================================= */ #ifdef ENABLE_TFA /** * TFA PIB attribute to reduce the Rx sensitivity. * Represents the Rx sensitivity value in dBm; example: -52 */ static int8_t tfa_pib_rx_sens; #endif /* === PROTOTYPES ========================================================== */ #ifdef ENABLE_TFA static void init_tfa_pib(void); static void write_all_tfa_pibs_to_trx(void); #endif /* === IMPLEMENTATION ====================================================== */ #ifdef ENABLE_TFA /* * \brief Gets a TFA PIB attribute * * This function is called to retrieve the transceiver information base * attributes. * * \param[in] tfa_pib_attribute TAL infobase attribute ID * \param[out] value TFA infobase attribute value * * \return MAC_UNSUPPORTED_ATTRIBUTE if the TFA infobase attribute is not found * MAC_SUCCESS otherwise */ retval_t tfa_pib_get(tfa_pib_t tfa_pib_attribute, void *value) { switch (tfa_pib_attribute) { case TFA_PIB_RX_SENS: *(uint8_t *)value = tfa_pib_rx_sens; break; default: /* Invalid attribute id */ return MAC_UNSUPPORTED_ATTRIBUTE; } return MAC_SUCCESS; } #endif #ifdef ENABLE_TFA /* * \brief Sets a TFA PIB attribute * * This function is called to set the transceiver information base * attributes. * * \param[in] tfa_pib_attribute TFA infobase attribute ID * \param[in] value TFA infobase attribute value to be set * * \return MAC_UNSUPPORTED_ATTRIBUTE if the TFA info base attribute is not found * TAL_BUSY if the TAL is not in TAL_IDLE state. * MAC_SUCCESS if the attempt to set the PIB attribute was successful */ retval_t tfa_pib_set(tfa_pib_t tfa_pib_attribute, void *value) { switch (tfa_pib_attribute) { case TFA_PIB_RX_SENS: { uint8_t reg_val; tfa_pib_rx_sens = *((int8_t *)value); if (tfa_pib_rx_sens > -49) { reg_val = 0xF; tfa_pib_rx_sens = -49; } else if (tfa_pib_rx_sens <= RSSI_BASE_VAL_DBM) { reg_val = 0x0; tfa_pib_rx_sens = RSSI_BASE_VAL_DBM; } else { reg_val = ((tfa_pib_rx_sens - (RSSI_BASE_VAL_DBM)) / 3) + 1; } trx_bit_write(SR_RX_PDT_LEVEL, reg_val); } break; default: /* Invalid attribute id */ return MAC_UNSUPPORTED_ATTRIBUTE; } return MAC_SUCCESS; } #endif #ifdef ENABLE_TFA /* * \brief Initializes the TFA * * This function is called to initialize the TFA. * * \return MAC_SUCCESS if everything went correct; * FAILURE otherwise */ retval_t tfa_init(void) { init_tfa_pib(); write_all_tfa_pibs_to_trx(); return MAC_SUCCESS; } #endif #ifdef ENABLE_TFA /* * \brief Reset the TFA * * This function is called to reset the TFA. * * \param set_default_pib Defines whether PIB values need to be set * to its default values */ void tfa_reset(bool set_default_pib) { if (set_default_pib) { init_tfa_pib(); } write_all_tfa_pibs_to_trx(); } #endif #ifdef ENABLE_TFA /* * \brief Perform a CCA * * This function performs a CCA request. * * \return phy_enum_t PHY_IDLE or PHY_BUSY */ phy_enum_t tfa_cca_perform(void) { tal_trx_status_t trx_status; uint8_t cca_status; uint8_t cca_done; /* Ensure that trx is not in SLEEP for register access */ do { trx_status = set_trx_state(CMD_TRX_OFF); } while (trx_status != TRX_OFF); /* no interest in receiving frames while doing CCA */ trx_bit_write(SR_RX_PDT_DIS, RX_DISABLE); /* disable frame reception * indication */ /* Set trx to rx mode. */ do { trx_status = set_trx_state(CMD_RX_ON); } while (trx_status != RX_ON); /* Start CCA */ trx_bit_write(SR_CCA_REQUEST, CCA_START); /* wait until CCA is done */ pal_timer_delay(TAL_CONVERT_SYMBOLS_TO_US(CCA_DURATION_SYM)); do { /* poll until CCA is really done */ cca_done = trx_bit_read(SR_CCA_DONE); } while (cca_done != CCA_COMPLETED); set_trx_state(CMD_TRX_OFF); /* Check if channel was idle or busy. */ if (trx_bit_read(SR_CCA_STATUS) == CCA_CH_IDLE) { cca_status = PHY_IDLE; } else { cca_status = PHY_BUSY; } /* Enable frame reception again. */ trx_bit_write(SR_RX_PDT_DIS, RX_ENABLE); return (phy_enum_t)cca_status; } #endif #ifdef ENABLE_TFA /* * \brief Perform a single ED measurement * * \return ed_value Result of the measurement * If the build switch TRX_REG_RAW_VALUE is defined, the transceiver's * register value is returned. */ uint8_t tfa_ed_sample(void) { trx_irq_reason_t trx_irq_cause; uint8_t ed_value; tal_trx_status_t trx_status; /* Make sure that receiver is switched on. */ do { trx_status = set_trx_state(CMD_RX_ON); } while (trx_status != RX_ON); /* * Disable the transceiver interrupts to prevent frame reception * while performing ED scan. */ trx_bit_write(SR_RX_PDT_DIS, RX_DISABLE); /* Write dummy value to start measurement. */ trx_reg_write(RG_PHY_ED_LEVEL, 0xFF); /* Wait for ED measurement completion. */ pal_timer_delay(TAL_CONVERT_SYMBOLS_TO_US(ED_SAMPLE_DURATION_SYM)); do { trx_irq_cause = (trx_irq_reason_t)trx_reg_read(RG_IRQ_STATUS); } while ((trx_irq_cause & TRX_IRQ_4_CCA_ED_DONE) != TRX_IRQ_4_CCA_ED_DONE); /* Read the ED Value. */ ed_value = trx_reg_read(RG_PHY_ED_LEVEL); /* Clear IRQ register */ trx_reg_read(RG_IRQ_STATUS); /* Enable reception agian */ trx_bit_write(SR_RX_PDT_DIS, RX_ENABLE); /* Switch receiver off again */ set_trx_state(CMD_TRX_OFF); #ifndef TRX_REG_RAW_VALUE /* * Scale ED result. * Clip values to 0xFF if > -35dBm */ if (ed_value > CLIP_VALUE_REG) { ed_value = 0xFF; } else { ed_value = (uint8_t)(((uint16_t)ed_value * 0xFF) / CLIP_VALUE_REG); } #endif return ed_value; } #endif #if (defined ENABLE_TFA) || (defined TFA_BAT_MON) /* * \brief Get the transceiver's supply voltage * * \return mv Milli Volt; 0 if below threshold, 0xFFFF if above threshold */ uint16_t tfa_get_batmon_voltage(void) { tal_trx_status_t previous_trx_status; uint8_t vth_val; uint16_t mv = 1; /* 1 used as indicator flag */ bool range; previous_trx_status = tal_trx_status; if (tal_trx_status == TRX_SLEEP) { set_trx_state(CMD_TRX_OFF); } /* * Disable all trx interrupts. * This needs to be done AFTER the transceiver has been woken up. */ pal_trx_irq_dis(); /* Check if supply voltage is within upper or lower range. */ trx_bit_write(SR_BATMON_HR, BATMON_HR_HIGH); trx_bit_write(SR_BATMON_VTH, 0x00); pal_timer_delay(5); /* Wait until Batmon has been settled. */ /* Check if supply voltage is within lower range */ if (trx_bit_read(SR_BATMON_OK) == BATMON_NOT_VALID) { /* Lower range */ /* Check if supply voltage is below lower limit */ trx_bit_write(SR_BATMON_HR, BATMON_HR_LOW); pal_timer_delay(2); /* Wait until Batmon has been settled. */ if (trx_bit_read(SR_BATMON_OK) == BATMON_NOT_VALID) { /* below lower limit */ mv = SUPPLY_VOLTAGE_BELOW_LOWER_LIMIT; } range = LOW; } else { /* Higher range */ /* Check if supply voltage is above upper limit */ trx_bit_write(SR_BATMON_VTH, 0x0F); pal_timer_delay(5); /* Wait until Batmon has been settled. */ if (trx_bit_read(SR_BATMON_OK) == BATMON_VALID) { /* above upper limit */ mv = SUPPLY_VOLTAGE_ABOVE_UPPER_LIMIT; } range = HIGH; } /* Scan through the current range for the matching threshold. */ if (mv == 1) { /* 1 = indicates that voltage is within supported range **/ vth_val = 0x0F; for (uint8_t i = 0; i < 16; i++) { trx_bit_write(SR_BATMON_VTH, vth_val); pal_timer_delay(2); /* Wait until Batmon has been * settled. */ if (trx_bit_read(SR_BATMON_OK) == BATMON_VALID) { break; } vth_val--; } /* Calculate voltage based on register value and range. */ if (range == HIGH) { mv = 2550 + (75 * vth_val); } else { mv = 1700 + (50 * vth_val); } } trx_reg_read(RG_IRQ_STATUS); /* * Enable all trx interrupts. * This needs to be done BEFORE putting the transceiver back to slee. */ pal_trx_irq_en(); if (previous_trx_status == TRX_SLEEP) { set_trx_state(CMD_SLEEP); } return mv; } #endif /* #if (defined ENABLE_TFA) || (defined TFA_BAT_MON) */ #ifdef ENABLE_TFA /** * \brief Initialize the TFA PIB * * This function initializes the TFA information base attributes * to their default values. * \ingroup group_tfa */ static void init_tfa_pib(void) { tfa_pib_rx_sens = TFA_PIB_RX_SENS_DEF; } #endif #ifdef ENABLE_TFA /** * \brief Write all shadow PIB variables to the transceiver * * This function writes all shadow PIB variables to the transceiver. * It is assumed that the radio does not sleep. * \ingroup group_tfa */ static void write_all_tfa_pibs_to_trx(void) { tfa_pib_set(TFA_PIB_RX_SENS, (void *)&tfa_pib_rx_sens); } #endif #ifdef ENABLE_TFA /* * \brief Starts continuous transmission on current channel * * \param tx_mode Mode of continuous transmission (CW or PRBS) * \param random_content Use random content if true */ void tfa_continuous_tx_start(continuous_tx_mode_t tx_mode, bool random_content) { uint8_t txcwdata[128]; trx_bit_write(SR_TX_AUTO_CRC_ON, TX_AUTO_CRC_DISABLE); trx_reg_write(RG_TRX_STATE, CMD_TRX_OFF); trx_bit_write(SR_TST_CTRL_DIG, TST_CONT_TX); /* Here: use 2MBPS mode for PSD measurements. * Omit the two following lines, if 250k mode is desired for PRBS mode. **/ trx_reg_write(RG_TRX_CTRL_2, 0x03); trx_reg_write(RG_RX_CTRL, 0x37); if (tx_mode == CW_MODE) { txcwdata[0] = 1; /* length */ /* Step 12 - frame buffer write access */ txcwdata[1] = 0x00; /* f=fch-0.5 MHz; set value to 0xFF for * f=fch+0.5MHz */ trx_frame_write(txcwdata, 2); } else { /* PRBS mode */ txcwdata[0] = 127; /* = max length */ for (uint8_t i = 1; i < 128; i++) { if (random_content) { txcwdata[i] = (uint8_t)rand(); } else { txcwdata[i] = 0; } } trx_frame_write(txcwdata, 128); } trx_reg_write(RG_PART_NUM, 0x54); trx_reg_write(RG_PART_NUM, 0x46); set_trx_state(CMD_PLL_ON); TRX_SLP_TR_HIGH(); TRX_SLP_TR_LOW(); } #endif #ifdef ENABLE_TFA /* * \brief Stops continuous transmission */ void tfa_continuous_tx_stop(void) { tal_reset(false); } #endif #endif /* #if (defined ENABLE_TFA) || (defined TFA_BAT_MON) */ /* EOF */
the_stack_data/20449278.c
#include<unistd.h> void mx_printchar(char c){ write(1, &c, 1); }
the_stack_data/1028251.c
#include <stdio.h> #include <stdlib.h> long factorial(int n) { if(n == 0) { // exit condition return 1; } else { // recursion return n * factorial(n-1); } } long iterative_factorial(int n) { int i = 1; long result = 1; while(i <= n) { result *= i; // result = result * i i++; } return result; } long tail_fact(int n, int iterator, long result) { int i = iterator; long res = result; if(i <= n) { res *= i; i++; return tail_fact(n, i, res); } return res; } int main() { int a; printf("Insert the number you want to evaluate the factorial of: "); scanf("%d", &a); long result = factorial(a); long iterRes = iterative_factorial(a); long tailRes = tail_fact(a, 1, 1); printf("The factorial of %d is %ld\n", a, result); printf("The factorial of %d is %ld\n", a, iterRes); printf("The factorial of %d is %ld\n", a, tailRes); return 0; } // cd recursion/math-es // gcc -o fact factorial.c && ./fact /* Evaluates the factorial of a given number. The return type of the funcions is 'long' since the result could be very huge. While the user input is an int, since it could be very difficult to evaluate the factorial of a 'long' number. */
the_stack_data/18889083.c
/* Exercise 1.23 * * Program to remove comments from a C Program. * * Program should echo quotes and character constants properly * C comments do not nest * */ #include<stdio.h> void rcomment(int c); void incomment(void); void echo_quote(int c); int main(void) { int c,d; printf(" To Check /* Quoted String */ \n"); while((c=getchar())!=EOF) rcomment(c); return 0; } void rcomment(int c) { int d; if( c == '/') { if((d=getchar())=='*') incomment(); else if( d == '/') { putchar(c); rcomment(d); } else { putchar(c); putchar(d); } } else if( c == '\''|| c == '"') echo_quote(c); else putchar(c); } void incomment() { int c,d; c = getchar(); d = getchar(); while(c!='*' || d !='/') { c =d; d = getchar(); } } void echo_quote(int c) { int d; putchar(c); while((d=getchar())!=c) { putchar(d); if(d == '\\') putchar(getchar()); } putchar(d); }
the_stack_data/18940.c
#include <stdio.h> #include <string.h> #include <stddef.h> #include <stdlib.h> #define STUDENT 5 #define LOCATE 30 main() { int error=0; int i; char name_locater[LOCATE]; char stuname[STUDENT][LOCATE] = { "John Smith", "Paul Walker", "Vin Diesel", "Cian Healy", "Derek Higgins"}; printf("Enter surname of the student are you looking for:\n"); scanf("%29s", name_locater); for (i = 0; i < STUDENT; i++) { if (strstr(stuname[i], name_locater) != NULL)//searching for string that is the same as entered { printf("Found %s in our student records\n", stuname[i]); error=1; }//end if }//end for if(error==0) { printf("No name found try somewhere else"); }//end if printing error message flushall(); getchar(); }//end main
the_stack_data/90644.c
/* ACM 324 Factorial Frequencies * mythnc * 2011/11/18 09:13:32 * run time: 0.012 */ #include <stdio.h> #define MAXD 781 void init(int *, int); int mul(int *, int); void countdec(int *, int, int *); void print(int, int *); int main(void) { int n, count; int seq[MAXD]; int dec[10]; while (scanf("%d", &n) && n != 0) { init(seq, MAXD); init(dec, 10); count = mul(seq, n); countdec(seq, count, dec); print(n, dec); } return 0; } /* init: initialized s to zero */ void init(int *s, int n) { int i; for (i = 0; i < n; i++) s[i] = 0; } /* mul: calculate n!, * return its digit number */ int mul(int *s, int n) { int i, j; for (s[0] = 1, i = 2; i < n + 1; i++) { for (j = 0; j < MAXD; j++) s[j] *= i; /* carry */ for (j = 0; j < MAXD; j++) if (s[j] > 9) { s[j + 1] += s[j] / 10; s[j] %= 10; } } for (i = MAXD - 1; s[i] == 0; i--) ; return i + 1; } /* countdec: count 0~9 times */ void countdec(int *s, int n, int *d) { int i; for (i = 0; i < n; i++) d[s[i]]++; } /* print: print out result */ void print(int n, int *d) { int i; printf("%d! --\n", n); for (i = 0; i < 10; i++) { if (i == 5) printf("\n"); if (i != 0 && i != 5) printf(" "); printf(" (%d)%5d", i, d[i]); } printf("\n"); }
the_stack_data/676230.c
#include <unistd.h> char *ft_strcpy(char *dest, char *src) { int s; s = 0; while (src[s] != '\0') { dest[s] = src[s]; s++; } dest[s] = '\0'; return (dest); }
the_stack_data/36075832.c
#if defined(__linux__) #include <stddef.h> #include <string.h> // NOTE!! This file must be compiled with gcc lto disabled // using memcpy adds a dependency to glibc 2.14. instead, we want to depend on glibc 2.2.5 // to use this, add -Wl,--wrap=memcpy when linking with gcc. this will tell gcc to use __wrap_memcpy instead of memcpy // -flto does not seem to work with this hack. must disable when compiling this source file void* __wrap_memcpy(void* restrict to, const void* restrict from, size_t size); __asm__(".symver memcpy, memcpy@GLIBC_2.2.5"); void* __attribute__((used)) __wrap_memcpy(void* restrict to, const void* restrict from, size_t size) { return memcpy(to, from, size); } #else // this is here to get rid of a warning for "an empty translation unit" typedef int compilerWarningFix; #endif
the_stack_data/57444.c
#include <stdio.h> #include <stdlib.h> int main() { int days, qtdDaysWithTempLowerThenAverage; days = 365; float temperatureVector[days]; float higherTemperature, lowerTemperature, averageTemperature, sum; for(int i = 0; i < days; i++) { printf("Type the temperature of the day: "); scanf("%f",&temperatureVector[i]); if(i == 0) { higherTemperature = temperatureVector[i]; lowerTemperature = temperatureVector[i]; sum = temperatureVector[i]; } else { if(temperatureVector[i] > higherTemperature) { higherTemperature = temperatureVector[i]; } if(temperatureVector[i] < lowerTemperature) { lowerTemperature = temperatureVector[i]; } sum = sum + temperatureVector[i]; } } averageTemperature = sum / days; for(int i = 0; i < days; i++) { if(temperatureVector[i] < averageTemperature) { qtdDaysWithTempLowerThenAverage = qtdDaysWithTempLowerThenAverage + 1; } } printf("\nLower temperature of the year: %f \n", lowerTemperature); printf("Higher temperature of the year: %f \n", higherTemperature); printf("Average temperature of the year: %f \n", averageTemperature); printf("Number of Days with temperature lower then average: %i \n", qtdDaysWithTempLowerThenAverage); }
the_stack_data/70302.c
/*** * This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License. * When used, please cite the following article(s): V. Mrazek, S. S. Sarwar, L. Sekanina, Z. Vasicek and K. Roy, "Design of power-efficient approximate multipliers for approximate artificial neural networks," 2016 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Austin, TX, 2016, pp. 1-7. doi: 10.1145/2966986.2967021 * This file contains a circuit from a sub-set of pareto optimal circuits with respect to the pwr and ep parameters ***/ // MAE% = 0.10 % // MAE = 4294 // WCE% = 0.20 % // WCE = 8369 // WCRE% = 220.00 % // EP% = 98.28 % // MRE% = 1.84 % // MSE = 28977.591e3 // PDK45_PWR = 0.834 mW // PDK45_AREA = 1222.5 um2 // PDK45_DELAY = 2.08 ns #include <stdint.h> #include <stdlib.h> uint64_t mul11u_0AG(uint64_t a, uint64_t b) { int wa[11]; int wb[11]; uint64_t y = 0; wa[0] = (a >> 0) & 0x01; wb[0] = (b >> 0) & 0x01; wa[1] = (a >> 1) & 0x01; wb[1] = (b >> 1) & 0x01; wa[2] = (a >> 2) & 0x01; wb[2] = (b >> 2) & 0x01; wa[3] = (a >> 3) & 0x01; wb[3] = (b >> 3) & 0x01; wa[4] = (a >> 4) & 0x01; wb[4] = (b >> 4) & 0x01; wa[5] = (a >> 5) & 0x01; wb[5] = (b >> 5) & 0x01; wa[6] = (a >> 6) & 0x01; wb[6] = (b >> 6) & 0x01; wa[7] = (a >> 7) & 0x01; wb[7] = (b >> 7) & 0x01; wa[8] = (a >> 8) & 0x01; wb[8] = (b >> 8) & 0x01; wa[9] = (a >> 9) & 0x01; wb[9] = (b >> 9) & 0x01; wa[10] = (a >> 10) & 0x01; wb[10] = (b >> 10) & 0x01; int sig_22 = wa[9] & wb[4]; int sig_27 = ~(wa[1] | wb[0]); int sig_28 = wa[6] & wb[0]; int sig_29 = wa[7] & wb[0]; int sig_30 = wa[8] & wb[0]; int sig_31 = wa[9] & wb[0]; int sig_32 = wa[10] & wb[0]; int sig_37 = wa[4] & wb[1]; int sig_38 = wa[5] & wb[1]; int sig_39 = wa[6] & wb[1]; int sig_40 = wa[7] & wb[1]; int sig_41 = wa[8] & wb[1]; int sig_42 = wa[9] & wb[1]; int sig_43 = wa[10] & wb[1]; int sig_52 = wb[10] ^ wa[8]; int sig_53 = sig_27 & sig_37; int sig_54 = sig_28 ^ sig_38; int sig_55 = sig_28 & sig_38; int sig_56 = sig_29 ^ sig_39; int sig_57 = sig_29 & sig_39; int sig_58 = sig_30 ^ sig_40; int sig_59 = sig_30 & sig_40; int sig_60 = sig_31 ^ sig_41; int sig_61 = sig_31 & sig_41; int sig_62 = sig_32 ^ sig_42; int sig_63 = wb[1] & wb[3]; int sig_67 = wa[3] & wa[8]; int sig_68 = wa[4] & wb[2]; int sig_69 = wa[5] & wb[2]; int sig_70 = wa[6] & wb[2]; int sig_71 = wa[7] & wb[2]; int sig_72 = wa[8] & wb[2]; int sig_73 = wa[9] & wb[2]; int sig_74 = wa[10] & wb[2]; int sig_91 = sig_52 & sig_67; int sig_94 = sig_91 & wb[0]; int sig_95 = sig_54 ^ sig_68; int sig_96 = sig_54 & sig_68; int sig_98 = sig_95 ^ sig_53; int sig_99 = sig_96; int sig_100 = sig_56 ^ sig_69; int sig_101 = sig_56 & sig_69; int sig_102 = sig_100 & sig_55; int sig_103 = sig_100 ^ sig_55; int sig_104 = sig_101 | sig_102; int sig_105 = sig_58 ^ sig_70; int sig_106 = sig_58 & sig_70; int sig_107 = sig_105 & sig_57; int sig_108 = sig_105 ^ sig_57; int sig_109 = sig_106 | sig_107; int sig_110 = sig_60 ^ sig_71; int sig_111 = sig_60 & sig_71; int sig_112 = wa[10] & sig_59; int sig_113 = sig_110 ^ sig_59; int sig_114 = sig_111 ^ sig_112; int sig_115 = sig_62 ^ sig_72; int sig_116 = sig_62 & sig_72; int sig_117 = sig_115 & sig_61; int sig_118 = sig_115 ^ sig_61; int sig_119 = sig_116 | sig_117; int sig_120 = sig_43 ^ sig_73; int sig_123 = sig_120 & sig_63; int sig_128 = wa[3] & wb[3]; int sig_129 = wa[4] & wb[3]; int sig_130 = wa[5] & wb[3]; int sig_131 = wa[6] & wb[3]; int sig_132 = wa[7] & wb[3]; int sig_133 = wa[8] & wb[3]; int sig_134 = wa[9] & wb[3]; int sig_135 = wa[10] & wb[3]; int sig_149 = wa[4] ^ wb[2]; int sig_151 = sig_98 & sig_128; int sig_152 = sig_98 & sig_128; int sig_154 = sig_151 ^ sig_94; int sig_155 = sig_152; int sig_156 = sig_103 ^ sig_129; int sig_157 = sig_103 & sig_129; int sig_158 = sig_156 & sig_99; int sig_159 = sig_156 ^ sig_99; int sig_160 = sig_157 ^ sig_158; int sig_161 = sig_108 ^ sig_130; int sig_162 = sig_108 & sig_130; int sig_163 = sig_161 & sig_104; int sig_164 = sig_161 ^ sig_104; int sig_165 = sig_162 | sig_163; int sig_166 = sig_113 ^ sig_131; int sig_167 = sig_113 & sig_131; int sig_168 = sig_166 & sig_109; int sig_169 = sig_166 ^ sig_109; int sig_170 = sig_167 | sig_168; int sig_171 = sig_118 ^ sig_132; int sig_172 = sig_118 & sig_132; int sig_173 = wb[3] & sig_114; int sig_174 = sig_171 ^ sig_114; int sig_175 = sig_172 | sig_173; int sig_176 = sig_123 ^ sig_133; int sig_177 = sig_123 & sig_133; int sig_178 = sig_176 & sig_119; int sig_179 = sig_176 ^ sig_119; int sig_180 = sig_177 | sig_178; int sig_181 = sig_74 ^ sig_134; int sig_182 = sig_74 & sig_134; int sig_184 = sig_181; int sig_185 = sig_182; int sig_187 = wa[1] & wb[4]; int sig_188 = wa[2] & wb[4]; int sig_189 = wa[3] & wb[4]; int sig_190 = wa[4] & wb[4]; int sig_191 = wa[5] & wb[4]; int sig_192 = wa[6] & wb[4]; int sig_193 = wa[7] & wb[4]; int sig_194 = wa[8] & wb[4]; int sig_195 = wa[9] & wb[4]; int sig_196 = wa[10] & wb[4]; int sig_203 = sig_149 & sig_187; int sig_205 = wa[0] & wa[0]; int sig_206 = sig_203; int sig_207 = sig_154 ^ sig_188; int sig_208 = sig_154 & sig_188; int sig_210 = sig_207; int sig_211 = sig_208; int sig_212 = sig_159 ^ sig_189; int sig_213 = sig_159 & sig_189; int sig_215 = sig_212 ^ sig_155; int sig_216 = sig_213; int sig_217 = sig_164 ^ sig_190; int sig_218 = sig_164 & sig_190; int sig_219 = sig_217 & sig_160; int sig_220 = sig_217 ^ sig_160; int sig_221 = sig_218 ^ sig_219; int sig_222 = sig_169 ^ sig_191; int sig_223 = sig_169 & sig_191; int sig_224 = sig_222 & sig_165; int sig_225 = sig_222 ^ sig_165; int sig_226 = sig_223 | sig_224; int sig_227 = sig_174 ^ sig_192; int sig_228 = sig_174 & sig_192; int sig_229 = sig_227 & sig_170; int sig_230 = sig_227 ^ sig_170; int sig_231 = sig_228 ^ sig_229; int sig_232 = sig_179 ^ sig_193; int sig_233 = sig_179 & sig_193; int sig_234 = sig_232 & sig_175; int sig_235 = sig_232 ^ sig_175; int sig_236 = sig_233 | sig_234; int sig_237 = sig_184 | sig_194; int sig_238 = sig_184 & wa[1]; int sig_239 = sig_237 | sig_180; int sig_240 = sig_237 ^ sig_180; int sig_241 = sig_238 | sig_239; int sig_242 = sig_135 ^ sig_195; int sig_243 = sig_135 & sig_195; int sig_244 = wb[2] & sig_185; int sig_245 = sig_242 ^ sig_185; int sig_246 = sig_243 | sig_244; int sig_248 = wa[1] & wb[5]; int sig_249 = wa[2] & wb[5]; int sig_250 = wa[3] & wb[5]; int sig_251 = wa[4] & wb[5]; int sig_252 = wa[5] & wb[5]; int sig_253 = wa[6] & wb[5]; int sig_254 = wa[7] & wb[5]; int sig_255 = wa[8] & wb[5]; int sig_256 = wa[9] & wb[5]; int sig_257 = wa[10] & wb[5]; int sig_259 = sig_205; int sig_260 = wa[0] ^ wb[10]; int sig_262 = sig_259 | sig_260; int sig_263 = sig_210 ^ sig_248; int sig_264 = sig_210 & sig_248; int sig_265 = sig_263 & sig_206; int sig_266 = sig_263 ^ sig_206; int sig_267 = sig_264 | sig_265; int sig_268 = sig_215 ^ sig_249; int sig_269 = sig_215 & sig_249; int sig_271 = sig_268 ^ sig_211; int sig_272 = sig_269; int sig_273 = sig_220 ^ sig_250; int sig_274 = sig_220 & sig_250; int sig_275 = sig_273 & sig_216; int sig_276 = sig_273 ^ sig_216; int sig_277 = sig_274 ^ sig_275; int sig_278 = sig_225 ^ sig_251; int sig_279 = sig_225 & sig_251; int sig_280 = sig_278 & sig_221; int sig_281 = sig_278 ^ sig_221; int sig_282 = sig_279 | sig_280; int sig_283 = sig_230 ^ sig_252; int sig_284 = sig_230 & sig_252; int sig_285 = sig_283 & sig_226; int sig_286 = sig_283 ^ sig_226; int sig_287 = sig_284 ^ sig_285; int sig_288 = sig_235 ^ sig_253; int sig_289 = sig_235 & sig_253; int sig_290 = sig_288 & sig_231; int sig_291 = sig_288 ^ sig_231; int sig_292 = sig_289 | sig_290; int sig_293 = sig_240 ^ sig_254; int sig_294 = wa[7] & sig_254; int sig_295 = sig_293 & sig_236; int sig_296 = sig_293 ^ sig_236; int sig_297 = sig_294 | sig_295; int sig_298 = sig_245 ^ sig_255; int sig_299 = sig_245 & sig_255; int sig_300 = sig_298 & sig_241; int sig_301 = sig_298 ^ sig_241; int sig_302 = sig_299 ^ sig_300; int sig_303 = sig_196 ^ sig_256; int sig_304 = sig_196 & sig_256; int sig_305 = sig_303 & sig_246; int sig_306 = sig_303 ^ sig_246; int sig_307 = sig_304 | sig_305; int sig_308 = wa[0] & wb[6]; int sig_309 = wa[1] & wb[6]; int sig_310 = wa[2] & wb[6]; int sig_311 = wa[3] & wb[6]; int sig_312 = wa[4] & wb[6]; int sig_313 = wa[5] & wb[6]; int sig_314 = wa[6] & wb[6]; int sig_315 = wa[7] & wb[6]; int sig_316 = wa[8] & wb[6]; int sig_317 = wa[9] & wb[6]; int sig_318 = wa[10] & wb[6]; int sig_319 = sig_266 ^ sig_308; int sig_320 = sig_266 ^ sig_308; int sig_321 = sig_319 & sig_262; int sig_322 = sig_319 & wb[10]; int sig_323 = sig_320 ^ sig_321; int sig_324 = sig_271 ^ sig_309; int sig_325 = sig_271 & sig_309; int sig_326 = sig_324 & sig_267; int sig_327 = sig_324 ^ sig_267; int sig_328 = sig_325 | sig_326; int sig_329 = sig_276 ^ sig_310; int sig_330 = sig_276 & sig_310; int sig_332 = sig_329 ^ sig_272; int sig_333 = sig_330; int sig_334 = sig_281 ^ sig_311; int sig_335 = sig_281 & sig_311; int sig_336 = sig_334 & sig_277; int sig_337 = sig_334 ^ sig_277; int sig_338 = sig_335 | sig_336; int sig_339 = sig_286 ^ sig_312; int sig_340 = sig_286 & sig_312; int sig_341 = sig_339 & sig_282; int sig_342 = sig_339 ^ sig_282; int sig_343 = sig_340 | sig_341; int sig_344 = sig_291 ^ sig_313; int sig_345 = sig_291 & sig_313; int sig_346 = sig_344 & sig_287; int sig_347 = sig_344 ^ sig_287; int sig_348 = sig_345 | sig_346; int sig_349 = sig_296 ^ sig_314; int sig_350 = sig_296 & sig_314; int sig_351 = sig_349 & sig_292; int sig_352 = sig_349 ^ sig_292; int sig_353 = sig_350 | sig_351; int sig_354 = sig_301 ^ sig_315; int sig_355 = sig_301 & sig_315; int sig_356 = sig_354 & sig_297; int sig_357 = sig_354 ^ sig_297; int sig_358 = sig_355 | sig_356; int sig_359 = sig_306 ^ sig_316; int sig_360 = sig_306 & sig_316; int sig_361 = sig_359 & sig_302; int sig_362 = sig_359 ^ sig_302; int sig_363 = sig_360 ^ sig_361; int sig_364 = sig_257 ^ sig_317; int sig_365 = sig_257 & sig_317; int sig_366 = sig_364 & sig_307; int sig_367 = sig_364 ^ sig_307; int sig_368 = sig_365 | sig_366; int sig_369 = wa[0] & wb[6]; int sig_370 = wa[1] & wb[7]; int sig_371 = wa[2] & wb[7]; int sig_372 = wa[3] & wb[7]; int sig_373 = wa[4] & wb[7]; int sig_374 = wa[5] & wb[7]; int sig_375 = wa[6] & wb[7]; int sig_376 = wa[7] & wb[7]; int sig_377 = wa[8] & wb[7]; int sig_378 = wa[9] & wb[7]; int sig_379 = wa[10] & wb[7]; int sig_380 = sig_327 ^ sig_369; int sig_381 = sig_327 & sig_369; int sig_382 = sig_380 & sig_323; int sig_383 = sig_380 ^ sig_323; int sig_384 = sig_381 | sig_382; int sig_385 = sig_332 ^ sig_370; int sig_386 = sig_332 & sig_370; int sig_387 = sig_385 & sig_328; int sig_388 = sig_385 ^ sig_328; int sig_389 = sig_386 | sig_387; int sig_390 = sig_337 ^ sig_371; int sig_391 = sig_337 & sig_371; int sig_392 = sig_390 & sig_333; int sig_393 = sig_390 ^ sig_333; int sig_394 = sig_391 | sig_392; int sig_395 = sig_342 ^ sig_372; int sig_396 = sig_342 & sig_372; int sig_397 = sig_395 & sig_338; int sig_398 = sig_395 ^ sig_338; int sig_399 = sig_396 | sig_397; int sig_400 = sig_347 ^ sig_373; int sig_401 = sig_347 & sig_373; int sig_402 = sig_400 & sig_343; int sig_403 = sig_400 ^ sig_343; int sig_404 = sig_401 ^ sig_402; int sig_405 = sig_352 ^ sig_374; int sig_406 = sig_352 & sig_374; int sig_407 = sig_405 & sig_348; int sig_408 = sig_405 ^ sig_348; int sig_409 = sig_406 | sig_407; int sig_410 = sig_357 ^ sig_375; int sig_411 = sig_357 & sig_375; int sig_412 = sig_410 & sig_353; int sig_413 = sig_410 ^ sig_353; int sig_414 = sig_411 | sig_412; int sig_415 = sig_362 ^ sig_376; int sig_416 = sig_362 & sig_376; int sig_417 = sig_415 & sig_358; int sig_418 = sig_415 ^ sig_358; int sig_419 = sig_416 ^ sig_417; int sig_420 = sig_367 ^ sig_377; int sig_421 = sig_367 & sig_377; int sig_422 = sig_420 & sig_363; int sig_423 = sig_420 ^ sig_363; int sig_424 = sig_421 ^ sig_422; int sig_425 = sig_318 ^ sig_378; int sig_426 = sig_318 & sig_378; int sig_427 = sig_425 & sig_368; int sig_428 = sig_425 ^ sig_368; int sig_429 = sig_426 | sig_427; int sig_430 = wa[0] & wb[8]; int sig_431 = wa[1] & wb[8]; int sig_432 = wa[2] & wb[8]; int sig_433 = wa[3] & wb[8]; int sig_434 = wa[4] & wb[8]; int sig_435 = wa[5] & wb[8]; int sig_436 = wa[6] & wb[8]; int sig_437 = wa[7] & wb[8]; int sig_438 = wa[8] & wb[8]; int sig_439 = wa[9] & wb[8]; int sig_440 = wa[10] & wb[8]; int sig_441 = sig_388 ^ sig_430; int sig_442 = sig_388 & sig_430; int sig_443 = sig_441 & sig_384; int sig_444 = sig_441 ^ sig_384; int sig_445 = sig_442 ^ sig_443; int sig_446 = sig_393 ^ sig_431; int sig_447 = sig_393 & sig_431; int sig_448 = sig_446 & sig_389; int sig_449 = sig_446 ^ sig_389; int sig_450 = sig_447 ^ sig_448; int sig_451 = sig_398 ^ sig_432; int sig_452 = sig_398 & sig_432; int sig_453 = sig_451 & sig_394; int sig_454 = sig_451 ^ sig_394; int sig_455 = sig_452 | sig_453; int sig_456 = sig_403 ^ sig_433; int sig_457 = sig_403 & sig_433; int sig_458 = sig_456 & sig_399; int sig_459 = sig_456 ^ sig_399; int sig_460 = sig_457 | sig_458; int sig_461 = sig_408 ^ sig_434; int sig_462 = sig_408 & sig_434; int sig_463 = sig_461 & sig_404; int sig_464 = sig_461 ^ sig_404; int sig_465 = sig_462 | sig_463; int sig_466 = sig_413 ^ sig_435; int sig_467 = sig_413 & sig_435; int sig_468 = sig_466 & sig_409; int sig_469 = sig_466 ^ sig_409; int sig_470 = sig_467 | sig_468; int sig_471 = sig_418 ^ sig_436; int sig_472 = sig_418 & sig_436; int sig_473 = sig_471 & sig_414; int sig_474 = sig_471 ^ sig_414; int sig_475 = sig_472 | sig_473; int sig_476 = sig_423 ^ sig_437; int sig_477 = sig_423 & sig_437; int sig_478 = sig_476 & sig_419; int sig_479 = sig_476 ^ sig_419; int sig_480 = sig_477 | sig_478; int sig_481 = sig_428 ^ sig_438; int sig_482 = sig_428 & sig_438; int sig_483 = sig_481 & sig_424; int sig_484 = sig_481 ^ sig_424; int sig_485 = sig_482 | sig_483; int sig_486 = sig_379 ^ sig_439; int sig_487 = sig_379 & sig_439; int sig_488 = sig_486 & sig_429; int sig_489 = sig_486 ^ sig_429; int sig_490 = sig_487 | sig_488; int sig_491 = wa[0] & wb[9]; int sig_492 = wa[1] & wb[9]; int sig_493 = wa[2] & wb[9]; int sig_494 = wa[3] & wb[9]; int sig_495 = wa[4] & wb[9]; int sig_496 = wa[5] & wb[9]; int sig_497 = wa[6] & wb[9]; int sig_498 = wa[7] & wb[9]; int sig_499 = wa[8] & wb[9]; int sig_500 = wa[9] & wb[9]; int sig_501 = wa[10] & wb[9]; int sig_502 = sig_449 ^ sig_491; int sig_503 = sig_449 & sig_491; int sig_504 = sig_502 & sig_445; int sig_505 = sig_502 ^ sig_445; int sig_506 = sig_503 ^ sig_504; int sig_507 = sig_454 ^ sig_492; int sig_508 = sig_454 & sig_492; int sig_509 = sig_507 & sig_450; int sig_510 = sig_507 ^ sig_450; int sig_511 = sig_508 ^ sig_509; int sig_512 = sig_459 ^ sig_493; int sig_513 = sig_459 & sig_493; int sig_514 = sig_512 & sig_455; int sig_515 = sig_512 ^ sig_455; int sig_516 = sig_513 | sig_514; int sig_517 = sig_464 ^ sig_494; int sig_518 = sig_464 & sig_494; int sig_519 = sig_517 & sig_460; int sig_520 = sig_517 ^ sig_460; int sig_521 = sig_518 ^ sig_519; int sig_522 = sig_469 ^ sig_495; int sig_523 = sig_469 & sig_495; int sig_524 = sig_522 & sig_465; int sig_525 = sig_522 ^ sig_465; int sig_526 = sig_523 | sig_524; int sig_527 = sig_474 ^ sig_496; int sig_528 = sig_474 & sig_496; int sig_529 = sig_527 & sig_470; int sig_530 = sig_527 ^ sig_470; int sig_531 = sig_528 | sig_529; int sig_532 = sig_479 ^ sig_497; int sig_533 = sig_479 & sig_497; int sig_534 = sig_532 & sig_475; int sig_535 = sig_532 ^ sig_475; int sig_536 = sig_533 | sig_534; int sig_537 = sig_484 ^ sig_498; int sig_538 = sig_484 & sig_498; int sig_539 = sig_537 & sig_480; int sig_540 = sig_537 ^ sig_480; int sig_541 = sig_538 | sig_539; int sig_542 = sig_489 ^ sig_499; int sig_543 = sig_489 & sig_499; int sig_544 = sig_542 & sig_485; int sig_545 = sig_542 ^ sig_485; int sig_546 = sig_543 | sig_544; int sig_547 = sig_440 ^ sig_500; int sig_548 = sig_440 & sig_500; int sig_549 = sig_547 & sig_490; int sig_550 = sig_547 ^ sig_490; int sig_551 = sig_548 | sig_549; int sig_552 = wa[0] & wb[10]; int sig_553 = wa[1] & wb[10]; int sig_554 = wa[2] & wb[10]; int sig_555 = wa[3] & wb[10]; int sig_556 = wa[4] & wb[10]; int sig_557 = wa[5] & wb[10]; int sig_558 = wa[6] & wb[10]; int sig_559 = wa[7] & wb[10]; int sig_560 = wa[8] & wb[10]; int sig_561 = wa[9] & wb[10]; int sig_562 = wa[10] & wb[10]; int sig_563 = sig_510 ^ sig_552; int sig_564 = sig_510 & sig_552; int sig_565 = sig_563 & sig_506; int sig_566 = sig_563 ^ sig_506; int sig_567 = sig_564 | sig_565; int sig_568 = sig_515 ^ sig_553; int sig_569 = sig_515 & sig_553; int sig_570 = sig_568 & sig_511; int sig_571 = sig_568 ^ sig_511; int sig_572 = sig_569 | sig_570; int sig_573 = sig_520 ^ sig_554; int sig_574 = sig_520 & sig_554; int sig_575 = sig_573 & sig_516; int sig_576 = sig_573 ^ sig_516; int sig_577 = sig_574 | sig_575; int sig_578 = sig_525 ^ sig_555; int sig_579 = sig_525 & sig_555; int sig_580 = sig_578 & sig_521; int sig_581 = sig_578 ^ sig_521; int sig_582 = sig_579 | sig_580; int sig_583 = sig_530 ^ sig_556; int sig_584 = sig_530 & sig_556; int sig_585 = sig_583 & sig_526; int sig_586 = sig_583 ^ sig_526; int sig_587 = sig_584 | sig_585; int sig_588 = sig_535 ^ sig_557; int sig_589 = sig_535 & sig_557; int sig_590 = sig_588 & sig_531; int sig_591 = sig_588 ^ sig_531; int sig_592 = sig_589 ^ sig_590; int sig_593 = sig_540 ^ sig_558; int sig_594 = sig_540 & sig_558; int sig_595 = sig_593 & sig_536; int sig_596 = sig_593 ^ sig_536; int sig_597 = sig_594 | sig_595; int sig_598 = sig_545 ^ sig_559; int sig_599 = sig_545 & sig_559; int sig_600 = sig_598 & sig_541; int sig_601 = sig_598 ^ sig_541; int sig_602 = sig_599 | sig_600; int sig_603 = sig_550 ^ sig_560; int sig_604 = sig_550 & sig_560; int sig_605 = sig_603 & sig_546; int sig_606 = sig_603 ^ sig_546; int sig_607 = sig_604 ^ sig_605; int sig_608 = sig_501 ^ sig_561; int sig_609 = sig_501 & sig_561; int sig_610 = sig_608 & sig_551; int sig_611 = sig_608 ^ sig_551; int sig_612 = sig_609 | sig_610; int sig_613 = sig_571 ^ sig_567; int sig_614 = sig_571 & sig_567; int sig_615 = sig_576 ^ sig_572; int sig_616 = sig_576 & sig_572; int sig_617 = sig_615 & sig_614; int sig_618 = sig_615 ^ sig_614; int sig_619 = sig_616 ^ sig_617; int sig_620 = sig_581 ^ sig_577; int sig_621 = sig_581 & sig_577; int sig_622 = sig_620 & sig_619; int sig_623 = sig_620 ^ sig_619; int sig_624 = sig_621 | sig_622; int sig_625 = sig_586 ^ sig_582; int sig_626 = sig_586 & sig_582; int sig_627 = sig_625 & sig_624; int sig_628 = sig_625 ^ sig_624; int sig_629 = sig_626 ^ sig_627; int sig_630 = sig_591 ^ sig_587; int sig_631 = sig_591 & sig_587; int sig_632 = sig_630 & sig_629; int sig_633 = sig_630 ^ sig_629; int sig_634 = sig_631 | sig_632; int sig_635 = sig_596 ^ sig_592; int sig_636 = sig_596 & sig_592; int sig_637 = sig_635 & sig_634; int sig_638 = sig_635 ^ sig_634; int sig_639 = sig_636 | sig_637; int sig_640 = sig_601 ^ sig_597; int sig_641 = sig_601 & sig_597; int sig_642 = sig_640 & sig_639; int sig_643 = sig_640 ^ sig_639; int sig_644 = sig_641 | sig_642; int sig_645 = sig_606 ^ sig_602; int sig_646 = sig_606 & sig_602; int sig_647 = sig_645 & sig_644; int sig_648 = sig_645 ^ sig_644; int sig_649 = sig_646 | sig_647; int sig_650 = sig_611 ^ sig_607; int sig_651 = sig_611 & sig_607; int sig_652 = sig_650 & sig_649; int sig_653 = sig_650 ^ sig_649; int sig_654 = sig_651 | sig_652; int sig_655 = sig_562 ^ sig_612; int sig_656 = sig_562 & sig_612; int sig_657 = sig_655 & sig_654; int sig_658 = sig_655 ^ sig_654; int sig_659 = sig_656 | sig_657; y |= (sig_22 & 0x01) << 0; // default output y |= (sig_305 & 0x01) << 1; // default output y |= (sig_98 & 0x01) << 2; // default output y |= (sig_189 & 0x01) << 3; // default output y |= (sig_250 & 0x01) << 4; // default output y |= (sig_130 & 0x01) << 5; // default output y |= (sig_322 & 0x01) << 6; // default output y |= (sig_383 & 0x01) << 7; // default output y |= (sig_444 & 0x01) << 8; // default output y |= (sig_505 & 0x01) << 9; // default output y |= (sig_566 & 0x01) << 10; // default output y |= (sig_613 & 0x01) << 11; // default output y |= (sig_618 & 0x01) << 12; // default output y |= (sig_623 & 0x01) << 13; // default output y |= (sig_628 & 0x01) << 14; // default output y |= (sig_633 & 0x01) << 15; // default output y |= (sig_638 & 0x01) << 16; // default output y |= (sig_643 & 0x01) << 17; // default output y |= (sig_648 & 0x01) << 18; // default output y |= (sig_653 & 0x01) << 19; // default output y |= (sig_658 & 0x01) << 20; // default output y |= (sig_659 & 0x01) << 21; // default output return y; }
the_stack_data/274.c
#include <unistd.h> #include "syscall.h" pid_t getpgid(pid_t pid) { return syscall(SYS_getpgid, pid); }
the_stack_data/549891.c
#include<stdio.h> int main(){ int num; printf("Enter number whose multiplication table you wish to see:\n"); scanf("%d",&num); printf("\n"); for(int i=0;i<=10;i++) printf("%d * %d = %d\n",num,i,num*i); }
the_stack_data/1250609.c
// RUN: %cml %s -o %t && %t | FileCheck %s #include <stdio.h> int main() { int a = 3; int b = 5; if (a >= 3) a++; for (int i = 0; i < 10; i++) { a = a + 3; if (b < 300) { for (int j = 0; j < 10; j++) { b = b + 5; } } } printf("%d %d\n", a, b); // CHECK: 34 305 return 0; }
the_stack_data/892265.c
/* * my_getopt.c - my re-implementation of getopt. * Copyright 1997, 2000, 2001, 2002, 2006, Benjamin Sittler * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #ifdef WIN32 #include <sys/types.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "my_getopt.h" int optind=1, opterr=1, optopt=0; char *optarg=0; /* reset argument parser to start-up values */ int getopt_reset(void) { optind = 1; opterr = 1; optopt = 0; optarg = 0; return 0; } /* this is the plain old UNIX getopt, with GNU-style extensions. */ /* if you're porting some piece of UNIX software, this is all you need. */ /* this supports GNU-style permution and optional arguments */ static int _getopt(int argc, char * argv[], const char *opts) { static int charind=0; const char *s; char mode, colon_mode; int off = 0, opt = -1; if(getenv("POSIXLY_CORRECT")) colon_mode = mode = '+'; else { if((colon_mode = *opts) == ':') off ++; if(((mode = opts[off]) == '+') || (mode == '-')) { off++; if((colon_mode != ':') && ((colon_mode = opts[off]) == ':')) off ++; } } optarg = 0; if(charind) { optopt = argv[optind][charind]; for(s=opts+off; *s; s++) if(optopt == *s) { charind++; if((*(++s) == ':') || ((optopt == 'W') && (*s == ';'))) { if(argv[optind][charind]) { optarg = &(argv[optind++][charind]); charind = 0; } else if(*(++s) != ':') { charind = 0; if(++optind >= argc) { if(opterr) fprintf(stderr, "%s: option requires an argument -- %c\n", argv[0], optopt); opt = (colon_mode == ':') ? ':' : '?'; goto my_getopt_ok; } optarg = argv[optind++]; } } opt = optopt; goto my_getopt_ok; } if(opterr) fprintf(stderr, "%s: illegal option -- %c\n", argv[0], optopt); opt = '?'; if(argv[optind][++charind] == '\0') { optind++; charind = 0; } my_getopt_ok: if(charind && ! argv[optind][charind]) { optind++; charind = 0; } } else if((optind >= argc) || ((argv[optind][0] == '-') && (argv[optind][1] == '-') && (argv[optind][2] == '\0'))) { optind++; opt = -1; } else if((argv[optind][0] != '-') || (argv[optind][1] == '\0')) { char *tmp; int i, j, k; if(mode == '+') opt = -1; else if(mode == '-') { optarg = argv[optind++]; charind = 0; opt = 1; } else { for(i=j=optind; i<argc; i++) if((argv[i][0] == '-') && (argv[i][1] != '\0')) { optind=i; opt=_getopt(argc, argv, opts); while(i > j) { tmp=argv[--i]; for(k=i; k+1<optind; k++) argv[k]=argv[k+1]; argv[--optind]=tmp; } break; } if(i == argc) opt = -1; } } else { charind++; opt = _getopt(argc, argv, opts); } if (optind > argc) optind = argc; return opt; } /* this is the extended getopt_long{,_only}, with some GNU-like * extensions. Implements _getopt_internal in case any programs * expecting GNU libc getopt call it. */ int _getopt_internal(int argc, char * argv[], const char *shortopts, const struct option *longopts, int *longind, int long_only) { char mode, colon_mode = *shortopts; int shortoff = 0, opt = -1; if(getenv("POSIXLY_CORRECT")) colon_mode = mode = '+'; else { if((colon_mode = *shortopts) == ':') shortoff ++; if(((mode = shortopts[shortoff]) == '+') || (mode == '-')) { shortoff++; if((colon_mode != ':') && ((colon_mode = shortopts[shortoff]) == ':')) shortoff ++; } } optarg = 0; if((optind >= argc) || ((argv[optind][0] == '-') && (argv[optind][1] == '-') && (argv[optind][2] == '\0'))) { optind++; opt = -1; } else if((argv[optind][0] != '-') || (argv[optind][1] == '\0')) { char *tmp; int i, j, k; opt = -1; if(mode == '+') return -1; else if(mode == '-') { optarg = argv[optind++]; return 1; } for(i=j=optind; i<argc; i++) if((argv[i][0] == '-') && (argv[i][1] != '\0')) { optind=i; opt=_getopt_internal(argc, argv, shortopts, longopts, longind, long_only); while(i > j) { tmp=argv[--i]; for(k=i; k+1<optind; k++) argv[k]=argv[k+1]; argv[--optind]=tmp; } break; } } else if((!long_only) && (argv[optind][1] != '-')) opt = _getopt(argc, argv, shortopts); else { int charind, offset; int found = 0, ind, hits = 0; if(((optopt = argv[optind][1]) != '-') && ! argv[optind][2]) { int c; ind = shortoff; while((c = shortopts[ind++])) { if(((shortopts[ind] == ':') || ((c == 'W') && (shortopts[ind] == ';'))) && (shortopts[++ind] == ':')) ind ++; if(optopt == c) return _getopt(argc, argv, shortopts); } } offset = 2 - (argv[optind][1] != '-'); for(charind = offset; (argv[optind][charind] != '\0') && (argv[optind][charind] != '='); charind++); for(ind = 0; longopts[ind].name && !hits; ind++) if((strlen(longopts[ind].name) == (size_t) (charind - offset)) && (strncmp(longopts[ind].name, argv[optind] + offset, charind - offset) == 0)) found = ind, hits++; if(!hits) for(ind = 0; longopts[ind].name; ind++) if(strncmp(longopts[ind].name, argv[optind] + offset, charind - offset) == 0) found = ind, hits++; if(hits == 1) { opt = 0; if(argv[optind][charind] == '=') { if(longopts[found].has_arg == 0) { opt = '?'; if(opterr) fprintf(stderr, "%s: option `--%s' doesn't allow an argument\n", argv[0], longopts[found].name); } else { optarg = argv[optind] + ++charind; charind = 0; } } else if(longopts[found].has_arg == 1) { if(++optind >= argc) { opt = (colon_mode == ':') ? ':' : '?'; if(opterr) fprintf(stderr, "%s: option `--%s' requires an argument\n", argv[0], longopts[found].name); } else optarg = argv[optind]; } if(!opt) { if (longind) *longind = found; if(!longopts[found].flag) opt = longopts[found].val; else *(longopts[found].flag) = longopts[found].val; } optind++; } else if(!hits) { if(offset == 1) opt = _getopt(argc, argv, shortopts); else { opt = '?'; if(opterr) fprintf(stderr, "%s: unrecognized option `%s'\n", argv[0], argv[optind++]); } } else { opt = '?'; if(opterr) fprintf(stderr, "%s: option `%s' is ambiguous\n", argv[0], argv[optind++]); } } if (optind > argc) optind = argc; return opt; } /* This function is kinda problematic because most getopt() nowadays seem to use char * const argv[] (they DON'T permute the options list), but this one does. So we remove it as long as HAVE_GETOPT is define, so people can use the version from their platform instead */ #ifndef HAVE_GETOPT int getopt(int argc, char * argv[], const char *opts) { return _getopt(argc, argv, opts); } #endif /* HAVE_GETOPT */ int getopt_long(int argc, char * argv[], const char *shortopts, const struct option *longopts, int *longind) { return _getopt_internal(argc, argv, shortopts, longopts, longind, 0); } int getopt_long_only(int argc, char * argv[], const char *shortopts, const struct option *longopts, int *longind) { return _getopt_internal(argc, argv, shortopts, longopts, longind, 1); } #endif
the_stack_data/181391846.c
#include <stdio.h> #include <stdlib.h> typedef struct Node { int data; //4 bytes. struct Node* next; //4 bytes. }NODE; NODE* head; //global node declaration to store address to first node of list. void traverse() //to print each node. { NODE* loc = head; //loc holds start address of list. We don't want to modify head. So, we use 'loc'. printf("list is: \n"); while(loc != NULL) //till we reach the end of the list. { printf(" %d",loc->data); loc = loc->next; } printf("\n"); } void insert_end(int x) { NODE* temp; //to store address to temporary node. NODE* loc = head; temp = (NODE*) malloc(sizeof(NODE)); /*malloc creates a node of 8 bytes and returns starting address of it, in void type, which then needs to be type casted to NODE type, to store in a NODE type pointer. So, temp now holds address of node.*/ temp->data = x; //dereferencing pointer to modify data at address. temp->next = NULL; if(loc == NULL) //no node inserted yet. { head = temp; return; } else //a list already exists. { while(loc->next != NULL) //till we reach the end of the list. { loc = loc->next; //finally loc with have the address of last node. } loc->next = temp; //add the new node at the end of last node, by adjusting links. } } int main() { int n,data; head = NULL; //initially list is empty. insert_end(2);//func. call to insert. insert_end(4); insert_end(6); insert_end(5); //list: 2, 4, 6, 5 traverse(); return 0; }
the_stack_data/141331.c
#include<stdio.h> int main() { int ano,mes,dia,a,b,c,d,e,dj; scanf("%d %d %d",&ano,&mes,&dia); if(mes<3) { ano=ano-1; mes=mes+12; } a=ano/100; b=a/4; if(ano>1582 && mes>10 && dia>15) { c=2-a+b; } if(ano<=1582 && mes<=10 && dia<=4) { c=0; } d=365.25*(ano+4716); e=30.6001*(mes+1); dj=d+e+dia+c-1524; printf("%d",dj); return 0; }
the_stack_data/49680.c
/*Exercise 2 - Selection Write a program to calculate the amount to be paid for a rented vehicle. • Input the distance the van has travelled • The first 30 km is at a rate of 50/= per km. • The remaining distance is calculated at the rate of 40/= per km. e.g. Distance -> 20 Amount = 20 x 50 = 1000 Distance -> 50 Amount = 30 x 50 + (50-30) x 40 = 2300*/ #include <stdio.h> int main() { int dist,amount,tot; printf ("enter the distance :"); scanf ("%d",&dist); if (dist <30 ) printf ("amount = %d",dist*50); else if (dist >30 ) { amount =30*dist+(dist -30)*40; printf("amount = %d",amount ); } return 0; }
the_stack_data/506595.c
#include <stdlib.h> #include <stdio.h> int main(){ int d1 = 1; int d2 = 4; int* p_1 ; int* p_2 ; printf("*p_1 = %d, *p_2 = %d", *p_1, *p_2); return EXIT_SUCCESS; }
the_stack_data/22013648.c
#include <stdio.h> #include <stdlib.h> int uniquePaths(int m, int n) { int *dp = (int *)malloc(sizeof(int)*m); for ( int i = 0; i < m; i++ ) dp[i] = 1; for ( int i = 1; i < n; i++ ) for ( int j = 1; j < m; j++ ) dp[j] += dp[j-1]; int result = dp[m-1]; free(dp); return result; } int main() { printf("%d\n", uniquePaths(3, 7)); return 0; }
the_stack_data/855065.c
#include <stdlib.h> /* derived from mozilla source code */ #include <stdarg.h> typedef struct { void *stream; va_list ap; int nChar; } ScanfState; void dummy (va_list vap) { if (va_arg (vap, int) != 1234) abort(); return; } void test (int fmt, ...) { ScanfState state, *statep; statep = &state; va_start (statep->ap, fmt); dummy (statep->ap); va_end (statep->ap); va_start (state.ap, fmt); dummy (state.ap); va_end (state.ap); return; } int main (void) { test (456, 1234); exit (0); }
the_stack_data/93888246.c
#include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> int main() { if (access("fifo1", F_OK) == -1) { printf("fifo non-exist, created one\n"); if (mkfifo("fifo1", 0664) - 1) { perror("mkfifo"); exit(0); } } return 0; }
the_stack_data/167329597.c
#include<stdlib.h> #include<stdio.h> int compar(void *pa ,void *pb) { int a =*((int*)pa); int b=*((int*)pb); int ret=0; if(a<b) ret=-1; else if (a>b) ret=1; return ret ; } int main() { printf("Array before sorting = "); int myarr[] = {75,101,58,77,99,47,1,0,6,8,4,0}; size_t L=sizeof(myarr)/sizeof(int); for (int n = 0 ; n < sizeof(myarr)/sizeof(int); n++) printf ("%d ", myarr[n]); printf("\n"); printf("Array after sort ="); qsort (myarr,L, sizeof(int),compar); for (int i = 0 ; i < sizeof(myarr)/sizeof(int); i++) printf ("%d ", myarr[i]); return 0; }
the_stack_data/48508.c
int climbStairs(int n){ if (n <= 2) { return n; } return climbStairs(n - 1) + climbStairs(n - 2); }
the_stack_data/129973.c
#include <stdio.h> #include <stdlib.h> int main (int argn, char **argc) { FILE *file; double x, r[5]; int i, n, imin, imax; if (argn != 4) return 1; file = fopen (argc[1], "r"); if (!file) return 1; imin = atoi (argc[2]); imax = atoi (argc[3]); for (x = 0., i = n = 0; fscanf (file, "%lf%lf%lf%lf%lf", r, r + 1, r + 2, r + 3, r + 4) == 5;) { ++i; if (i > imax) break; if (i >= imin) { x += r[4]; ++n; } } fclose (file); printf ("Mean load=%lf\n", x / n); return 0; }
the_stack_data/181393515.c
#include <stdio.h> int main() { int a, b; a = 2; b = 7; b++; if(a > 3) { a++; } printf("a=%d b=%d\n", a, b); return 0; }
the_stack_data/911047.c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define MAX_SIZE 16 typedef struct { int data[MAX_SIZE]; int top; }seqStack, *stack; stack initStack() { stack s = malloc(sizeof(seqStack)); s->top = -1; return s; } bool isEmpty(stack s) { return s->top == -1; } bool isFull(stack s) { return s->top == MAX_SIZE -1; } bool push(stack s, int value) { if(isFull(s)) { printf("The stack is full. Push failed.\n"); return false; } printf("Push value %d\n", value); s->top += 1; s->data[s->top] = value; return true; } bool pop(stack s, int *value) { if(isEmpty(s)) { printf("The stack is empty. Pop failed.\n"); return false; } *value = s->data[s->top]; s->top -= 1; return true; } int main() { stack s = initStack(); int i, value; for(i = 0; i < 12; i++) push(s, (i + 1) * 10); printf("\n*****************************\n"); for(i = 0; i < 20; i++) { if(pop(s, &value)) printf("Pop value: %d\n", value); } return 0; }
the_stack_data/22219.c
/* refont.c */ /* Author: * Steve Kirkendall * 16820 SW Tallac Way * Beaverton, OR 97006 * [email protected], or ...uunet!tektronix!psueea!jove!kirkenda */ /* This file contains the complete source code for the refont program */ /* The refont program converts font designations to the format of your choice. * Known font formats are: * -b overtype notation, using backspaces * -c overtype notation, using carriage returns * -d the "dot" command notation used by nroff * -e Epson-compatible line printer codes * -f the "\f" notation * -x none (strip out the font codes) */ #include <stdio.h> /* the program name, for diagnostics */ char *progname; /* remembers which output format to use */ outfmt = 'f'; main(argc, argv) int argc; /* number of command-line args */ char **argv; /* values of the command line args */ { FILE *fp; int i; progname = argv[0]; /* parse the flags */ i = 1; if (i < argc && *argv[i] == '-') { if (argv[i][1] >= 'b' && argv[i][1] <= 'f' || argv[i][1] == 'x') { outfmt = argv[i][1]; } else { usage(); } i++; } if (i == argc) { /* probably shouldn't read from keyboard */ if (isatty(fileno(stdin))) { usage(); } /* no files named, so use stdin */ refont(stdin); } else { for (; i < argc; i++) { fp = fopen(argv[i], "r"); if (!fp) { perror(argv[i]); } else { refont(fp); if (i < argc - 1) { putchar('\f'); } fclose(fp); } } } } usage() { fputs("usage: ", stderr); fputs(progname, stderr); fputs(" [-bcdefx] [filename]...\n", stderr); exit(2); } /* This function does the refont thing to a single file */ /* I apologize for the length of this function. It is gross. */ refont(fp) FILE *fp; { char textbuf[1025]; /* chars of a line of text */ char fontbuf[1025]; /* fonts of chars in fontbuf */ int col; /* where we are in the line */ int font; /* remembered font */ int more; /* more characters to be output? */ int ch; /* reset some stuff */ for (col = sizeof fontbuf; --col >= 0; ) { fontbuf[col] = 'R'; textbuf[col] = '\0'; } col = 0; font = 'R'; /* get the first char - quit if eof */ while ((ch = getc(fp)) != EOF) { /* if "dot" command, read the rest of the command */ if (ch == '.' && col == 0) { textbuf[col++] = '.'; textbuf[col++] = getc(fp); textbuf[col++] = getc(fp); textbuf[col++] = ch = getc(fp); /* is it a font line? */ font = 0; if (textbuf[1] == 'u' && textbuf[2] == 'l') { font = 'U'; } else if (textbuf[1] == 'b' && textbuf[2] == 'o') { font = 'B'; } else if (textbuf[1] == 'i' && textbuf[2] == 't') { font = 'I'; } /* if it is, discard the stuff so far but remember font */ if (font) { while (col > 0) { textbuf[--col] = '\0'; } } else /* some other format line - write it literally */ { while (ch != '\n') { textbuf[col++] = ch = getc(fp); } fputs(textbuf, fp); while (col > 0) { textbuf[--col] = '\0'; } } continue; } /* is it a "\f" formatted font? */ if (ch == '\\') { ch = getc(fp); if (ch == 'f') { font = getc(fp); } else { textbuf[col++] = '\\'; textbuf[col++] = ch; } continue; } /* is it an Epson font? */ if (ch == '\033') { ch = getc(fp); switch (ch) { case '4': font = 'I'; break; case 'E': case 'G': font = 'B'; break; case '5': case 'F': case 'H': font = 'R'; break; case '-': font = (getc(fp) & 1) ? 'U' : 'R'; break; } continue; } /* control characters? */ if (ch == '\b') { if (col > 0) col--; continue; } else if (ch == '\t') { do { if (textbuf[col] == '\0') { textbuf[col] = ' '; } col++; } while (col & 7); continue; } else if (ch == '\r') { col = 0; continue; } else if (ch == ' ') { if (textbuf[col] == '\0') { textbuf[col] = ' '; fontbuf[col] = font; col++; } continue; } /* newline? */ if (ch == '\n') { #if 0 fputs(textbuf, stdout); #else more = 0; for (col = 0, font = 'R'; textbuf[col]; col++) { if (fontbuf[col] != font) { switch (outfmt) { case 'd': putchar('\n'); switch (fontbuf[col]) { case 'B': fputs(".bo\n", stdout); break; case 'I': fputs(".it\n", stdout); break; case 'U': fputs(".ul\n", stdout); break; } while (textbuf[col] == ' ') { col++; } break; case 'e': switch (fontbuf[col]) { case 'B': fputs("\033E", stdout); break; case 'I': fputs("\0334", stdout); break; case 'U': fputs("\033-1", stdout); break; default: switch (font) { case 'B': fputs("\033F", stdout); break; case 'I': fputs("\0335", stdout); break; case 'U': fputs("\033-0", stdout); break; } } break; case 'f': putchar('\\'); putchar('f'); putchar(fontbuf[col]); break; } font = fontbuf[col]; } if (fontbuf[col] != 'R' && textbuf[col] != ' ') { switch (outfmt) { case 'b': if (fontbuf[col] == 'B') { putchar(textbuf[col]); } else { putchar('_'); } putchar('\b'); break; case 'c': more = col + 1; break; } } putchar(textbuf[col]); } /* another pass? */ if (more > 0) { putchar('\r'); for (col = 0; col < more; col++) { switch (fontbuf[col]) { case 'I': case 'U': putchar('_'); break; case 'B': putchar(textbuf[col]); break; default: putchar(' '); } } } /* newline */ if (font != 'R') { switch (outfmt) { case 'f': putchar('\\'); putchar('f'); putchar('R'); break; case 'e': switch (font) { case 'B': fputs("\033F", stdout); break; case 'I': fputs("\0335", stdout); break; case 'U': fputs("\033-0", stdout); break; } } } #endif putchar('\n'); /* reset some stuff */ for (col = sizeof fontbuf; --col >= 0; ) { fontbuf[col] = 'R'; textbuf[col] = '\0'; } col = 0; font = 'R'; continue; } /* normal character */ if (font != 'R') { textbuf[col] = ch; fontbuf[col] = font; } else if (textbuf[col] == '_') { textbuf[col] = ch; fontbuf[col] = 'U'; } else if (textbuf[col] && textbuf[col] != ' ' && ch == '_') { fontbuf[col] = 'U'; } else if (textbuf[col] == ch) { fontbuf[col] = 'B'; } else { textbuf[col] = ch; } col++; } }
the_stack_data/225142954.c
int fib(int i) { if (i <= 1) { return 1; } return fib(i - 1) + fib(i - 2); } int main() { return fib(6); }
the_stack_data/67323986.c
/*AULA 2 - Exercicio 6 - Lê idade da pessoa em anos e imprime em minutos*/ #include <stdio.h> int main () { int ID, IDmin; printf ("Digite sua idade:\n"); scanf ("%d", &ID); IDmin = ID*365*24*60; printf ("A idade em minutos é: %d\n", IDmin); return 0; }
the_stack_data/23191.c
#include<stdio.h> void main() { int f=0; char s[100]; printf("Enter the string : "); scanf("%[^\n]s",&s); for(int i=0;s[i]!='\0';i++) { f++; } printf("Length is %d", f); }
the_stack_data/182952425.c
const char* mp_init_bin="31\n2#s\n32\n2#d\n32\n2#o\n32\n26##0\n67#mp_init\n63#7\n51#add_builtin\n63#7\n57#512\n63#8\n27#1\n28#__builtins__\n27\n21\n53\n26#add_builtin\n63#11\n51#ljust\n63#11\n57#512\n63#12\n28#int\n27#1\n48#1\n25#1\n63#13\n28#len\n27\n48#1\n27#1\n13\n37#5\n63#13\n27\n52\n35#1\n63#14\n27#1\n28#len\n27\n48#1\n5\n25#2\n63#15\n27\n27#2\n2# \n6\n4\n52\n53\n26#ljust\n63#17\n51#rjust\n63#17\n57#512\n63#18\n28#int\n27#1\n48#1\n25#1\n63#19\n28#len\n27\n48#1\n27#1\n13\n37#5\n63#19\n27\n52\n35#1\n63#20\n27#1\n28#len\n27\n48#1\n5\n25#2\n63#21\n27#2\n2# \n6\n27\n4\n52\n53\n26#rjust\n63#23\n51#center\n63#23\n57#512\n63#24\n28#int\n27#1\n48#1\n25#1\n63#25\n28#len\n27\n48#1\n27#1\n13\n37#5\n63#25\n27\n52\n35#1\n63#26\n27#1\n28#len\n27\n48#1\n5\n3#2.0\n7\n25#2\n63#27\n28#int\n27#2\n48#1\n25#2\n63#28\n27#1\n27#2\n5\n28#len\n27\n48#1\n5\n25#3\n63#29\n27#3\n2# \n6\n27\n4\n27#2\n2# \n6\n4\n52\n53\n26#center\n63#31\n51#sformat0\n63#31\n57#256\n63#32\n27\n3\n22\n25#1\n63#33\n28#len\n27\n48#1\n3#1.0\n15\n37#5\n63#33\n27#1\n52\n35#1\n63#34\n28#len\n27#1\n48#1\n25#2\n63#35\n3\n25#3\n63#36\n3\n25#4\n63#37\n3#1.0\n25#5\n63#38\n2#\n25#6\n63#39\n3\n25#7\n63#40\n27#3\n27#2\n12\n37#192\n63#41\n3#1.0\n25#5\n63#42\n27#1\n27#3\n22\n2#%\n15\n37#169\n63#43\n27#3\n3#1.0\n4\n25#3\n63#44\n27#1\n27#3\n22\n25#8\n63#45\n27#8\n2#-\n15\n38#7\n27#3\n3#1.0\n4\n27#2\n12\n19\n38#9\n27#1\n27#3\n3#1.0\n4\n22\n2#1234567890\n17\n19\n37#15\n63#46\n27#3\n3#1.0\n4\n25#3\n63#47\n27#1\n27#3\n22\n25#8\n63#48\n3#1.0\n25#7\n35#1\n63#49\n27#8\n28##0\n17\n37#19\n63#50\n27#8\n25#9\n63#51\n27#4\n3#1.0\n4\n25#4\n63#52\n27#6\n28#str\n27\n27#4\n22\n48#1\n4\n25#6\n35#100\n27#8\n2#1234567890\n17\n37#84\n63#54\n3\n25#10\n63#55\n27#1\n27#3\n22\n2#1234567890\n17\n37#22\n63#56\n27#10\n3#10.0\n6\n28#ord\n27#1\n27#3\n22\n48#1\n4\n28#ord\n2#0\n48#1\n5\n25#10\n63#57\n27#3\n3#1.0\n4\n25#3\n36#26\n63#58\n27#1\n27#3\n22\n2#s\n15\n37#40\n63#59\n27#4\n3#1.0\n4\n25#4\n63#60\n27#7\n37#18\n63#61\n27#6\n28#str\n27\n27#4\n22\n48#1\n2#ljust\n22\n27#10\n48#1\n4\n25#6\n63#62\n3\n25#7\n35#14\n63#64\n27#6\n28#str\n27\n27#4\n22\n48#1\n2#rjust\n22\n27#10\n48#1\n4\n25#6\n35#6\n63#66\n28#raise\n2#format error\n48#1\n30\n35#13\n63#68\n27#6\n27#1\n27#3\n22\n4\n25#6\n63#69\n27#3\n3#1.0\n5\n25#3\n35#8\n63#71\n27#6\n27#1\n27#3\n22\n4\n25#6\n63#72\n27#3\n3#1.0\n4\n25#3\n36#194\n63#73\n27#6\n52\n53\n26#sformat0\n63#75\n51#sformat\n63#75\n58\n63#76\n28#sformat0\n27\n49#1\n52\n53\n26#sformat\n63#78\n51#str_join\n63#78\n57#512\n63#80\n2#\n25#2\n28#range\n28#len\n27#1\n48#1\n48#1\n45\n44#27\n25#3\n63#82\n27#3\n3\n16\n37#13\n63#83\n27#2\n27\n28#str\n27#1\n27#3\n22\n48#1\n4\n4\n25#2\n35#8\n63#85\n27#2\n27#1\n27#3\n22\n4\n25#2\n36#26\n30\n63#86\n27#2\n52\n53\n26#str_join\n63#88\n51#list_join\n63#88\n57#512\n63#89\n28#str_join\n27#1\n27\n49#2\n52\n53\n26#list_join\n63#91\n51#_list_copy\n63#91\n57#256\n63#92\n31\n25#1\n27\n45\n44#10\n25#2\n63#94\n27#1\n2#append\n22\n27#2\n48#1\n30\n36#9\n30\n63#95\n27#1\n52\n53\n26#_list_copy\n63#96\n28#add_obj_method\n2#list\n2#copy\n28#_list_copy\n48#3\n30\n63#98\n51#printf\n63#98\n58\n63#99\n28#write\n28#sformat0\n27\n48#1\n48#1\n30\n53\n26#printf\n63#101\n28#add_builtin\n2#printf\n28#printf\n48#2\n30\n63#103\n51#uncode16\n63#103\n57#512\n63#104\n28#ord\n27\n48#1\n3#256.0\n6\n28#ord\n27#1\n48#1\n4\n52\n53\n26#uncode16\n63#106\n51#escape\n63#106\n57#256\n63#107\n28#gettype\n27\n48#1\n2#string\n16\n37#7\n63#108\n28#raise\n2#<function escape> expect a string\n48#1\n30\n35#1\n63#109\n2#\n25#1\n27\n45\n44#69\n25#2\n63#111\n27#2\n2#\\r\n15\n37#7\n63#111\n27#1\n2#\\\\r\n4\n25#1\n35#56\n27#2\n2#\\n\n15\n37#7\n63#112\n27#1\n2#\\\\n\n4\n25#1\n35#46\n27#2\n2#\n15\n37#7\n63#113\n27#1\n2#\\\\b\n4\n25#1\n35#36\n27#2\n2#\\\\\n15\n37#7\n63#114\n27#1\n2#\\\\\\\\\n4\n25#1\n35#26\n27#2\n2#\"\n15\n37#7\n63#115\n27#1\n2#\\\\\"\n4\n25#1\n35#16\n27#2\n2#\\0\n15\n37#7\n63#116\n27#1\n2#\\\\0\n4\n25#1\n35#6\n63#117\n27#1\n27#2\n4\n25#1\n36#68\n30\n63#118\n27#1\n52\n53\n26#escape\n63#121\n51#quote\n63#121\n57#256\n63#122\n28#gettype\n27\n48#1\n2#string\n15\n37#11\n63#123\n2#\"\n28#escape\n27\n48#1\n4\n2#\"\n4\n52\n35#6\n63#125\n28#str\n27\n49#1\n52\n53\n26#quote\n63#127\n51#copy\n63#127\n57#512\n63#128\n28#load\n27\n48#1\n25#2\n63#129\n28#save\n27#1\n27#2\n48#2\n30\n53\n26#copy\n63#131\n51#mtime\n63#131\n57#256\n63#132\n2#os\n1#1\n63#133\n28#os\n2#stat\n22\n27\n48#1\n25#1\n63#134\n27#1\n2#st_mtime\n22\n52\n53\n26#mtime\n63#136\n51#find_module_path\n63#136\n57#256\n63#137\n2#sys\n1#1\n63#139\n27\n2#.py\n4\n25#1\n63#140\n28#exists\n27#1\n48#1\n37#5\n63#141\n27#1\n52\n35#1\n28#sys\n2#path\n22\n45\n44#21\n25#2\n63#145\n27#2\n28#FILE_SEP\n4\n27\n4\n2#.py\n4\n25#1\n63#146\n28#exists\n27#1\n48#1\n37#5\n63#147\n27#1\n52\n35#1\n36#20\n30\n63#148\n24\n52\n53\n26#find_module_path\n63#150\n51#_import\n24\n25#2\n63#150\n57#513\n63#158\n27#1\n28#__modules__\n17\n37#3\n63#159\n35#58\n63#161\n2#os\n1#1\n63#162\n28#os\n2#exists\n22\n25#3\n63#164\n2#mp_encode\n2#*\n1#2\n63#166\n28#find_module_path\n27#1\n48#1\n25#4\n63#168\n27#4\n24\n15\n37#10\n63#169\n28#raise\n28#sformat\n2#import error, can not open file \"%s.py\"\n27#1\n48#2\n48#1\n30\n35#1\n63#171\n47#8\n63#173\n28#compilefile\n27#4\n48#1\n25#5\n60\n35#12\n46\n25#6\n63#176\n28#raise\n28#sformat\n2#import error: fail to compile file \"%s.py\":\\n %s\n27#1\n27#6\n48#3\n48#1\n30\n63#177\n28#load_module\n27#1\n27#5\n48#2\n30\n63#178\n28#__modules__\n27#1\n22\n25#7\n63#179\n27#2\n2#*\n15\n37#30\n27#7\n45\n44#25\n25#8\n63#183\n27#8\n3\n22\n2#_\n16\n38#7\n27#8\n3\n22\n2##\n16\n19\n37#9\n63#184\n27#7\n27#8\n22\n27\n27#8\n21\n35#1\n36#24\n30\n35#33\n27#2\n24\n15\n37#7\n63#186\n27#7\n27\n27#1\n21\n35#23\n63#188\n27#2\n27#7\n17\n10\n37#10\n63#189\n28#raise\n28#sformat\n2#import error, no definition named '%s'\n27#2\n48#2\n48#1\n30\n35#1\n63#190\n27#7\n27#2\n22\n27\n27#2\n21\n53\n26#_import\n63#193\n51#hasattr\n63#193\n57#512\n63#194\n27#1\n27\n17\n52\n53\n26#hasattr\n63#196\n51#Exception\n63#196\n57#256\n63#197\n27\n52\n53\n26#Exception\n63#199\n54#Lib\n51#__init__\n3#1.0\n25#3\n63#200\n57#769\n63#201\n27#1\n27\n2#name\n21\n63#202\n27#2\n27\n2#path\n21\n63#203\n27#3\n27\n2#load\n21\n53\n28#Lib\n2#__init__\n21\n56\n63#215\n51#require\n24\n25#1\n63#215\n57#257\n63#217\n27\n28#__modules__\n17\n37#7\n63#218\n28#__modules__\n27\n22\n52\n35#1\n63#219\n28#compilefile\n27\n48#1\n25#2\n63#220\n27#1\n24\n15\n37#5\n63#221\n27\n25#1\n35#1\n63#222\n28#load_module\n27#1\n27#2\n48#2\n25#3\n63#223\n27#3\n28#__modules__\n27\n21\n63#224\n27#3\n52\n53\n26#require\n63#226\n28#getosname\n48\n2#nt\n15\n37#5\n63#227\n2#\\\\\n26#FILE_SEP\n35#4\n63#229\n2#/\n26#FILE_SEP\n63#231\n51#split_path\n63#231\n57#256\n63#232\n31\n25#1\n63#233\n2#\n25#2\n27\n45\n44#29\n25#3\n63#235\n27#3\n2#/\n15\n39#5\n27#3\n2#\\\\\n15\n20\n37#12\n63#236\n27#1\n2#append\n22\n27#2\n48#1\n30\n63#237\n2#\n25#2\n35#6\n63#239\n27#2\n27#3\n4\n25#2\n36#28\n30\n63#240\n27#2\n2#\n16\n37#9\n63#240\n27#1\n2#append\n22\n27#2\n48#1\n30\n35#1\n63#241\n27#1\n52\n53\n26#split_path\n63#245\n51#join_path\n63#245\n57#256\n63#246\n28#len\n27\n48#1\n3\n15\n37#5\n63#246\n2#\n52\n35#7\n63#247\n27\n2#pop\n22\n48\n25#1\n63#248\n2#\n25#2\n63#249\n31\n25#3\n27\n45\n44#28\n25#4\n63#251\n27#4\n2#..\n15\n37#8\n63#252\n27#3\n2#pop\n22\n48\n30\n35#14\n27#4\n2#.\n15\n37#3\n63#254\n35#8\n63#256\n27#3\n2#append\n22\n27#4\n48#1\n30\n36#27\n30\n27#3\n45\n44#10\n25#4\n63#258\n27#2\n27#4\n28#FILE_SEP\n4\n4\n25#2\n36#9\n30\n63#259\n27#2\n27#1\n4\n52\n53\n26#join_path\n63#262\n51#resolvepath\n63#262\n57#256\n63#263\n2#/\n27\n17\n39#5\n2#\\\\\n27\n17\n20\n10\n37#5\n63#264\n27\n52\n35#1\n63#265\n2#os\n1#1\n63#266\n28#split_path\n28#os\n2#getcwd\n22\n48\n48#1\n25#1\n63#267\n28#split_path\n27\n48#1\n25#2\n63#268\n27#2\n2#pop\n22\n48\n25#3\n63#269\n28#join_path\n27#1\n27#2\n4\n48#1\n25#4\n63#270\n28#os\n2#chdir\n22\n27#4\n48#1\n30\n63#271\n27#3\n52\n53\n26#resolvepath\n63#273\n51#execfile\n28#True\n25#1\n63#273\n57#257\n63#274\n2#mp_encode\n2#*\n1#2\n63#275\n28#compilefile\n27\n48#1\n25#2\n63#276\n28#load_module\n27\n27#2\n2#__main__\n48#3\n30\n53\n26#execfile\n63#278\n51#dis\n63#278\n57#256\n63#279\n2#mp_encode\n1#1\n63#280\n28#mp_encode\n2#dis\n22\n27\n48#1\n30\n53\n26#dis\n63#282\n51#_assert\n24\n25#1\n63#282\n57#257\n63#283\n27\n10\n37#23\n63#284\n2#\n25#2\n63#285\n27#1\n24\n16\n37#7\n63#286\n28#str\n27#1\n48#1\n25#2\n35#1\n63#287\n28#raise\n2#AssertionError, \n27#2\n4\n48#1\n30\n35#1\n53\n26#_assert\n63#289\n51#__debug__\n63#289\n57#256\n63#290\n28#vmopt\n2#frame.info\n27\n48#2\n25#1\n63#291\n27#1\n2#maxlocals\n22\n25#2\n63#292\n28#print\n27#1\n2#fname\n22\n27#1\n2#lineno\n22\n48#2\n30\n28#range\n27#2\n48#1\n45\n44#21\n25#3\n63#294\n28#printf\n2##\n28#str\n27#3\n48#1\n4\n48#1\n30\n63#295\n28#repl_print\n28#vmopt\n2#frame.local\n27\n27#3\n48#3\n48#1\n30\n36#20\n30\n63#296\n28#input\n2#continue\n48#1\n30\n53\n26#__debug__\n63#299\n51#os_dirname\n63#299\n57#256\n63#300\n27\n2#rfind\n22\n2#/\n48#1\n25#1\n63#301\n27#1\n3\n13\n37#8\n63#302\n27\n3\n27#1\n23\n52\n35#4\n63#304\n2#\n52\n53\n26#os_dirname\n63#306\n51#update_sys_path\n63#306\n57#256\n63#307\n2#sys\n1#1\n63#308\n28#os_dirname\n27\n48#1\n25#1\n63#309\n28#sys\n2#path\n22\n2#append\n22\n27#1\n48#1\n30\n53\n26#update_sys_path\n63#312\n28#add_obj_method\n2#str\n2#ljust\n28#ljust\n48#3\n30\n63#313\n28#add_obj_method\n2#str\n2#rjust\n28#rjust\n48#3\n30\n63#314\n28#add_obj_method\n2#str\n2#center\n28#center\n48#3\n30\n63#315\n28#add_obj_method\n2#str\n2#join\n28#str_join\n48#3\n30\n63#316\n28#add_obj_method\n2#list\n2#join\n28#list_join\n48#3\n30\n63#317\n28#add_builtin\n2#uncode16\n28#uncode16\n48#2\n30\n63#318\n28#add_builtin\n2#add_builtin\n28#add_builtin\n48#2\n30\n63#319\n28#add_builtin\n2#Exception\n28#Exception\n48#2\n30\n63#320\n28#add_builtin\n2#hasattr\n28#hasattr\n48#2\n30\n63#321\n28#add_builtin\n2#_import\n28#_import\n48#2\n30\n63#322\n28#add_builtin\n2#copy\n28#copy\n48#2\n30\n63#323\n28#add_builtin\n2#mtime\n28#mtime\n48#2\n30\n63#324\n28#add_builtin\n2#sformat0\n28#sformat0\n48#2\n30\n63#325\n28#add_builtin\n2#sformat\n28#sformat\n48#2\n30\n63#326\n28#add_builtin\n2#escape\n28#escape\n48#2\n30\n63#327\n28#add_builtin\n2#quote\n28#quote\n48#2\n30\n63#328\n28#add_builtin\n2#execfile\n28#execfile\n48#2\n30\n63#329\n28#add_builtin\n2#assert\n28#_assert\n48#2\n30\n63#330\n28#add_builtin\n2#__debug__\n28#__debug__\n48#2\n30\n63#331\n28#add_builtin\n2#require\n28#require\n48#2\n30\n63#334\n51#print_init_help\n63#334\n57\n63#335\n28#print\n2#usage: minipy [options] [fpath]\\n\n48#1\n30\n63#337\n28#print\n2## execute .py file\n48#1\n30\n63#338\n28#print\n2#./minipy hello.py\\n\n48#1\n30\n63#340\n28#print\n2## print bytecode of .py file\n48#1\n30\n63#341\n28#print\n2#./minipy -dis hello.py\\n\n48#1\n30\n63#343\n28#sys\n2#exit\n22\n3\n48#1\n30\n53\n26#print_init_help\n63#345\n2#\n26#LIB_PATH\n63#346\n51#boot\n28#True\n25\n63#346\n57#1\n63#347\n2#mp_encode\n2#*\n1#2\n63#348\n2#repl\n2#*\n1#2\n63#349\n2#sys\n1#1\n63#350\n2#os\n1#1\n63#351\n63#352\n28#sys\n2#argv\n22\n25#1\n63#353\n28#len\n27#1\n48#1\n25#2\n63#354\n28#add_builtin\n2#ARGV\n27#1\n48#2\n30\n63#355\n28#split_path\n28#os\n2#getcwd\n22\n48\n48#1\n25#3\n63#356\n27#3\n2#append\n22\n2#libs\n48#1\n30\n63#357\n28#join_path\n27#3\n48#1\n26#LIB_PATH\n63#361\n27#2\n3\n15\n37#6\n63#362\n28#repl\n48\n30\n35#62\n63#364\n28#os\n2#exists\n22\n27#1\n3\n22\n48#1\n37#16\n63#365\n28#update_sys_path\n27#1\n3\n22\n48#1\n30\n63#366\n28#execfile\n27#1\n3\n22\n48#1\n30\n35#38\n27#1\n3\n22\n2#-dis\n15\n37#9\n63#368\n28#dis\n27#1\n3#1.0\n22\n48#1\n30\n35#24\n27#1\n3\n22\n2#-h\n15\n39#7\n27#1\n3\n22\n2#--help\n15\n20\n37#6\n63#370\n28#print_init_help\n48\n30\n35#6\n63#372\n28#print\n2#file not exists, exit\n48#1\n30\n53\n26#boot\n61\n"; const char* mp_tokenize_bin="67#mp_tokenize\n63#7\n47#6\n63#8\n28#load\n26#_\n60\n35#6\n30\n63#12\n2#boot\n2#*\n1#2\n63#14\n54#Token\n51#__init__\n2#symbol\n25#1\n24\n25#2\n24\n25#3\n63#15\n57#259\n63#16\n27#3\n27\n2#pos\n21\n63#17\n27#1\n27\n2#type\n21\n63#18\n27#2\n27\n2#val\n21\n53\n28#Token\n2#__init__\n21\n56\n63#21\n51#findpos\n63#21\n57#256\n63#22\n28#hasattr\n27\n2#pos\n48#2\n10\n37#28\n63#23\n28#hasattr\n27\n2#first\n48#2\n37#9\n63#24\n28#findpos\n27\n2#first\n22\n49#1\n52\n35#1\n63#25\n28#print\n27\n48#1\n30\n63#26\n31\n3\n32\n3\n32\n52\n35#1\n63#27\n27\n2#pos\n22\n52\n53\n26#findpos\n63#30\n51#find_error_line\n63#30\n57#512\n63#37\n27#1\n3\n22\n25#2\n63#38\n27#1\n3#1.0\n22\n25#3\n63#39\n27\n2#replace\n22\n2# \n2# \n48#2\n25\n63#40\n27\n2#split\n22\n2#\\n\n48#1\n27#2\n3#1.0\n5\n22\n25#4\n63#41\n2#\n25#5\n63#42\n27#2\n3#10.0\n12\n37#7\n63#42\n27#5\n2# \n4\n25#5\n35#1\n63#43\n27#2\n3#100.0\n12\n37#7\n63#43\n27#5\n2# \n4\n25#5\n35#1\n63#44\n27#5\n28#str\n27#2\n48#1\n4\n2#: \n4\n27#4\n4\n2#\\n\n4\n25#6\n63#45\n27#6\n2# \n2# \n27#3\n6\n4\n2#^\n4\n2#\\n\n4\n4\n25#6\n63#46\n27#6\n52\n53\n26#find_error_line\n63#48\n51#print_token\n63#48\n57#256\n27\n45\n44#28\n25#1\n63#50\n28#print\n27#1\n27\n27#1\n22\n48#2\n30\n63#51\n28#gettype\n27\n27#1\n22\n48#1\n2#dict\n15\n37#9\n63#52\n28#print_token\n27\n27#1\n22\n48#1\n30\n35#1\n36#27\n30\n53\n26#print_token\n63#54\n51#compile_error\n2#\n25#3\n63#54\n57#769\n63#55\n27#2\n24\n16\n37#28\n63#57\n28#findpos\n27#2\n48#1\n25#4\n63#58\n28#find_error_line\n27#1\n27#4\n48#2\n25#5\n63#59\n28#raise\n28#Exception\n2#Error at \n27\n4\n2#:\\n\n4\n27#5\n4\n27#3\n4\n48#1\n48#1\n30\n35#8\n63#61\n28#raise\n28#Exception\n27#3\n48#1\n48#1\n30\n53\n26#compile_error\n63#64\n2#-=[];,./!%*()+{}:<>@^\n26#SYMBOL_CHARS\n63#66\n31\n2#as\n32\n2#def\n32\n2#class\n32\n2#return\n32\n2#pass\n32\n2#and\n32\n2#or\n32\n2#not\n32\n2#in\n32\n2#import\n32\n2#is\n32\n2#while\n32\n2#break\n32\n2#for\n32\n2#continue\n32\n2#if\n32\n2#else\n32\n2#elif\n32\n2#try\n32\n2#except\n32\n2#raise\n32\n2#global\n32\n2#del\n32\n2#from\n32\n2#None\n32\n2#assert\n32\n26#KEYWORDS\n63#72\n31\n2#-=\n32\n2#+=\n32\n2#*=\n32\n2#/=\n32\n2#==\n32\n2#!=\n32\n2#<=\n32\n2#>=\n32\n2#=\n32\n2#-\n32\n2#+\n32\n2#*\n32\n2#/\n32\n2#%\n32\n2#<\n32\n2#>\n32\n2#[\n32\n2#]\n32\n2#{\n32\n2#}\n32\n2#(\n32\n2#)\n32\n2#.\n32\n2#:\n32\n2#,\n32\n2#;\n32\n26#SYMBOLS\n63#79\n31\n2#[\n32\n2#(\n32\n2#{\n32\n26#B_BEGIN\n63#80\n31\n2#]\n32\n2#)\n32\n2#}\n32\n26#B_END\n63#82\n54#Tokenizer\n51#__init__\n63#84\n57#256\n63#85\n3#1.0\n27\n2#y\n21\n63#86\n3\n27\n2#yi\n21\n63#87\n28#True\n27\n2#nl\n21\n63#88\n31\n27\n2#res\n21\n63#89\n31\n3\n32\n27\n2#indent\n21\n63#90\n3\n27\n2#braces\n21\n53\n28#Tokenizer\n2#__init__\n21\n51#add\n63#92\n57#768\n63#93\n27#1\n2#in\n15\n37#57\n63#94\n27\n2#res\n22\n2#pop\n22\n48\n25#3\n63#95\n27#3\n2#type\n22\n2#not\n15\n37#17\n63#96\n27\n2#res\n22\n2#append\n22\n28#Token\n2#notin\n27#2\n27\n2#f\n22\n48#3\n48#1\n30\n35#25\n63#98\n27\n2#res\n22\n2#append\n22\n27#3\n48#1\n30\n63#99\n27\n2#res\n22\n2#append\n22\n28#Token\n27#1\n27#2\n27\n2#f\n22\n48#3\n48#1\n30\n35#76\n27#1\n2#not\n15\n37#57\n63#102\n27\n2#res\n22\n2#pop\n22\n48\n25#3\n63#103\n27#3\n2#type\n22\n2#is\n15\n37#17\n63#104\n27\n2#res\n22\n2#append\n22\n28#Token\n2#isnot\n27#2\n27\n2#f\n22\n48#3\n48#1\n30\n35#25\n63#106\n27\n2#res\n22\n2#append\n22\n27#3\n48#1\n30\n63#107\n27\n2#res\n22\n2#append\n22\n28#Token\n27#1\n27#2\n27\n2#f\n22\n48#3\n48#1\n30\n35#16\n63#109\n27\n2#res\n22\n2#append\n22\n28#Token\n27#1\n27#2\n27\n2#f\n22\n48#3\n48#1\n30\n53\n28#Tokenizer\n2#add\n21\n56\n63#111\n51#clean\n63#111\n57#256\n63#112\n27\n2#replace\n22\n2#\\r\n2#\n48#2\n25\n63#113\n27\n52\n53\n26#clean\n63#115\n51#tokenize\n63#115\n57#256\n63#116\n28#clean\n27\n48#1\n25\n63#117\n28#do_tokenize\n27\n49#1\n52\n53\n26#tokenize\n63#119\n51#is_blank\n63#119\n57#256\n63#120\n27\n2# \n15\n39#5\n27\n2# \n15\n20\n52\n53\n26#is_blank\n63#122\n51#is_number_begin\n63#122\n57#256\n63#123\n27\n2#0\n13\n38#5\n27\n2#9\n14\n19\n52\n53\n26#is_number_begin\n63#125\n51#do_tokenize\n63#125\n57#256\n63#126\n28#Tokenizer\n48\n25#1\n63#127\n3\n25#2\n63#128\n28#len\n27\n48#1\n25#3\n63#129\n27#2\n27#3\n12\n37#183\n63#130\n27\n27#2\n22\n25#4\n63#131\n31\n27#1\n2#y\n22\n32\n27#2\n27#1\n2#yi\n22\n5\n3#1.0\n4\n32\n27#1\n2#f\n21\n63#132\n27#1\n2#nl\n22\n37#15\n63#133\n28#False\n27#1\n2#nl\n21\n63#134\n28#do_indent\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#141\n27#4\n2#\\n\n15\n37#10\n63#136\n28#do_nl\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#128\n27#4\n28#SYMBOL_CHARS\n17\n37#10\n63#138\n28#do_symbol\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#115\n28#is_number_begin\n27#4\n48#1\n37#10\n63#140\n28#do_number\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#102\n28#is_name_begin\n27#4\n48#1\n37#10\n63#142\n28#do_name\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#89\n27#4\n2#\"\n15\n39#5\n27#4\n2#'\n15\n20\n37#10\n63#144\n28#do_string\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#71\n27#4\n2##\n15\n37#10\n63#146\n28#do_comment\n27#1\n27\n27#2\n27#3\n48#4\n25#2\n35#58\n27#4\n2#\\\\\n15\n38#9\n27\n27#2\n3#1.0\n4\n22\n2#\\n\n15\n19\n37#21\n63#148\n27#2\n3#2.0\n4\n25#2\n63#149\n27#1\n2#y\n22\n3#1.0\n4\n27#1\n2#y\n21\n63#150\n27#2\n27#1\n2#yi\n21\n35#25\n28#is_blank\n27#4\n48#1\n37#7\n63#152\n27#2\n3#1.0\n4\n25#2\n35#15\n63#154\n28#compile_error\n2#do_tokenize\n27\n28#Token\n2#\n2#\n27#1\n2#f\n22\n48#3\n2#unknown token\n48#4\n30\n36#185\n63#155\n28#indent\n27#1\n3\n48#2\n30\n63#156\n27#1\n2#res\n22\n52\n53\n26#do_tokenize\n63#158\n51#do_nl\n63#158\n57#1024\n63#159\n27\n2#braces\n22\n10\n37#10\n63#160\n27\n2#add\n22\n2#nl\n2#nl\n48#2\n30\n35#1\n63#161\n27#2\n3#1.0\n4\n25#2\n63#162\n28#True\n27\n2#nl\n21\n63#163\n27\n2#y\n22\n3#1.0\n4\n27\n2#y\n21\n63#164\n27#2\n27\n2#yi\n21\n63#165\n27#2\n52\n53\n26#do_nl\n63#167\n51#do_indent\n63#167\n57#1024\n63#168\n3\n25#4\n63#169\n27#2\n27#3\n12\n37#30\n63#170\n27#1\n27#2\n22\n25#5\n63#171\n27#5\n2# \n16\n38#5\n27#5\n2# \n16\n19\n37#4\n63#172\n35#13\n35#1\n63#173\n27#2\n3#1.0\n4\n25#2\n63#174\n27#4\n3#1.0\n4\n25#4\n36#32\n63#177\n27\n2#braces\n22\n10\n38#5\n27#5\n2#\\n\n16\n19\n38#5\n27#5\n2##\n16\n19\n38#5\n27#2\n27#3\n12\n19\n37#8\n63#178\n28#indent\n27\n27#4\n48#2\n30\n35#1\n63#179\n27#2\n52\n53\n26#do_indent\n63#181\n51#indent\n63#181\n57#512\n63#182\n27#1\n27\n2#indent\n22\n3#-1.0\n22\n15\n37#4\n24\n52\n35#73\n27#1\n27\n2#indent\n22\n3#-1.0\n22\n11\n37#19\n63#185\n27\n2#indent\n22\n2#append\n22\n27#1\n48#1\n30\n63#186\n27\n2#add\n22\n2#indent\n27#1\n48#2\n30\n35#47\n27#1\n27\n2#indent\n22\n3#-1.0\n22\n12\n37#39\n63#188\n27\n2#indent\n22\n2#index\n22\n27#1\n48#1\n25#2\n63#189\n28#len\n27\n2#indent\n22\n48#1\n27#2\n3#1.0\n4\n11\n37#18\n63#190\n27\n2#indent\n22\n2#pop\n22\n48\n25#1\n63#191\n27\n2#add\n22\n2#dedent\n27#1\n48#2\n30\n36#26\n35#1\n53\n26#indent\n63#194\n51#symbol_match\n63#194\n57#768\n63#195\n27\n27#1\n27#1\n28#len\n27#2\n48#1\n4\n23\n27#2\n15\n52\n53\n26#symbol_match\n63#197\n51#do_symbol\n63#197\n57#1024\n63#198\n24\n25#4\n28#SYMBOLS\n45\n44#23\n25#5\n63#200\n28#symbol_match\n27#1\n27#2\n27#5\n48#3\n37#14\n63#201\n27#2\n28#len\n27#5\n48#1\n4\n25#2\n63#202\n27#5\n25#4\n63#203\n35#3\n35#1\n36#22\n30\n63#204\n27#4\n24\n15\n37#7\n63#205\n28#raise\n2#invalid symbol\n48#1\n30\n35#1\n63#206\n27\n2#add\n22\n27#4\n27#4\n48#2\n30\n63#207\n27#4\n28#B_BEGIN\n17\n37#11\n63#208\n27\n2#braces\n22\n3#1.0\n4\n27\n2#braces\n21\n35#1\n63#209\n27#4\n28#B_END\n17\n37#11\n63#210\n27\n2#braces\n22\n3#1.0\n5\n27\n2#braces\n21\n35#1\n63#211\n27#2\n52\n53\n26#do_symbol\n63#213\n51#do_number\n63#213\n57#1024\n63#214\n27#1\n27#2\n22\n25#4\n63#214\n27#2\n3#1.0\n4\n25#2\n63#214\n24\n25#5\n63#215\n27#2\n27#3\n12\n37#45\n63#216\n27#1\n27#2\n22\n25#5\n63#217\n27#5\n2#0\n12\n39#5\n27#5\n2#9\n11\n20\n38#10\n27#5\n2#a\n12\n39#5\n27#5\n2#f\n11\n20\n19\n38#5\n27#5\n2#x\n16\n19\n37#4\n63#217\n35#13\n35#1\n63#218\n27#4\n27#5\n4\n25#4\n63#218\n27#2\n3#1.0\n4\n25#2\n36#47\n63#219\n27#5\n2#.\n15\n37#46\n63#220\n27#4\n27#5\n4\n25#4\n63#220\n27#2\n3#1.0\n4\n25#2\n63#221\n27#2\n27#3\n12\n37#30\n63#222\n27#1\n27#2\n22\n25#5\n63#223\n27#5\n2#0\n12\n39#5\n27#5\n2#9\n11\n20\n37#4\n63#223\n35#13\n35#1\n63#224\n27#4\n27#5\n4\n25#4\n63#224\n27#2\n3#1.0\n4\n25#2\n36#32\n35#1\n63#225\n27\n2#add\n22\n2#number\n28#float\n27#4\n48#1\n48#2\n30\n63#226\n27#2\n52\n53\n26#do_number\n63#228\n51#is_name_begin\n63#228\n57#256\n63#229\n27\n2#a\n13\n38#5\n27\n2#z\n14\n19\n39#10\n27\n2#A\n13\n38#5\n27\n2#Z\n14\n19\n20\n39#5\n27\n2#_$\n17\n20\n52\n53\n26#is_name_begin\n63#231\n51#is_name\n63#231\n57#256\n63#232\n27\n2#a\n13\n38#5\n27\n2#z\n14\n19\n39#10\n27\n2#A\n13\n38#5\n27\n2#Z\n14\n19\n20\n39#5\n27\n2#_$\n17\n20\n39#10\n27\n2#0\n13\n38#5\n27\n2#9\n14\n19\n20\n52\n53\n26#is_name\n63#234\n51#do_name\n63#234\n57#1024\n63#235\n27#1\n27#2\n22\n25#4\n63#235\n27#2\n3#1.0\n4\n25#2\n63#236\n27#2\n27#3\n12\n37#26\n63#237\n27#1\n27#2\n22\n25#5\n63#238\n28#is_name\n27#5\n48#1\n10\n37#4\n63#238\n35#13\n35#1\n63#239\n27#4\n27#5\n4\n25#4\n63#240\n27#2\n3#1.0\n4\n25#2\n36#28\n63#241\n27#4\n28#KEYWORDS\n17\n37#10\n63#242\n27\n2#add\n22\n27#4\n27#4\n48#2\n30\n35#9\n63#244\n27\n2#add\n22\n2#name\n27#4\n48#2\n30\n63#245\n27#2\n52\n53\n26#do_name\n63#247\n51#do_string\n63#247\n57#1024\n63#248\n2#\n25#4\n63#249\n27#1\n27#2\n22\n25#5\n63#250\n27#2\n3#1.0\n4\n25#2\n63#251\n27#3\n27#2\n5\n25#6\n63#253\n27#6\n3#5.0\n13\n38#7\n27#1\n27#2\n22\n27#5\n15\n19\n38#9\n27#1\n27#2\n3#1.0\n4\n22\n27#5\n15\n19\n37#89\n63#255\n27#2\n3#2.0\n4\n25#2\n63#256\n27#2\n27#3\n3#2.0\n5\n12\n37#76\n63#257\n27#1\n27#2\n22\n25#7\n63#258\n27#7\n27#5\n15\n38#9\n27#1\n27#2\n3#1.0\n4\n22\n27#5\n15\n19\n38#9\n27#1\n27#2\n3#2.0\n4\n22\n27#5\n15\n19\n37#17\n63#259\n27#2\n3#3.0\n4\n25#2\n63#260\n27\n2#add\n22\n2#string\n27#4\n48#2\n30\n63#261\n35#33\n35#31\n63#263\n27#4\n27#7\n4\n25#4\n63#263\n27#2\n3#1.0\n4\n25#2\n63#264\n27#7\n2#\\n\n15\n37#16\n63#265\n27\n2#y\n22\n3#1.0\n4\n27\n2#y\n21\n63#266\n27#2\n27\n2#x\n21\n35#1\n36#80\n35#111\n63#268\n27#2\n27#3\n12\n37#106\n63#269\n27#1\n27#2\n22\n25#7\n63#270\n27#7\n2#\\\\\n15\n37#65\n63#271\n27#2\n3#1.0\n4\n25#2\n63#271\n27#1\n27#2\n22\n25#7\n63#272\n27#7\n2#n\n15\n37#5\n63#272\n2#\\n\n25#7\n35#35\n27#7\n2#r\n15\n37#7\n63#273\n28#chr\n3#13.0\n48#1\n25#7\n35#25\n27#7\n2#t\n15\n37#5\n63#274\n2# \n25#7\n35#17\n27#7\n2#0\n15\n37#5\n63#275\n2#\\0\n25#7\n35#9\n27#7\n2#b\n15\n37#5\n63#276\n2#\n25#7\n35#1\n63#277\n27#4\n27#7\n4\n25#4\n63#277\n27#2\n3#1.0\n4\n25#2\n35#31\n27#7\n27#5\n15\n37#17\n63#279\n27#2\n3#1.0\n4\n25#2\n63#280\n27\n2#add\n22\n2#string\n27#4\n48#2\n30\n63#281\n35#13\n35#11\n63#283\n27#4\n27#7\n4\n25#4\n63#283\n27#2\n3#1.0\n4\n25#2\n36#108\n63#284\n27#2\n52\n53\n26#do_string\n63#286\n51#do_comment\n63#286\n57#1024\n63#287\n27#2\n3#1.0\n4\n25#2\n63#288\n2#\n25#4\n63#289\n27#2\n27#3\n12\n37#24\n63#290\n27#1\n27#2\n22\n2#\\n\n15\n37#4\n63#290\n35#15\n35#1\n63#291\n27#4\n27#1\n27#2\n22\n4\n25#4\n63#292\n27#2\n3#1.0\n4\n25#2\n36#26\n63#293\n27#4\n2#startswith\n22\n2#@debugger\n48#1\n37#10\n63#294\n27\n2#add\n22\n2#@\n2#debugger\n48#2\n30\n35#1\n63#295\n27#2\n52\n53\n26#do_comment\n63#298\n51#_main\n63#298\n57\n63#299\n2#sys\n1#1\n63#300\n28#sys\n2#argv\n22\n25\n63#301\n28#len\n27\n48#1\n3#2.0\n16\n37#10\n63#302\n28#print\n2#error arguments, arguments = \n27\n48#2\n30\n24\n52\n35#1\n63#304\n27\n3#1.0\n22\n25#1\n63#305\n28#print\n2#tokenize file: %s ...\n27#1\n8\n48#1\n30\n63#306\n28#load\n27#1\n48#1\n25#2\n63#307\n28#tokenize\n27#2\n48#1\n25#3\n27#3\n45\n44#25\n25#4\n63#309\n2#%s %s %r\n31\n27#4\n2#pos\n22\n32\n27#4\n2#type\n22\n32\n27#4\n2#val\n22\n32\n8\n25#5\n63#310\n28#print\n27#5\n48#1\n30\n36#24\n30\n53\n26#_main\n63#312\n28#__name__\n2#__main__\n15\n37#6\n63#313\n28#_main\n48\n30\n35#1\n61\n"; const char* mp_parse_bin="31\n2#number\n32\n2#string\n32\n2#name\n32\n2#None\n32\n26##0\n31\n2#=\n32\n2#+=\n32\n2#-=\n32\n2#*=\n32\n2#/=\n32\n2#%=\n32\n26##1\n31\n2#>\n32\n2#<\n32\n2#==\n32\n2#is\n32\n2#!=\n32\n2#>=\n32\n2#<=\n32\n2#in\n32\n2#notin\n32\n2#isnot\n32\n26##2\n31\n2#+\n32\n2#-\n32\n26##3\n31\n2#*\n32\n2#/\n32\n2#%\n32\n26##4\n31\n2#.\n32\n2#(\n32\n2#[\n32\n26##5\n31\n2#nl\n32\n2#eof\n32\n26##6\n31\n2#number\n32\n2#string\n32\n2#None\n32\n2#name\n32\n26##7\n67#mp_parse\n63#7\n2#mp_tokenize\n2#*\n1#2\n63#9\n2#tm\n28#globals\n48\n17\n10\n37#6\n63#10\n2#boot\n2#*\n1#2\n35#1\n63#12\n31\n2#nl\n32\n2#dedent\n32\n26#_smp_end_list\n63#13\n31\n2#nl\n32\n2#;\n32\n26#_skip_op\n63#16\n54#AstNode\n51#__init__\n24\n25#1\n24\n25#2\n24\n25#3\n63#18\n57#259\n63#19\n27#1\n27\n2#type\n21\n63#20\n27#2\n27\n2#first\n21\n63#21\n27#3\n27\n2#second\n21\n53\n28#AstNode\n2#__init__\n21\n56\n63#23\n54#ParserCtx\n51#__init__\n63#24\n57#768\n63#26\n28#Token\n2#nl\n2#nl\n24\n48#3\n27\n2#token\n21\n63#27\n28#Token\n2#eof\n2#eof\n24\n48#3\n27\n2#eof\n21\n63#28\n27#1\n2#append\n22\n27\n2#token\n22\n48#1\n30\n63#29\n27#1\n2#append\n22\n27\n2#eof\n22\n48#1\n30\n63#30\n27#1\n27\n2#tokens\n21\n63#31\n27#1\n27\n2#r\n21\n63#32\n3\n27\n2#i\n21\n63#33\n28#len\n27#1\n48#1\n27\n2#l\n21\n63#34\n31\n27\n2#tree\n21\n63#35\n27#2\n27\n2#src\n21\n63#36\n24\n27\n2#last_token\n21\n53\n28#ParserCtx\n2#__init__\n21\n51#next\n63#38\n57#256\n63#39\n27\n2#i\n22\n27\n2#l\n22\n12\n37#22\n63#40\n27\n2#r\n22\n27\n2#i\n22\n22\n27\n2#token\n21\n63#41\n27\n2#i\n22\n3#1.0\n4\n27\n2#i\n21\n35#8\n63#43\n27\n2#eof\n22\n27\n2#token\n21\n53\n28#ParserCtx\n2#next\n21\n51#pop\n63#45\n57#256\n63#46\n27\n2#tree\n22\n2#pop\n22\n49\n52\n53\n28#ParserCtx\n2#pop\n21\n51#last\n63#48\n57#256\n63#49\n27\n2#tree\n22\n3#-1.0\n22\n52\n53\n28#ParserCtx\n2#last\n21\n51#add\n63#51\n57#512\n63#52\n27\n2#tree\n22\n2#append\n22\n27#1\n48#1\n30\n63#53\n27#1\n27\n2#last_token\n21\n53\n28#ParserCtx\n2#add\n21\n51#add_op\n63#55\n57#512\n63#56\n27\n2#pop\n22\n48\n25#2\n63#57\n27\n2#pop\n22\n48\n25#3\n63#58\n27\n2#add\n22\n28#AstNode\n27#1\n27#3\n27#2\n48#3\n48#1\n30\n53\n28#ParserCtx\n2#add_op\n21\n51#visit_block\n63#60\n57#256\n63#61\n27\n2#tree\n22\n2#append\n22\n2#block\n48#1\n30\n63#62\n28#parse_block\n27\n48#1\n30\n63#63\n31\n25#1\n63#64\n27\n2#tree\n22\n2#pop\n22\n48\n25#2\n63#65\n27#2\n2#block\n16\n37#17\n63#66\n27#1\n2#append\n22\n27#2\n48#1\n30\n63#67\n27\n2#tree\n22\n2#pop\n22\n48\n25#2\n36#19\n63#68\n27#1\n2#reverse\n22\n48\n30\n63#69\n27#1\n52\n53\n28#ParserCtx\n2#visit_block\n21\n56\n63#71\n51#expect\n24\n25#2\n63#71\n57#513\n63#72\n27\n2#token\n22\n2#type\n22\n27#1\n16\n37#29\n63#73\n2#expect %r but now is %r::%s\n31\n27#1\n32\n27\n2#token\n22\n2#type\n22\n32\n27#2\n32\n8\n25#3\n63#74\n28#compile_error\n2#parse\n27\n2#src\n22\n27\n2#token\n22\n27#3\n48#4\n30\n35#1\n63#75\n27\n2#next\n22\n48\n30\n53\n26#expect\n63#77\n51#assert_type\n63#77\n57#768\n63#78\n27\n2#token\n22\n2#type\n22\n27#1\n16\n37#11\n63#79\n28#parse_error\n27\n27\n2#token\n22\n27#2\n48#3\n30\n35#1\n53\n26#assert_type\n63#82\n51#add_op\n63#82\n57#512\n63#83\n27\n2#tree\n22\n2#pop\n22\n48\n25#2\n63#84\n27\n2#tree\n22\n2#pop\n22\n48\n25#3\n63#85\n27\n2#add\n22\n28#AstNode\n27#1\n27#3\n27#2\n48#3\n48#1\n30\n53\n26#add_op\n63#87\n51#build_op\n63#87\n57#512\n63#88\n27\n2#tree\n22\n2#pop\n22\n48\n25#2\n63#89\n27\n2#tree\n22\n2#pop\n22\n48\n25#3\n63#90\n28#AstNode\n27#1\n27#3\n27#2\n49#3\n52\n53\n26#build_op\n63#93\n51#parse_error\n24\n25#1\n2#Unknown\n25#2\n63#93\n57#258\n63#94\n27#1\n24\n16\n37#12\n63#95\n28#compile_error\n2#parse\n27\n2#src\n22\n27#1\n27#2\n48#4\n30\n35#6\n63#97\n28#raise\n2#assert_type error\n48#1\n30\n53\n26#parse_error\n63#99\n51#baseitem\n63#99\n57#256\n63#100\n27\n2#token\n22\n2#type\n22\n25#1\n63#101\n27\n2#token\n22\n25#2\n63#102\n27#1\n28##0\n17\n37#15\n63#103\n27\n2#next\n22\n48\n30\n63#104\n27\n2#add\n22\n27#2\n48#1\n30\n35#250\n27#1\n2#[\n15\n37#68\n63#106\n27\n2#next\n22\n48\n30\n63#107\n28#AstNode\n2#list\n48#1\n25#3\n63#108\n27#2\n2#pos\n22\n27#3\n2#pos\n21\n63#109\n27\n2#token\n22\n2#type\n22\n2#]\n15\n37#13\n63#110\n27\n2#next\n22\n48\n30\n63#111\n24\n27#3\n2#first\n21\n35#21\n63#113\n28#exp\n27\n2#,\n48#2\n30\n63#114\n28#expect\n27\n2#]\n48#2\n30\n63#115\n27\n2#pop\n22\n48\n27#3\n2#first\n21\n63#116\n27\n2#add\n22\n27#3\n48#1\n30\n35#179\n27#1\n2#(\n15\n37#53\n63#118\n27\n2#next\n22\n48\n30\n63#119\n28#exp\n27\n2#,\n48#2\n30\n63#120\n28#expect\n27\n2#)\n48#2\n30\n63#122\n27\n2#last\n22\n48\n25#4\n63#123\n28#gettype\n27#4\n48#1\n2#list\n15\n37#21\n63#124\n27\n2#pop\n22\n48\n30\n63#125\n28#AstNode\n2#tuple\n27#4\n48#2\n25#3\n63#126\n27\n2#add\n22\n27#3\n48#1\n30\n35#1\n35#123\n27#1\n2#{\n15\n37#119\n63#128\n27\n2#next\n22\n48\n30\n63#129\n28#AstNode\n2#dict\n48#1\n25#3\n63#130\n31\n25#5\n63#131\n27\n2#token\n22\n2#type\n22\n2#}\n16\n37#61\n63#132\n28#exp\n27\n2#or\n48#2\n30\n63#133\n28#expect\n27\n2#:\n48#2\n30\n63#134\n28#exp\n27\n2#or\n48#2\n30\n63#136\n27\n2#pop\n22\n48\n25#6\n63#137\n27\n2#pop\n22\n48\n25#7\n63#138\n27#5\n2#append\n22\n31\n27#7\n32\n27#6\n32\n48#1\n30\n63#139\n27\n2#token\n22\n2#type\n22\n2#}\n15\n37#4\n63#140\n35#9\n35#1\n63#141\n28#expect\n27\n2#,\n48#2\n30\n36#67\n63#142\n27\n2#token\n22\n2#type\n22\n2#,\n15\n37#8\n63#143\n27\n2#next\n22\n48\n30\n35#1\n63#144\n28#expect\n27\n2#}\n48#2\n30\n63#145\n27#5\n27#3\n2#first\n21\n63#146\n27\n2#add\n22\n27#3\n48#1\n30\n35#1\n53\n26#baseitem\n63#148\n51#expr\n63#148\n57#256\n63#149\n28#exp\n27\n2#=\n49#2\n52\n53\n26#expr\n63#151\n51#parse_assign_or_exp\n63#151\n57#256\n63#152\n28#exp\n27\n2#=\n49#2\n52\n53\n26#parse_assign_or_exp\n63#154\n51#parse_rvalue\n63#154\n57#256\n63#155\n28#exp\n27\n2#rvalue\n49#2\n52\n53\n26#parse_rvalue\n63#157\n51#parse_var\n63#157\n57#256\n63#158\n27\n2#token\n22\n25#1\n63#159\n28#expect\n27\n2#name\n48#2\n30\n63#160\n27\n2#add\n22\n27#1\n48#1\n30\n63#162\n28#True\n37#63\n63#163\n27\n2#token\n22\n2#type\n22\n2#.\n15\n37#14\n63#164\n28#parse_var\n27\n48#1\n30\n63#165\n27\n2#add_op\n22\n2#attr\n48#1\n30\n35#40\n27\n2#token\n22\n2#type\n22\n2#[\n15\n37#26\n63#167\n27\n2#next\n22\n48\n30\n63#168\n28#parse_rvalue\n27\n48#1\n30\n63#169\n28#expect\n27\n2#]\n48#2\n30\n63#170\n27\n2#add_op\n22\n2#get\n48#1\n30\n35#7\n63#172\n27\n2#pop\n22\n49\n52\n36#63\n53\n26#parse_var\n63#174\n51#parse_var_list\n63#174\n57#256\n63#175\n31\n28#parse_var\n27\n48#1\n32\n25#1\n63#176\n27\n2#token\n22\n2#type\n22\n2#,\n15\n37#14\n63#177\n28#parse_var\n27\n48#1\n25#2\n63#178\n27#1\n2#append\n22\n27#2\n48#1\n30\n36#20\n63#180\n28#len\n27#1\n48#1\n3#1.0\n11\n37#9\n63#181\n27\n2#add\n22\n27#1\n48#1\n30\n35#10\n63#183\n27\n2#add\n22\n27#1\n3\n22\n48#1\n30\n53\n26#parse_var_list\n63#194\n51#exp\n63#194\n57#512\n63#196\n27#1\n2#=\n15\n37#43\n63#198\n28#exp\n27\n2#,\n48#2\n30\n63#199\n27\n2#token\n22\n2#type\n22\n28##1\n17\n37#27\n63#200\n27\n2#token\n22\n2#type\n22\n25#2\n63#201\n27\n2#next\n22\n48\n30\n63#202\n28#exp\n27\n2#,\n48#2\n30\n63#203\n28#add_op\n27\n27#2\n48#2\n30\n35#1\n35#374\n27#1\n2#,\n15\n39#5\n27#1\n2#rvalue\n15\n20\n37#85\n63#205\n28#exp\n27\n2#or\n48#2\n30\n63#206\n24\n25#3\n63#207\n27\n2#token\n22\n2#type\n22\n2#,\n15\n37#53\n63#208\n27#3\n24\n15\n37#10\n63#209\n31\n27\n2#pop\n22\n48\n32\n25#3\n35#1\n63#210\n27\n2#next\n22\n48\n30\n63#211\n27\n2#token\n22\n2#type\n22\n2#]\n15\n37#4\n63#212\n35#22\n35#1\n63#213\n28#exp\n27\n2#or\n48#2\n30\n63#214\n27\n2#pop\n22\n48\n25#4\n63#215\n27#3\n2#append\n22\n27#4\n48#1\n30\n36#59\n63#216\n27#3\n24\n16\n37#9\n63#217\n27\n2#add\n22\n27#3\n48#1\n30\n35#1\n35#281\n27#1\n2#or\n15\n37#36\n63#219\n28#exp\n27\n2#and\n48#2\n30\n63#220\n27\n2#token\n22\n2#type\n22\n2#or\n15\n37#20\n63#221\n27\n2#next\n22\n48\n30\n63#222\n28#exp\n27\n2#and\n48#2\n30\n63#223\n28#add_op\n27\n2#or\n48#2\n30\n36#26\n35#242\n27#1\n2#and\n15\n37#36\n63#225\n28#exp\n27\n2#not\n48#2\n30\n63#226\n27\n2#token\n22\n2#type\n22\n2#and\n15\n37#20\n63#227\n27\n2#next\n22\n48\n30\n63#228\n28#exp\n27\n2#not\n48#2\n30\n63#229\n28#add_op\n27\n2#and\n48#2\n30\n36#26\n35#203\n27#1\n2#not\n15\n37#60\n63#231\n27\n2#token\n22\n2#type\n22\n2#not\n15\n37#44\n63#232\n27\n2#token\n22\n2#type\n22\n2#not\n15\n37#34\n63#233\n27\n2#next\n22\n48\n30\n63#234\n28#exp\n27\n2#not\n48#2\n30\n63#235\n28#AstNode\n2#not\n48#1\n25#5\n63#236\n27\n2#pop\n22\n48\n27#5\n2#first\n21\n63#237\n27\n2#add\n22\n27#5\n48#1\n30\n36#40\n35#7\n63#239\n28#exp\n27\n2#cmp\n48#2\n30\n35#140\n27#1\n2#cmp\n15\n37#43\n63#241\n28#exp\n27\n2#+-\n48#2\n30\n63#242\n27\n2#token\n22\n2#type\n22\n28##2\n17\n37#27\n63#244\n27\n2#token\n22\n2#type\n22\n25#2\n63#245\n27\n2#next\n22\n48\n30\n63#246\n28#exp\n27\n2#+-\n48#2\n30\n63#247\n28#add_op\n27\n27#2\n48#2\n30\n36#33\n35#94\n27#1\n2#+-\n15\n37#43\n63#249\n28#exp\n27\n2#factor\n48#2\n30\n63#250\n27\n2#token\n22\n2#type\n22\n28##3\n17\n37#27\n63#251\n27\n2#token\n22\n2#type\n22\n25#2\n63#252\n27\n2#next\n22\n48\n30\n63#253\n28#exp\n27\n2#factor\n48#2\n30\n63#254\n28#add_op\n27\n27#2\n48#2\n30\n36#33\n35#48\n27#1\n2#factor\n15\n37#44\n63#256\n28#call_or_get_exp\n25#6\n63#257\n27#6\n27\n48#1\n30\n63#258\n27\n2#token\n22\n2#type\n22\n28##4\n17\n37#26\n63#259\n27\n2#token\n22\n2#type\n22\n25#2\n63#260\n27\n2#next\n22\n48\n30\n63#261\n27#6\n27\n48#1\n30\n63#262\n28#add_op\n27\n27#2\n48#2\n30\n36#32\n35#1\n53\n26#exp\n63#264\n51#parse_arg_list\n63#264\n57#256\n63#265\n28#AstNode\n2#call\n27\n2#pop\n22\n48\n48#2\n25#1\n63#266\n27\n2#token\n22\n2#type\n22\n2#)\n15\n37#16\n63#267\n27\n2#next\n22\n48\n30\n63#268\n24\n27#1\n2#second\n21\n63#269\n27#1\n52\n35#1\n63#270\n31\n25#2\n63#271\n27\n2#token\n22\n2#type\n22\n2#)\n16\n37#79\n63#272\n27\n2#token\n22\n2#type\n22\n2#*\n15\n37#34\n63#273\n27\n2#next\n22\n48\n30\n63#274\n28#exp\n27\n2#or\n48#2\n30\n63#275\n27\n2#pop\n22\n48\n25#3\n63#276\n27#2\n2#append\n22\n27#3\n48#1\n30\n63#277\n2#apply\n27#1\n2#type\n21\n63#278\n35#38\n35#36\n63#280\n28#exp\n27\n2#or\n48#2\n30\n63#281\n27\n2#pop\n22\n48\n25#3\n63#282\n27#2\n2#append\n22\n27#3\n48#1\n30\n63#283\n27\n2#token\n22\n2#type\n22\n2#,\n15\n37#8\n63#284\n27\n2#next\n22\n48\n30\n35#1\n36#85\n63#285\n28#expect\n27\n2#)\n48#2\n30\n63#286\n27#2\n27#1\n2#second\n21\n63#288\n27#1\n52\n53\n26#parse_arg_list\n63#290\n51#call_or_get_exp\n63#290\n57#256\n63#291\n27\n2#token\n22\n2#type\n22\n2#-\n15\n37#29\n63#292\n27\n2#next\n22\n48\n30\n63#293\n28#call_or_get_exp\n27\n48#1\n30\n63#294\n28#AstNode\n2#neg\n27\n2#pop\n22\n48\n48#2\n25#1\n63#295\n27\n2#add\n22\n27#1\n48#1\n30\n35#236\n63#297\n28#baseitem\n27\n48#1\n30\n63#298\n27\n2#token\n22\n2#type\n22\n28##5\n17\n37#222\n63#299\n27\n2#token\n22\n2#type\n22\n25#2\n63#300\n27#2\n2#[\n15\n37#141\n63#301\n27\n2#next\n22\n48\n30\n63#302\n27\n2#pop\n22\n48\n25#3\n63#303\n24\n25#4\n63#304\n24\n25#5\n63#305\n27\n2#token\n22\n2#type\n22\n2#:\n15\n37#13\n63#306\n28#Token\n2#number\n3\n27\n2#token\n22\n2#pos\n22\n48#3\n25#4\n35#13\n63#308\n28#exp\n27\n2#or\n48#2\n30\n63#309\n27\n2#pop\n22\n48\n25#4\n63#311\n27\n2#token\n22\n2#type\n22\n2#:\n15\n37#35\n63#312\n27\n2#next\n22\n48\n30\n63#313\n27\n2#token\n22\n2#type\n22\n2#]\n15\n37#7\n63#314\n28#Token\n2#None\n48#1\n25#5\n35#13\n63#316\n28#exp\n27\n2#or\n48#2\n30\n63#317\n27\n2#pop\n22\n48\n25#5\n35#1\n63#318\n28#expect\n27\n2#]\n48#2\n30\n63#319\n27#5\n24\n15\n37#16\n63#320\n28#AstNode\n2#get\n27#3\n27#4\n48#3\n25#1\n63#321\n27\n2#add\n22\n27#1\n48#1\n30\n35#20\n63#323\n28#AstNode\n2#slice\n27#3\n27#4\n48#3\n25#1\n63#324\n27#5\n27#1\n2#third\n21\n63#325\n27\n2#add\n22\n27#1\n48#1\n30\n35#69\n27#2\n2#(\n15\n37#20\n63#327\n27\n2#next\n22\n48\n30\n63#328\n28#parse_arg_list\n27\n48#1\n25#1\n63#329\n27\n2#add\n22\n27#1\n48#1\n30\n35#46\n63#331\n27\n2#next\n22\n48\n30\n63#332\n28#baseitem\n27\n48#1\n30\n63#333\n27\n2#pop\n22\n48\n25#6\n63#334\n27\n2#pop\n22\n48\n25#7\n63#335\n28#AstNode\n2#attr\n48#1\n25#1\n63#336\n27#7\n27#1\n2#first\n21\n63#337\n27#6\n27#1\n2#second\n21\n63#338\n27\n2#add\n22\n27#1\n48#1\n30\n36#228\n53\n26#call_or_get_exp\n63#340\n51#_get_path\n63#340\n57#256\n63#341\n27\n2#type\n22\n25#1\n63#342\n27#1\n2#get\n15\n37#17\n63#343\n28#_get_path\n27\n2#first\n22\n48#1\n2#/\n4\n28#_get_path\n27\n2#second\n22\n48#1\n4\n52\n35#25\n27#1\n2#name\n15\n37#7\n63#346\n27\n2#val\n22\n52\n35#15\n27#1\n2#string\n15\n37#7\n63#348\n27\n2#val\n22\n52\n35#5\n63#350\n28#raise\n48\n30\n53\n26#_get_path\n63#352\n51#_path_check\n63#352\n57#512\n63#353\n27#1\n2#type\n22\n2#attr\n15\n37#18\n63#354\n28#_path_check\n27\n27#1\n2#first\n22\n48#2\n30\n63#355\n28#_path_check\n27\n27#1\n2#second\n22\n48#2\n30\n35#18\n27#1\n2#type\n22\n2#name\n15\n37#5\n63#357\n28#True\n52\n35#8\n63#359\n28#parse_error\n27\n27#1\n2#import error\n48#3\n30\n53\n26#_path_check\n63#361\n51#_name_check\n63#361\n57#512\n63#362\n27#1\n2#type\n22\n2#,\n15\n37#18\n63#363\n28#_name_check\n27\n27#1\n2#first\n22\n48#2\n30\n63#364\n28#_name_check\n27\n27#1\n2#second\n22\n48#2\n30\n35#22\n27#1\n2#type\n22\n2#name\n15\n37#5\n63#366\n28#True\n52\n35#12\n63#368\n28#parse_error\n27\n27#1\n2#import error\n27#1\n2#type\n22\n4\n48#3\n30\n53\n26#_name_check\n63#370\n51#parse_from\n63#370\n57#256\n63#371\n28#expect\n27\n2#from\n48#2\n30\n63#372\n28#expr\n27\n48#1\n30\n63#373\n28#expect\n27\n2#import\n48#2\n30\n63#374\n28#AstNode\n2#from\n48#1\n25#1\n63#375\n27\n2#pop\n22\n48\n27#1\n2#first\n21\n63#376\n28#_path_check\n27\n27#1\n2#first\n22\n48#2\n30\n63#377\n27\n2#token\n22\n2#type\n22\n2#*\n16\n37#9\n63#378\n28#raise\n28#Exception\n2#only `from modname import *` is supported\n48#1\n48#1\n30\n35#1\n63#379\n2#string\n27\n2#token\n22\n2#type\n21\n63#380\n27\n2#token\n22\n27#1\n2#second\n21\n63#381\n27\n2#next\n22\n48\n30\n63#383\n27\n2#add\n22\n27#1\n48#1\n30\n53\n26#parse_from\n63#385\n51#parse_import\n63#385\n57#256\n63#386\n27\n2#next\n22\n48\n30\n63#387\n28#expr\n27\n48#1\n30\n63#388\n28#AstNode\n2#import\n48#1\n25#1\n63#389\n27\n2#pop\n22\n48\n27#1\n2#first\n21\n63#390\n27\n2#add\n22\n27#1\n48#1\n30\n53\n26#parse_import\n63#393\n51#skip_nl\n63#393\n57#256\n63#394\n27\n2#token\n22\n2#type\n22\n28#_skip_op\n17\n37#8\n63#395\n27\n2#next\n22\n48\n30\n36#14\n53\n26#skip_nl\n63#397\n51#call_node\n63#397\n57#512\n63#398\n28#AstNode\n2#call\n48#1\n25#2\n63#399\n27\n27#2\n2#first\n21\n63#400\n27#1\n27#2\n2#second\n21\n63#401\n27#2\n52\n53\n26#call_node\n63#403\n51#parse_inner_func\n63#403\n57#256\n63#404\n27\n2#token\n22\n25#1\n63#405\n2#name\n27#1\n2#type\n21\n63#406\n27\n2#next\n22\n48\n30\n63#407\n27\n2#token\n22\n2#type\n22\n2#nl\n15\n37#5\n63#408\n24\n25#2\n35#13\n63#410\n28#exp\n27\n2#,\n48#2\n30\n63#411\n27\n2#pop\n22\n48\n25#2\n63#412\n27\n2#add\n22\n28#call_node\n27#1\n27#2\n48#2\n48#1\n30\n53\n26#parse_inner_func\n63#414\n51#parse_del\n63#414\n57#256\n63#415\n27\n2#next\n22\n48\n30\n63#416\n28#expr\n27\n48#1\n30\n63#417\n28#AstNode\n2#del\n27\n2#pop\n22\n48\n48#2\n25#1\n63#418\n27\n2#add\n22\n27#1\n48#1\n30\n53\n26#parse_del\n63#420\n51#parse_global\n63#420\n57#256\n63#421\n27\n2#next\n22\n48\n30\n63#422\n28#AstNode\n2#global\n48#1\n25#1\n63#423\n28#assert_type\n27\n2#name\n2#Global_exception\n48#3\n30\n63#424\n27\n2#token\n22\n27#1\n2#first\n21\n63#425\n27\n2#add\n22\n27#1\n48#1\n30\n63#426\n27\n2#next\n22\n48\n30\n53\n26#parse_global\n63#428\n51#parse_pass\n63#428\n57#256\n63#429\n27\n2#token\n22\n25#1\n63#430\n27\n2#next\n22\n48\n30\n63#431\n28#AstNode\n27#1\n2#type\n22\n48#1\n25#2\n63#432\n27#1\n2#pos\n22\n27#2\n2#pos\n21\n63#433\n27\n2#add\n22\n27#2\n48#1\n30\n53\n26#parse_pass\n63#435\n51#parse_try\n63#435\n57#256\n63#436\n27\n2#token\n22\n2#pos\n22\n25#1\n63#437\n27\n2#next\n22\n48\n30\n63#438\n28#expect\n27\n2#:\n48#2\n30\n63#439\n28#AstNode\n2#try\n27\n2#visit_block\n22\n48\n48#2\n25#2\n63#440\n27#1\n27#2\n2#pos\n21\n63#441\n28#expect\n27\n2#except\n48#2\n30\n63#442\n27\n2#token\n22\n2#type\n22\n2#name\n15\n37#47\n63#443\n27\n2#next\n22\n48\n30\n63#444\n27\n2#token\n22\n2#type\n22\n2#:\n15\n37#8\n63#445\n28#Token\n2#name\n2#_\n48#2\n25#3\n35#19\n63#447\n28#expect\n27\n2#as\n48#2\n30\n63#448\n27\n2#token\n22\n25#3\n63#449\n28#expect\n27\n2#name\n2#error in try-expression\n48#3\n30\n63#450\n27#3\n27#2\n2#second\n21\n35#6\n63#451\n24\n27#2\n2#second\n21\n63#452\n28#expect\n27\n2#:\n48#2\n30\n63#453\n27\n2#visit_block\n22\n48\n27#2\n2#third\n21\n63#454\n27\n2#add\n22\n27#2\n48#1\n30\n53\n26#parse_try\n63#456\n51#parse_for_items\n63#456\n57#256\n63#457\n27\n2#token\n22\n25#1\n63#458\n28#expect\n27\n2#name\n48#2\n30\n63#459\n31\n27#1\n32\n25#2\n63#460\n27\n2#token\n22\n2#type\n22\n2#,\n15\n37#26\n63#461\n27\n2#next\n22\n48\n30\n63#462\n27\n2#token\n22\n25#1\n63#463\n28#expect\n27\n2#name\n48#2\n30\n63#464\n27#2\n2#append\n22\n27#1\n48#1\n30\n36#32\n63#465\n28#expect\n27\n2#in\n48#2\n30\n63#466\n28#expr\n27\n48#1\n30\n63#467\n28#AstNode\n2#in\n48#1\n25#3\n63#468\n27#2\n27#3\n2#first\n21\n63#469\n27\n2#pop\n22\n48\n27#3\n2#second\n21\n63#470\n27#3\n52\n53\n26#parse_for_items\n63#473\n51#parse_for\n63#473\n57#256\n63#475\n28#AstNode\n2#for\n48#1\n25#1\n63#476\n27\n2#next\n22\n48\n30\n63#477\n28#parse_for_items\n27\n48#1\n25#2\n63#478\n27#2\n27#1\n2#first\n21\n63#479\n28#expect\n27\n2#:\n48#2\n30\n63#480\n27\n2#visit_block\n22\n48\n27#1\n2#second\n21\n63#481\n27\n2#add\n22\n27#1\n48#1\n30\n53\n26#parse_for\n63#483\n51#parse_while\n63#483\n57#256\n63#484\n28#parse_for_while\n27\n2#while\n48#2\n30\n53\n26#parse_while\n63#487\n51#parse_for_while\n63#487\n57#512\n63#488\n28#AstNode\n27#1\n48#1\n25#2\n63#489\n27\n2#next\n22\n48\n30\n63#490\n28#expr\n27\n48#1\n30\n63#491\n27\n2#pop\n22\n48\n27#2\n2#first\n21\n63#492\n28#expect\n27\n2#:\n48#2\n30\n63#493\n27\n2#visit_block\n22\n48\n27#2\n2#second\n21\n63#494\n27\n2#add\n22\n27#2\n48#1\n30\n53\n26#parse_for_while\n63#496\n51#parse_arg_def\n63#496\n57#256\n63#497\n28#expect\n27\n2#(\n48#2\n30\n63#498\n27\n2#token\n22\n2#type\n22\n2#)\n15\n37#11\n63#499\n27\n2#next\n22\n48\n30\n63#500\n31\n52\n35#179\n63#502\n31\n25#1\n63#508\n3\n25#2\n63#509\n27\n2#token\n22\n2#type\n22\n2#name\n15\n37#106\n63#510\n28#AstNode\n2#arg\n48#1\n25#3\n63#511\n27\n2#token\n22\n27#3\n2#first\n21\n63#512\n24\n27#3\n2#second\n21\n63#513\n27\n2#next\n22\n48\n30\n63#514\n27#2\n3#1.0\n15\n37#21\n63#515\n28#expect\n27\n2#=\n48#2\n30\n63#516\n28#baseitem\n27\n48#1\n30\n63#517\n27\n2#pop\n22\n48\n27#3\n2#second\n21\n35#32\n27\n2#token\n22\n2#type\n22\n2#=\n15\n37#24\n63#519\n27\n2#next\n22\n48\n30\n63#520\n28#baseitem\n27\n48#1\n30\n63#521\n27\n2#pop\n22\n48\n27#3\n2#second\n21\n63#522\n3#1.0\n25#2\n35#1\n63#523\n27#1\n2#append\n22\n27#3\n48#1\n30\n63#524\n27\n2#token\n22\n2#type\n22\n2#,\n16\n37#4\n63#524\n35#9\n35#1\n63#525\n27\n2#next\n22\n48\n30\n36#112\n63#526\n27\n2#token\n22\n2#type\n22\n2#*\n15\n37#41\n63#527\n27\n2#next\n22\n48\n30\n63#528\n28#assert_type\n27\n2#name\n2#Invalid arguments\n48#3\n30\n63#529\n28#AstNode\n2#narg\n27\n2#token\n22\n48#2\n25#3\n63#530\n24\n27#3\n2#second\n21\n63#531\n27#1\n2#append\n22\n27#3\n48#1\n30\n63#532\n27\n2#next\n22\n48\n30\n35#1\n63#533\n28#expect\n27\n2#)\n48#2\n30\n63#534\n27#1\n52\n53\n26#parse_arg_def\n63#536\n51#parse_def\n63#536\n57#256\n63#537\n27\n2#next\n22\n48\n30\n63#538\n28#assert_type\n27\n2#name\n2#DefException\n48#3\n30\n63#539\n28#AstNode\n2#def\n48#1\n25#1\n63#540\n27\n2#token\n22\n27#1\n2#first\n21\n63#541\n27\n2#next\n22\n48\n30\n63#542\n28#parse_arg_def\n27\n48#1\n27#1\n2#second\n21\n63#543\n28#expect\n27\n2#:\n48#2\n30\n63#544\n27\n2#visit_block\n22\n48\n27#1\n2#third\n21\n63#545\n27\n2#add\n22\n27#1\n48#1\n30\n53\n26#parse_def\n63#547\n51#parse_class\n63#547\n57#256\n63#548\n28#expect\n27\n2#class\n48#2\n30\n63#550\n28#AstNode\n48\n25#1\n63#551\n2#class\n27#1\n2#type\n21\n63#552\n27\n2#token\n22\n27#1\n2#first\n21\n63#553\n28#expect\n27\n2#name\n48#2\n30\n63#555\n27\n2#token\n22\n2#type\n22\n2#(\n15\n37#34\n63#556\n27\n2#next\n22\n48\n30\n63#557\n28#assert_type\n27\n2#name\n2#ClassException\n48#3\n30\n63#558\n27\n2#token\n22\n27\n2#third\n21\n63#559\n27\n2#next\n22\n48\n30\n63#560\n28#expect\n27\n2#)\n48#2\n30\n35#1\n63#561\n28#expect\n27\n2#:\n48#2\n30\n63#563\n27\n2#visit_block\n22\n48\n27#1\n2#second\n21\n63#565\n28#len\n27#1\n2#second\n22\n48#1\n3\n11\n38#11\n27#1\n2#second\n22\n3\n22\n2#type\n22\n2#string\n15\n19\n37#20\n63#566\n27#1\n2#second\n22\n3\n22\n25#2\n63#567\n27#1\n2#second\n22\n3\n42\n63#568\n27#2\n27#1\n2#doc\n21\n35#1\n63#570\n27\n2#add\n22\n27#1\n48#1\n30\n53\n26#parse_class\n63#572\n51#parse_stm1\n63#572\n57#512\n63#573\n27\n2#next\n22\n48\n30\n63#574\n28#AstNode\n27#1\n48#1\n25#2\n63#575\n27\n2#token\n22\n2#type\n22\n28#_smp_end_list\n17\n37#7\n63#576\n24\n27#2\n2#first\n21\n35#14\n63#578\n28#expr\n27\n48#1\n30\n63#579\n27\n2#pop\n22\n48\n27#2\n2#first\n21\n63#580\n27\n2#add\n22\n27#2\n48#1\n30\n53\n26#parse_stm1\n63#584\n51#parse_if\n63#584\n57#256\n63#585\n28#AstNode\n2#if\n48#1\n25#1\n63#586\n27\n2#next\n22\n48\n30\n63#587\n28#expr\n27\n48#1\n30\n63#588\n27\n2#pop\n22\n48\n27#1\n2#first\n21\n63#589\n28#expect\n27\n2#:\n48#2\n30\n63#590\n27\n2#visit_block\n22\n48\n27#1\n2#second\n21\n63#591\n24\n27#1\n2#third\n21\n63#592\n27#1\n25#2\n63#593\n27#2\n25#3\n63#594\n27\n2#token\n22\n2#type\n22\n2#elif\n15\n37#63\n63#595\n27\n2#token\n22\n2#type\n22\n2#elif\n15\n37#53\n63#596\n28#AstNode\n2#if\n48#1\n25#4\n63#597\n27\n2#next\n22\n48\n30\n63#598\n28#expr\n27\n48#1\n30\n63#599\n28#expect\n27\n2#:\n48#2\n30\n63#600\n27\n2#pop\n22\n48\n27#4\n2#first\n21\n63#601\n27\n2#visit_block\n22\n48\n27#4\n2#second\n21\n63#602\n24\n27#4\n2#third\n21\n63#603\n27#4\n27#2\n2#third\n21\n63#604\n27#4\n25#2\n36#59\n35#1\n63#605\n27\n2#token\n22\n2#type\n22\n2#else\n15\n37#22\n63#606\n27\n2#next\n22\n48\n30\n63#607\n28#expect\n27\n2#:\n48#2\n30\n63#608\n27\n2#visit_block\n22\n48\n27#2\n2#third\n21\n35#1\n63#609\n27\n2#add\n22\n27#3\n48#1\n30\n53\n26#parse_if\n63#611\n51#parse_return\n63#611\n57#256\n63#612\n28#parse_stm1\n27\n2#return\n48#2\n30\n53\n26#parse_return\n63#614\n51#parse_annotation\n63#614\n57#256\n63#615\n27\n2#token\n22\n25#1\n63#616\n27\n2#next\n22\n48\n30\n63#617\n27\n2#add\n22\n28#AstNode\n2#@\n27#1\n48#2\n48#1\n30\n53\n26#parse_annotation\n63#619\n51#parse_skip\n63#619\n57#256\n63#620\n27\n2#next\n22\n48\n30\n53\n26#parse_skip\n63#622\n51#parse_multi_assign\n63#622\n57#256\n63#623\n27\n2#next\n22\n48\n30\n63#624\n28#expr\n27\n48#1\n30\n63#625\n28#expect\n27\n2#]\n48#2\n30\n63#626\n28#expect\n27\n2#=\n48#2\n30\n63#627\n28#expr\n27\n48#1\n30\n63#628\n28#add_op\n27\n2#=\n48#2\n30\n53\n26#parse_multi_assign\n63#631\n33\n2#from\n28#parse_from\n34\n2#import\n28#parse_import\n34\n2#def\n28#parse_def\n34\n2#class\n28#parse_class\n34\n2#for\n28#parse_for\n34\n2#while\n28#parse_while\n34\n2#if\n28#parse_if\n34\n2#return\n28#parse_return\n34\n2#raise\n28#parse_inner_func\n34\n2#assert\n28#parse_inner_func\n34\n2#break\n28#parse_pass\n34\n2#continue\n28#parse_pass\n34\n2#pass\n28#parse_pass\n34\n2#[\n28#parse_multi_assign\n34\n2#name\n28#parse_assign_or_exp\n34\n2#number\n28#expr\n34\n2#string\n28#expr\n34\n2#try\n28#parse_try\n34\n2#global\n28#parse_global\n34\n2#del\n28#parse_del\n34\n2#;\n28#parse_skip\n34\n2#@\n28#parse_annotation\n34\n26#stmt_map\n63#657\n51#parse_stm\n63#657\n57#256\n63#658\n27\n2#token\n22\n2#type\n22\n25#1\n63#659\n27#1\n28#stmt_map\n17\n10\n37#11\n63#660\n28#parse_error\n27\n27\n2#token\n22\n2#Unknown Expression\n48#3\n30\n35#8\n63#662\n28#stmt_map\n27#1\n22\n27\n48#1\n30\n53\n26#parse_stm\n63#665\n51#parse_block\n63#665\n57#256\n63#666\n28#skip_nl\n27\n48#1\n30\n63#667\n27\n2#token\n22\n2#type\n22\n2#indent\n15\n37#34\n63#668\n27\n2#next\n22\n48\n30\n63#669\n27\n2#token\n22\n2#type\n22\n2#dedent\n16\n37#12\n63#670\n28#parse_stm\n27\n48#1\n30\n63#671\n28#skip_nl\n27\n48#1\n30\n36#18\n63#672\n27\n2#next\n22\n48\n30\n35#38\n63#674\n28#parse_stm\n27\n48#1\n30\n63#675\n27\n2#token\n22\n2#type\n22\n2#;\n15\n37#19\n63#676\n27\n2#token\n22\n2#type\n22\n28##6\n17\n37#4\n63#676\n35#8\n35#6\n63#677\n28#parse_stm\n27\n48#1\n30\n36#25\n63#678\n28#skip_nl\n27\n48#1\n30\n53\n26#parse_block\n63#681\n51#parse\n63#681\n57#256\n63#683\n28#tokenize\n27\n48#1\n25#1\n63#684\n28#ParserCtx\n27#1\n27\n48#2\n25#2\n63#685\n27#2\n2#next\n22\n48\n30\n63#686\n47#38\n63#687\n27#2\n2#token\n22\n2#type\n22\n2#eof\n16\n37#7\n63#688\n28#parse_block\n27#2\n48#1\n30\n36#13\n63#689\n27#2\n2#tree\n22\n25#3\n63#691\n27#3\n24\n15\n37#8\n63#692\n27#2\n2#error\n22\n48\n30\n35#1\n63#693\n27#3\n52\n60\n35#20\n46\n25#4\n63#696\n28#compile_error\n2#parse\n27\n27#2\n2#token\n22\n28#str\n27#4\n48#1\n48#4\n30\n63#697\n28#raise\n27#4\n48#1\n30\n53\n26#parse\n63#699\n51#xml_item\n63#699\n57#512\n63#700\n2#<\n27\n4\n2#>\n4\n2#%r\n27#1\n8\n4\n2#</\n4\n27\n4\n2#>\n4\n52\n53\n26#xml_item\n63#702\n51#xml_start\n63#702\n57#256\n63#703\n2#<\n27\n4\n2#>\n4\n52\n53\n26#xml_start\n63#705\n51#xml_close\n63#705\n57#256\n63#706\n2#</\n27\n4\n2#>\n4\n52\n53\n26#xml_close\n63#708\n51#xml_line_head\n63#708\n57#256\n63#709\n2# \n27\n6\n52\n53\n26#xml_line_head\n63#711\n51#print_ast_line_pos\n63#711\n57#256\n63#712\n28#hasattr\n27\n2#pos\n48#2\n37#57\n63#713\n27\n2#pos\n22\n25#1\n63#715\n27#1\n24\n15\n37#4\n24\n52\n35#1\n63#717\n28#len\n27#1\n48#1\n3\n15\n37#4\n24\n52\n35#1\n63#720\n27\n2#pos\n22\n3\n22\n25#2\n63#721\n28#str\n27#2\n48#1\n25#3\n63#722\n3#4.0\n28#len\n27#3\n48#1\n5\n25#4\n63#723\n28#printf\n2#<!--\n27#3\n2#ljust\n22\n3#4.0\n48#1\n4\n2#-->\n4\n48#1\n30\n35#6\n63#725\n28#printf\n2#<!--****-->\n48#1\n30\n53\n26#print_ast_line_pos\n63#727\n51#print_ast_line\n63#727\n57#512\n63#728\n28#print_ast_line_pos\n27#1\n48#1\n30\n63#729\n28#print\n28#xml_line_head\n27\n48#1\n28#xml_item\n27#1\n2#type\n22\n27#1\n2#val\n22\n48#2\n48#2\n30\n53\n26#print_ast_line\n63#731\n51#print_ast_block_start\n63#731\n57#512\n63#732\n28#print_ast_line_pos\n27#1\n48#1\n30\n63#733\n28#print\n28#xml_line_head\n27\n48#1\n28#xml_start\n27#1\n2#type\n22\n48#1\n48#2\n30\n53\n26#print_ast_block_start\n63#735\n51#print_ast_block_close\n63#735\n57#512\n63#736\n28#print_ast_line_pos\n27#1\n48#1\n30\n63#737\n28#print\n28#xml_line_head\n27\n48#1\n28#xml_close\n27#1\n2#type\n22\n48#1\n48#2\n30\n53\n26#print_ast_block_close\n63#740\n51#print_ast_obj\n3\n25#1\n63#740\n57#257\n63#741\n27\n24\n15\n37#4\n24\n52\n35#1\n63#743\n28#gettype\n27\n48#1\n2#list\n15\n37#8\n63#744\n28#print_ast_list\n27\n27#1\n49#2\n52\n35#1\n63#747\n27\n2#type\n22\n28##7\n17\n37#10\n63#748\n28#print_ast_line\n27#1\n27\n48#2\n30\n24\n52\n35#1\n63#752\n27\n2#type\n22\n2#name\n15\n37#8\n63#753\n28#print_ast_line\n27#1\n27\n48#2\n30\n35#7\n63#755\n28#print_ast_block_start\n27#1\n27\n48#2\n30\n63#757\n28#hasattr\n27\n2#first\n48#2\n37#12\n63#758\n28#print_ast\n27\n2#first\n22\n27#1\n3#2.0\n4\n48#2\n30\n35#1\n63#759\n28#hasattr\n27\n2#doc\n48#2\n37#12\n63#760\n28#print_ast\n27\n2#doc\n22\n27#1\n3#2.0\n4\n48#2\n30\n35#1\n63#761\n28#hasattr\n27\n2#second\n48#2\n37#12\n63#762\n28#print_ast\n27\n2#second\n22\n27#1\n3#2.0\n4\n48#2\n30\n35#1\n63#763\n28#hasattr\n27\n2#third\n48#2\n37#12\n63#764\n28#print_ast\n27\n2#third\n22\n27#1\n3#2.0\n4\n48#2\n30\n35#1\n63#766\n28#print_ast_block_close\n27#1\n27\n48#2\n30\n53\n26#print_ast_obj\n63#768\n51#print_ast_list\n3\n25#1\n63#768\n57#257\n63#769\n28#print_ast_line_pos\n27\n48#1\n30\n63#770\n28#print\n28#xml_line_head\n27#1\n48#1\n2#<block>\n48#2\n30\n27\n45\n44#11\n25#2\n63#772\n28#print_ast_obj\n27#2\n27#1\n3#2.0\n4\n48#2\n30\n36#10\n30\n63#773\n28#print_ast_line_pos\n27\n48#1\n30\n63#774\n28#print\n28#xml_line_head\n27#1\n48#1\n2#</block>\n48#2\n30\n53\n26#print_ast_list\n63#776\n51#print_ast\n3\n25#1\n63#776\n57#257\n63#777\n28#print_ast_obj\n27\n27#1\n49#2\n52\n53\n26#print_ast\n63#779\n51#parsefile\n63#779\n57#256\n63#780\n47#10\n63#781\n28#parse\n28#load\n27\n48#1\n49#1\n52\n60\n35#9\n46\n25#1\n63#783\n28#printf\n2#parse file %s FAIL\n27\n48#2\n30\n53\n26#parsefile\n63#785\n51#tk_list_len\n63#785\n57#256\n63#786\n27\n24\n15\n37#5\n63#786\n3\n52\n35#1\n63#787\n27\n2#type\n22\n2#,\n15\n37#15\n63#787\n28#tk_list_len\n27\n2#first\n22\n48#1\n28#tk_list_len\n27\n2#second\n22\n48#1\n4\n52\n35#1\n63#788\n3#1.0\n52\n53\n26#tk_list_len\n63#790\n28#__name__\n2#__main__\n15\n37#19\n63#791\n2#sys\n1#1\n63#792\n28#parsefile\n28#sys\n2#argv\n22\n3#1.0\n22\n48#1\n26#tree\n63#793\n28#print_ast\n28#tree\n48#1\n30\n35#1\n61\n"; const char* mp_encode_bin="31\n2#string\n32\n2#number\n32\n2#None\n32\n26##0\n67#mp_encode\n63#11\n2#tm\n28#globals\n48\n17\n10\n37#6\n63#12\n2#boot\n2#*\n1#2\n35#1\n63#14\n2#mp_parse\n2#*\n1#2\n63#15\n2#mp_opcode\n2#*\n1#2\n63#17\n24\n26#_asm_ctx\n63#18\n24\n26#_code_list\n63#19\n24\n26#_ext_code_list\n63#21\n31\n28#OP_JUMP_ON_FALSE\n32\n28#OP_JUMP_ON_TRUE\n32\n28#OP_POP_JUMP_ON_FALSE\n32\n28#OP_SETJUMP\n32\n28#OP_JUMP\n32\n28#OP_NEXT\n32\n26#_jmp_list\n63#31\n33\n2#+\n28#OP_ADD\n34\n2#-\n28#OP_SUB\n34\n2#*\n28#OP_MUL\n34\n2#/\n28#OP_DIV\n34\n2#%\n28#OP_MOD\n34\n2#>\n28#OP_GT\n34\n2#<\n28#OP_LT\n34\n2#>=\n28#OP_GTEQ\n34\n2#<=\n28#OP_LTEQ\n34\n2#==\n28#OP_EQEQ\n34\n2#is\n28#OP_EQEQ\n34\n2#!=\n28#OP_NOTEQ\n34\n2#get\n28#OP_GET\n34\n26#_op_dict\n63#47\n33\n2#+=\n28#OP_ADD\n34\n2#-=\n28#OP_SUB\n34\n2#*=\n28#OP_MUL\n34\n2#/=\n28#OP_DIV\n34\n2#%=\n28#OP_MOD\n34\n26#_op_ext_dict\n63#55\n31\n3#-1.0\n32\n26#_begin_tag_list\n63#56\n31\n3#-1.0\n32\n26#_end_tag_list\n63#58\n3\n26#_tag_cnt\n63#59\n3\n26#_global_index\n63#62\n51#init_pop_value_type_set\n63#62\n57\n63#63\n28#set\n31\n2#call\n32\n48#1\n25\n28#_op_dict\n45\n44#10\n25#1\n63#65\n27\n2#add\n22\n27#1\n48#1\n30\n36#9\n30\n63#66\n27\n52\n53\n26#init_pop_value_type_set\n63#68\n28#init_pop_value_type_set\n48\n26#POP_VALUE_TYPE_SET\n63#70\n54#Scope\n51#__init__\n63#71\n57#256\n63#72\n31\n27\n2#locals\n21\n63#73\n31\n27\n2#globals\n21\n63#74\n31\n27\n2#temp_vars\n21\n63#75\n3\n27\n2#jmps\n21\n53\n28#Scope\n2#__init__\n21\n51#add_global\n63#77\n57#512\n63#78\n27#1\n27\n2#globals\n22\n17\n10\n37#11\n63#79\n27\n2#globals\n22\n2#append\n22\n27#1\n48#1\n30\n35#1\n53\n28#Scope\n2#add_global\n21\n51#get_new_temp\n63#81\n57#256\n63#82\n28#len\n27\n2#temp_vars\n22\n48#1\n25#1\n63#83\n2#%\n28#str\n27#1\n48#1\n4\n25#2\n63#84\n27\n2#temp_vars\n22\n2#append\n22\n27#2\n48#1\n30\n63#85\n24\n52\n53\n28#Scope\n2#get_new_temp\n21\n56\n63#87\n54#AsmContext\n51#__init__\n63#88\n57#256\n63#89\n28#Scope\n48\n27\n2#scope\n21\n63#90\n31\n27\n2#scope\n22\n32\n27\n2#scopes\n21\n53\n28#AsmContext\n2#__init__\n21\n51#push\n63#92\n57#256\n63#93\n28#Scope\n48\n27\n2#scope\n21\n63#94\n27\n2#scopes\n22\n2#append\n22\n27\n2#scope\n22\n48#1\n30\n53\n28#AsmContext\n2#push\n21\n51#pop\n63#96\n57#256\n63#97\n27\n2#scopes\n22\n2#pop\n22\n48\n30\n53\n28#AsmContext\n2#pop\n21\n51#add_local\n63#99\n57#512\n63#100\n27#1\n2#val\n22\n27\n2#scope\n22\n2#locals\n22\n17\n10\n37#15\n63#101\n27\n2#scope\n22\n2#locals\n22\n2#append\n22\n27#1\n2#val\n22\n48#1\n30\n35#1\n53\n28#AsmContext\n2#add_local\n21\n51#load\n63#103\n57#512\n63#105\n28#len\n27\n2#scopes\n22\n48#1\n3#1.0\n15\n37#10\n63#106\n28#emit\n28#OP_LOAD_GLOBAL\n27#1\n2#val\n22\n48#2\n30\n35#40\n27#1\n2#val\n22\n27\n2#scope\n22\n2#locals\n22\n17\n10\n37#10\n63#109\n28#emit\n28#OP_LOAD_GLOBAL\n27#1\n2#val\n22\n48#2\n30\n35#20\n63#111\n27\n2#scope\n22\n2#locals\n22\n2#index\n22\n27#1\n2#val\n22\n48#1\n25#2\n63#112\n28#emit\n28#OP_LOAD_LOCAL\n27#2\n48#2\n30\n53\n28#AsmContext\n2#load\n21\n51#index_local\n63#114\n57#512\n63#115\n27#1\n2#val\n22\n27\n2#scope\n22\n2#locals\n22\n17\n10\n37#15\n63#116\n27\n2#scope\n22\n2#locals\n22\n2#append\n22\n27#1\n2#val\n22\n48#1\n30\n35#1\n63#117\n27\n2#scope\n22\n2#locals\n22\n2#index\n22\n27#1\n2#val\n22\n49#1\n52\n53\n28#AsmContext\n2#index_local\n21\n51#store\n63#119\n57#512\n63#121\n28#len\n27\n2#scopes\n22\n48#1\n3#1.0\n15\n37#10\n63#122\n28#emit\n28#OP_STORE_GLOBAL\n27#1\n2#val\n22\n48#2\n30\n35#34\n27#1\n2#val\n22\n27\n2#scope\n22\n2#globals\n22\n17\n10\n37#15\n63#126\n27\n2#index_local\n22\n27#1\n48#1\n25#2\n63#127\n28#emit\n28#OP_STORE_LOCAL\n27#2\n48#2\n30\n35#9\n63#129\n28#emit\n28#OP_STORE_GLOBAL\n27#1\n2#val\n22\n48#2\n30\n53\n28#AsmContext\n2#store\n21\n56\n63#131\n51#asm_init\n63#131\n57\n63#132\n63#133\n63#134\n63#136\n28#AsmContext\n48\n26#_asm_ctx\n63#137\n31\n26#_code_list\n63#138\n31\n26#_ext_code_list\n53\n26#asm_init\n63#140\n51#chk_try_block\n63#140\n57#256\n63#141\n28#_asm_ctx\n2#scope\n22\n2#jmps\n22\n3\n11\n37#5\n63#142\n3\n52\n35#1\n63#143\n28#_asm_ctx\n2#scope\n22\n2#jmps\n22\n3#1.0\n4\n28#_asm_ctx\n2#scope\n22\n2#jmps\n21\n63#144\n28#emit\n28#OP_SETJUMP\n27\n48#2\n30\n63#145\n3#1.0\n52\n53\n26#chk_try_block\n63#147\n51#exit_try_block\n63#147\n57\n63#148\n28#_asm_ctx\n2#scope\n22\n2#jmps\n22\n3#1.0\n5\n28#_asm_ctx\n2#scope\n22\n2#jmps\n21\n53\n26#exit_try_block\n63#150\n51#asm_switch__code_list\n63#150\n57\n63#151\n63#152\n28#_ext_code_list\n28#_code_list\n41#2\n26#_code_list\n26#_ext_code_list\n53\n26#asm_switch__code_list\n63#155\n51#asm_get_regs\n63#155\n57\n63#156\n28#len\n28#_asm_ctx\n2#scope\n22\n2#locals\n22\n49#1\n52\n53\n26#asm_get_regs\n63#158\n51#store_global\n63#158\n57#256\n63#159\n28#emit\n28#OP_STORE_GLOBAL\n27\n2#val\n22\n48#2\n30\n53\n26#store_global\n63#161\n51#add_global\n63#161\n57#256\n63#162\n28#_asm_ctx\n2#scope\n22\n2#globals\n22\n2#append\n22\n27\n2#val\n22\n48#1\n30\n53\n26#add_global\n63#165\n51#emit\n3\n25#1\n63#165\n57#257\n63#166\n31\n27\n32\n27#1\n32\n25#2\n63#167\n28#_code_list\n2#append\n22\n27#2\n48#1\n30\n63#168\n27#2\n52\n53\n26#emit\n63#170\n51#code_pop\n63#170\n57\n63#171\n28#_code_list\n2#pop\n22\n49\n52\n53\n26#code_pop\n63#173\n51#emit_def\n63#173\n57#256\n63#174\n28#emit\n28#OP_DEF\n27\n2#val\n22\n48#2\n30\n53\n26#emit_def\n63#180\n51#emit_load\n63#180\n57#256\n63#181\n27\n24\n15\n37#7\n63#182\n28#emit\n28#OP_NONE\n49#1\n52\n35#1\n63#184\n27\n2#type\n22\n25#1\n63#185\n27#1\n2#string\n15\n37#10\n63#186\n28#emit\n28#OP_STRING\n27\n2#val\n22\n48#2\n30\n35#48\n27#1\n2#number\n15\n37#10\n63#188\n28#emit\n28#OP_NUMBER\n27\n2#val\n22\n48#2\n30\n35#35\n27#1\n2#None\n15\n37#8\n63#190\n28#emit\n28#OP_NONE\n3\n48#2\n30\n35#24\n27#1\n2#name\n15\n37#9\n63#192\n28#_asm_ctx\n2#load\n22\n27\n48#1\n30\n35#12\n63#194\n28#print\n2#LOAD_LOCAL \n28#str\n27\n2#val\n22\n48#1\n4\n48#1\n30\n53\n26#emit_load\n63#197\n51#find_label\n63#197\n57#512\n63#198\n3\n25#2\n27\n45\n44#34\n25#3\n63#200\n27#3\n3\n22\n28#OP_TAG\n15\n38#7\n27#3\n3#1.0\n22\n27#1\n15\n19\n37#5\n63#202\n27#2\n52\n35#1\n63#203\n27#3\n3\n22\n28#OP_TAG\n16\n37#7\n63#204\n27#2\n3#1.0\n4\n25#2\n35#1\n36#33\n30\n53\n26#find_label\n63#206\n51#resolve_labels\n63#206\n57#256\n63#207\n28#len\n27\n48#1\n25#1\n63#208\n3\n25#2\n63#209\n31\n25#3\n27\n45\n44#63\n25#4\n63#211\n27#4\n3\n22\n28#_jmp_list\n17\n37#34\n63#212\n28#find_label\n27\n27#4\n3#1.0\n22\n48#2\n25#5\n63#213\n27#5\n27#2\n5\n25#6\n63#214\n27#6\n3\n12\n37#10\n63#214\n31\n28#OP_UP_JUMP\n32\n27#6\n9\n32\n25#4\n35#6\n63#215\n27#6\n27#4\n3#1.0\n21\n35#1\n63#216\n27#4\n3\n22\n28#OP_TAG\n16\n37#14\n63#217\n27#2\n3#1.0\n4\n25#2\n63#218\n27#3\n2#append\n22\n27#4\n48#1\n30\n35#1\n36#62\n30\n63#219\n27#3\n52\n53\n26#resolve_labels\n63#221\n51#optimize\n28#False\n25#1\n63#221\n57#257\n63#222\n3\n25#2\n63#223\n3\n25#3\n63#224\n28#resolve_labels\n27\n48#1\n25#4\n63#225\n27#4\n52\n53\n26#optimize\n63#227\n51#join_code\n63#227\n57\n63#228\n63#229\n63#230\n28#_ext_code_list\n28#_code_list\n4\n52\n53\n26#join_code\n63#232\n51#_gen_code\n28#False\n25\n63#232\n57#1\n63#233\n63#234\n63#236\n28#emit\n28#OP_EOP\n48#1\n30\n63#238\n28#_ext_code_list\n28#_code_list\n4\n25#1\n63#240\n31\n26#_code_list\n63#241\n31\n26#_ext_code_list\n63#242\n28#optimize\n27#1\n48#1\n25#1\n63#243\n27\n37#5\n63#243\n27#1\n52\n35#1\n27#1\n45\n44#16\n25#2\n63#245\n27#2\n3#1.0\n22\n24\n15\n37#7\n63#246\n28#print\n27#2\n48#1\n30\n35#1\n36#15\n30\n63#247\n28#save_as_bin\n27#1\n49#1\n52\n53\n26#_gen_code\n63#249\n51#gen_code\n28#False\n25\n63#249\n57#1\n63#250\n63#251\n63#253\n28#emit\n28#OP_EOP\n48#1\n30\n63#254\n28#_ext_code_list\n28#_code_list\n4\n25#1\n63#256\n31\n26#_code_list\n63#257\n31\n26#_ext_code_list\n63#258\n28#optimize\n27#1\n48#1\n25#1\n63#259\n27#1\n52\n53\n26#gen_code\n63#262\n51#def_local\n63#262\n57#256\n63#263\n28#_asm_ctx\n2#add_local\n22\n27\n48#1\n30\n53\n26#def_local\n63#265\n51#get_loc_num\n63#265\n57\n63#266\n28#len\n28#_asm_ctx\n2#scope\n22\n2#locals\n22\n49#1\n52\n53\n26#get_loc_num\n63#268\n51#push_scope\n63#268\n57\n63#269\n28#_asm_ctx\n2#push\n22\n48\n30\n53\n26#push_scope\n63#271\n51#pop_scope\n63#271\n57\n63#272\n28#_asm_ctx\n2#pop\n22\n48\n30\n53\n26#pop_scope\n63#274\n51#emit_store\n63#274\n57#256\n63#275\n28#_asm_ctx\n2#store\n22\n27\n48#1\n30\n53\n26#emit_store\n63#278\n51#encode_error\n63#278\n57#512\n63#279\n63#280\n28#compile_error\n2#encode\n28#_ctx\n2#src\n22\n27\n27#1\n48#4\n30\n53\n26#encode_error\n63#282\n51#load_attr\n63#282\n57#256\n63#283\n27\n2#type\n22\n2#name\n15\n37#7\n63#284\n2#string\n27\n2#type\n21\n35#1\n63#285\n28#emit_load\n27\n48#1\n30\n53\n26#load_attr\n63#287\n51#store\n63#287\n57#256\n63#288\n27\n2#type\n22\n2#name\n15\n37#7\n63#289\n28#emit_store\n27\n48#1\n30\n35#74\n27\n2#type\n22\n2#get\n15\n37#21\n63#291\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#292\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#293\n28#emit\n28#OP_SET\n48#1\n30\n35#48\n27\n2#type\n22\n2#attr\n15\n37#21\n63#295\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#296\n28#load_attr\n27\n2#second\n22\n48#1\n30\n63#297\n28#emit\n28#OP_SET\n48#1\n30\n35#22\n27\n2#type\n22\n2#,\n15\n37#16\n63#300\n28#store\n27\n2#first\n22\n48#1\n30\n63#301\n28#store\n27\n2#second\n22\n48#1\n30\n35#1\n53\n26#store\n63#303\n51#newglo\n63#303\n57\n63#304\n63#305\n28#_global_index\n3#1.0\n4\n26#_global_index\n63#306\n28#Token\n2#name\n2##\n28#str\n28#_global_index\n3#1.0\n5\n48#1\n4\n49#2\n52\n53\n26#newglo\n63#308\n51#newtag\n63#308\n57\n63#309\n63#310\n28#_tag_cnt\n3#1.0\n4\n26#_tag_cnt\n63#311\n28#_tag_cnt\n3#1.0\n5\n52\n53\n26#newtag\n63#313\n51#jump\n28#OP_JUMP\n25#1\n63#313\n57#257\n63#314\n28#emit\n27#1\n27\n48#2\n30\n53\n26#jump\n63#316\n51#emit_tag\n63#316\n57#256\n63#317\n28#emit\n28#OP_TAG\n27\n48#2\n30\n53\n26#emit_tag\n63#320\n51#build_set\n63#320\n57#768\n63#321\n28#AstNode\n2#=\n48#1\n25#3\n63#322\n27#2\n27#3\n2#first\n21\n63#323\n28#AstNode\n2#get\n48#1\n25#4\n63#324\n27#1\n27#4\n2#first\n21\n63#325\n27#2\n27#4\n2#second\n21\n63#326\n27#4\n27#3\n2#first\n21\n63#327\n27#3\n52\n53\n26#build_set\n63#329\n51#encode_op\n63#329\n57#256\n63#330\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#331\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#332\n28#emit\n28#_op_dict\n27\n2#type\n22\n22\n48#1\n30\n53\n26#encode_op\n63#334\n51#encode_notin\n63#334\n57#256\n63#335\n28#encode_in\n27\n48#1\n30\n63#336\n28#emit\n28#OP_NOT\n48#1\n30\n53\n26#encode_notin\n63#338\n51#encode_isnot\n63#338\n57#256\n63#339\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#340\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#341\n28#emit\n28#OP_NOTEQ\n48#1\n30\n53\n26#encode_isnot\n63#343\n51#encode_inplace_op\n63#343\n57#256\n63#344\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#345\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#346\n28#emit\n28#_op_ext_dict\n27\n2#type\n22\n22\n48#1\n30\n63#347\n28#store\n27\n2#first\n22\n48#1\n30\n53\n26#encode_inplace_op\n63#354\n51#encode_list0\n63#354\n57#256\n63#355\n27\n24\n15\n37#4\n24\n52\n35#1\n63#356\n31\n25#1\n63#357\n27\n2#type\n22\n2#,\n15\n37#16\n63#358\n27#1\n2#append\n22\n27\n2#second\n22\n48#1\n30\n63#359\n27\n2#first\n22\n25\n36#20\n63#360\n27#1\n2#append\n22\n27\n48#1\n30\n63#361\n27#1\n2#reverse\n22\n48\n30\n27#1\n45\n44#13\n25#2\n63#363\n28#encode_item\n27#2\n48#1\n30\n63#364\n28#emit\n28#OP_APPEND\n48#1\n30\n36#12\n30\n53\n26#encode_list0\n63#367\n51#encode_list\n63#367\n57#256\n63#368\n28#emit\n28#OP_LIST\n3\n48#2\n30\n63#370\n27\n2#first\n22\n24\n15\n37#5\n63#371\n3\n52\n35#1\n63#372\n28#gettype\n27\n2#first\n22\n48#1\n2#list\n15\n37#20\n27\n2#first\n22\n45\n44#13\n25#1\n63#374\n28#encode_item\n27#1\n48#1\n30\n63#375\n28#emit\n28#OP_APPEND\n48#1\n30\n36#12\n30\n35#13\n63#377\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#378\n28#emit\n28#OP_APPEND\n48#1\n30\n63#379\n3#1.0\n52\n53\n26#encode_list\n63#381\n51#encode_tuple\n63#381\n57#256\n63#383\n28#gettype\n27\n2#first\n22\n48#1\n2#list\n15\n38#7\n28#is_const_list\n27\n2#first\n22\n48#1\n19\n37#17\n63#384\n28#get_const_list\n27\n2#first\n22\n48#1\n25#1\n63#385\n28#emit_load\n27#1\n48#1\n30\n63#386\n3#1.0\n52\n35#1\n63#387\n28#encode_list\n27\n49#1\n52\n53\n26#encode_tuple\n63#389\n51#encode_comma\n63#389\n57#256\n63#390\n28#encode_item\n27\n2#first\n22\n48#1\n28#encode_item\n27\n2#second\n22\n48#1\n4\n52\n53\n26#encode_comma\n63#392\n51#is_const_list\n63#392\n57#256\n27\n45\n44#26\n25#1\n63#394\n28#hasattr\n27#1\n2#type\n48#2\n10\n37#5\n63#395\n28#False\n52\n35#1\n63#396\n27#1\n2#type\n22\n28##0\n17\n10\n37#5\n63#397\n28#False\n52\n35#1\n36#25\n30\n63#398\n28#True\n52\n53\n26#is_const_list\n63#400\n51#get_const_list\n63#400\n57#256\n63#401\n28#asm_switch__code_list\n48\n30\n63#402\n28#newglo\n48\n25#1\n63#403\n28#emit\n28#OP_LIST\n48#1\n30\n27\n45\n44#13\n25#2\n63#405\n28#encode_item\n27#2\n48#1\n30\n63#406\n28#emit\n28#OP_APPEND\n48#1\n30\n36#12\n30\n63#407\n28#store_global\n27#1\n48#1\n30\n63#408\n28#asm_switch__code_list\n48\n30\n63#409\n27#1\n52\n53\n26#get_const_list\n63#412\n51#encode_if\n63#412\n57#256\n63#414\n27\n2#first\n22\n2#type\n22\n2#=\n15\n37#10\n63#415\n28#encode_error\n27\n2#first\n22\n2#do not allow assignment in if condition\n48#2\n30\n35#1\n63#416\n28#encode_item\n27\n2#first\n22\n48#1\n30\n28#newtag\n48\n28#newtag\n48\n41#2\n25#1\n25#2\n63#418\n28#jump\n27#1\n28#OP_POP_JUMP_ON_FALSE\n48#2\n30\n63#420\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#421\n28#jump\n27#2\n48#1\n30\n63#422\n28#emit_tag\n27#1\n48#1\n30\n63#423\n28#encode_item\n27\n2#third\n22\n48#1\n30\n63#424\n28#emit_tag\n27#2\n48#1\n30\n53\n26#encode_if\n63#426\n51#encode_assign_to\n63#426\n57#512\n63#427\n28#istype\n27\n2#list\n48#2\n37#41\n63#428\n28#len\n27\n48#1\n3#1.0\n15\n37#3\n63#430\n35#20\n27#1\n3#1.0\n15\n37#10\n63#432\n28#emit\n28#OP_UNPACK\n28#len\n27\n48#1\n48#2\n30\n35#7\n63#434\n28#emit\n28#OP_ROT\n27#1\n48#2\n30\n27\n45\n44#8\n25#2\n63#436\n28#store\n27#2\n48#1\n30\n36#7\n30\n35#6\n63#438\n28#store\n27\n48#1\n30\n53\n26#encode_assign_to\n63#440\n51#encode_assign\n63#440\n57#256\n63#441\n28#gettype\n27\n2#second\n22\n48#1\n2#list\n15\n37#22\n27\n2#second\n22\n45\n44#8\n25#1\n63#443\n28#encode_item\n27#1\n48#1\n30\n36#7\n30\n63#444\n28#len\n27\n2#second\n22\n48#1\n25#2\n35#11\n63#446\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#447\n3#1.0\n25#2\n63#448\n28#encode_assign_to\n27\n2#first\n22\n27#2\n48#2\n30\n53\n26#encode_assign\n63#450\n51#encode_dict\n63#450\n57#256\n63#451\n27\n2#first\n22\n25#1\n63#452\n28#emit\n28#OP_DICT\n3\n48#2\n30\n63#453\n27#1\n24\n16\n37#27\n27#1\n45\n44#22\n25#2\n63#455\n28#encode_item\n27#2\n3\n22\n48#1\n30\n63#456\n28#encode_item\n27#2\n3#1.0\n22\n48#1\n30\n63#457\n28#emit\n28#OP_DICT_SET\n48#1\n30\n36#21\n30\n35#1\n53\n26#encode_dict\n63#459\n51#encode_neg\n63#459\n57#256\n63#460\n27\n2#first\n22\n2#type\n22\n2#number\n15\n37#20\n63#461\n27\n2#first\n22\n25\n63#462\n27\n2#val\n22\n9\n27\n2#val\n21\n63#463\n28#encode_item\n27\n48#1\n30\n35#13\n63#465\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#466\n28#emit\n28#OP_NEG\n48#1\n30\n53\n26#encode_neg\n63#468\n51#encode_not\n63#468\n57#256\n63#469\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#470\n28#emit\n28#OP_NOT\n48#1\n30\n53\n26#encode_not\n63#473\n51#encode_call\n63#473\n57#256\n63#474\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#475\n28#gettype\n27\n2#second\n22\n48#1\n2#list\n15\n37#22\n27\n2#second\n22\n45\n44#8\n25#1\n63#477\n28#encode_item\n27#1\n48#1\n30\n36#7\n30\n63#478\n28#len\n27\n2#second\n22\n48#1\n25#2\n35#8\n63#480\n28#encode_item\n27\n2#second\n22\n48#1\n25#2\n63#481\n28#emit\n28#OP_CALL\n27#2\n48#2\n30\n53\n26#encode_call\n63#483\n51#encode_apply\n63#483\n57#256\n63#484\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#485\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#486\n28#emit\n28#OP_APPLY\n48#1\n30\n53\n26#encode_apply\n63#489\n51#encode_def\n3\n25#1\n63#489\n57#257\n63#490\n28#emit_def\n27\n2#first\n22\n48#1\n30\n63#491\n28#push_scope\n48\n30\n63#492\n3\n25#2\n63#493\n3\n25#3\n63#494\n3\n25#4\n63#495\n3\n25#5\n27\n2#second\n22\n45\n44#58\n25#6\n63#497\n28#def_local\n27#6\n2#first\n22\n48#1\n30\n63#499\n27#6\n2#type\n22\n2#narg\n15\n37#7\n63#500\n3#1.0\n25#2\n63#502\n35#38\n35#1\n63#503\n27#6\n2#second\n22\n37#21\n63#504\n27#4\n3#1.0\n4\n25#4\n63#505\n28#encode_item\n27#6\n2#second\n22\n48#1\n30\n63#506\n28#store\n27#6\n2#first\n22\n48#1\n30\n35#6\n63#508\n27#3\n3#1.0\n4\n25#3\n63#509\n27#5\n3#1.0\n4\n25#5\n36#57\n30\n63#510\n28#getlineno\n27\n2#first\n22\n48#1\n25#7\n63#511\n27#7\n24\n16\n37#8\n63#512\n28#emit\n28#OP_LINE\n27#7\n48#2\n30\n35#1\n63#513\n27#2\n10\n37#12\n63#514\n28#emit\n28#OP_LOAD_PARAMS\n27#3\n3#256.0\n6\n27#4\n4\n48#2\n30\n35#12\n27#3\n3\n11\n37#8\n63#516\n28#emit\n28#OP_LOAD_PARG\n27#3\n48#2\n30\n35#1\n63#517\n27#2\n37#8\n63#518\n28#emit\n28#OP_LOAD_NARG\n27#5\n48#2\n30\n35#1\n63#519\n28#encode_item\n27\n2#third\n22\n48#1\n30\n63#520\n28#emit\n28#OP_DEF_END\n48#1\n30\n63#524\n28#pop_scope\n48\n30\n63#525\n27#1\n10\n37#9\n63#526\n28#emit_store\n27\n2#first\n22\n48#1\n30\n35#1\n53\n26#encode_def\n63#529\n51#encode_class\n63#529\n57#256\n63#530\n31\n25#1\n63#531\n28#emit\n28#OP_CLASS\n27\n2#first\n22\n2#val\n22\n48#2\n30\n27\n2#second\n22\n45\n44#52\n25#2\n63#533\n27#2\n2#type\n22\n2#pass\n15\n37#4\n63#533\n36#10\n35#1\n63#534\n27#2\n2#type\n22\n2#def\n16\n37#8\n63#535\n28#encode_error\n27#2\n2#non-func expression in class is invalid\n48#2\n30\n35#1\n63#536\n28#encode_def\n27#2\n3#1.0\n48#2\n30\n63#537\n28#emit_load\n27\n2#first\n22\n48#1\n30\n63#538\n28#load_attr\n27#2\n2#first\n22\n48#1\n30\n63#539\n28#emit\n28#OP_SET\n48#1\n30\n36#51\n30\n63#540\n28#emit\n28#OP_CLASS_END\n48#1\n30\n53\n26#encode_class\n63#542\n51#encode_return\n63#542\n57#256\n63#543\n27\n2#first\n22\n37#63\n63#544\n28#gettype\n27\n2#first\n22\n48#1\n2#list\n15\n37#25\n63#546\n28#emit\n28#OP_LIST\n48#1\n30\n27\n2#first\n22\n45\n44#13\n25#1\n63#548\n28#encode_item\n27#1\n48#1\n30\n63#549\n28#emit\n28#OP_APPEND\n48#1\n30\n36#12\n30\n35#29\n63#551\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#552\n27\n2#first\n22\n2#type\n22\n2#call\n15\n37#13\n28#code_pop\n48\n40#2\n25#2\n25#3\n63#554\n28#emit\n28#OP_TAILCALL\n27#3\n48#2\n30\n35#1\n35#6\n63#557\n28#emit_load\n24\n48#1\n30\n63#558\n28#emit\n28#OP_RETURN\n48#1\n30\n53\n26#encode_return\n63#560\n51#encode_while\n63#560\n57#256\n28#newtag\n48\n28#newtag\n48\n41#2\n25#1\n25#2\n63#563\n28#_begin_tag_list\n2#append\n22\n27#1\n48#1\n30\n63#564\n28#_end_tag_list\n2#append\n22\n27#2\n48#1\n30\n63#566\n28#emit_tag\n27#1\n48#1\n30\n63#567\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#568\n28#jump\n27#2\n28#OP_POP_JUMP_ON_FALSE\n48#2\n30\n63#569\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#571\n28#jump\n27#1\n48#1\n30\n63#572\n28#emit_tag\n27#2\n48#1\n30\n63#574\n28#_begin_tag_list\n2#pop\n22\n48\n30\n63#575\n28#_end_tag_list\n2#pop\n22\n48\n30\n53\n26#encode_while\n63#577\n51#encode_continue\n63#577\n57#256\n63#579\n28#jump\n28#_begin_tag_list\n3#-1.0\n22\n48#1\n30\n53\n26#encode_continue\n63#582\n51#encode_break\n63#582\n57#256\n63#583\n28#jump\n28#_end_tag_list\n3#-1.0\n22\n48#1\n30\n53\n26#encode_break\n63#585\n51#encode_import_one\n63#585\n57#512\n63#587\n28#encode_item\n27\n48#1\n30\n63#588\n2#string\n27#1\n2#type\n21\n63#589\n28#encode_item\n27#1\n48#1\n30\n63#590\n28#emit\n28#OP_IMPORT\n3#2.0\n48#2\n30\n53\n26#encode_import_one\n63#592\n51#_import_name2str\n63#592\n57#256\n63#593\n27\n2#type\n22\n2#attr\n15\n37#30\n63#594\n28#_import_name2str\n27\n2#first\n22\n48#1\n25#1\n63#595\n28#_import_name2str\n27\n2#second\n22\n48#1\n25#2\n63#596\n28#Token\n2#string\n27#1\n2#val\n22\n2#/\n4\n27#2\n2#val\n22\n4\n49#2\n52\n35#26\n27\n2#type\n22\n2#name\n15\n37#10\n63#598\n2#string\n27\n2#type\n21\n63#599\n27\n52\n35#11\n27\n2#type\n22\n2#string\n15\n37#5\n63#601\n27\n52\n35#1\n53\n26#_import_name2str\n63#603\n51#encode_import_multi\n63#603\n57#512\n63#604\n28#_import_name2str\n27\n48#1\n25\n63#605\n27#1\n2#type\n22\n2#,\n15\n37#18\n63#606\n28#encode_import_multi\n27\n27#1\n2#first\n22\n48#2\n30\n63#607\n28#encode_import_multi\n27\n27#1\n2#second\n22\n48#2\n30\n35#7\n63#609\n28#encode_import_one\n27\n27#1\n48#2\n30\n53\n26#encode_import_multi\n63#611\n51#encode_from\n63#611\n57#256\n63#612\n28#encode_import_multi\n27\n2#first\n22\n27\n2#second\n22\n48#2\n30\n53\n26#encode_from\n63#614\n51#_encode_import\n63#614\n57#256\n63#615\n2#string\n27\n2#type\n21\n63#616\n28#encode_item\n27\n48#1\n30\n63#617\n28#emit\n28#OP_IMPORT\n3#1.0\n48#2\n30\n53\n26#_encode_import\n63#619\n51#encode_import\n63#619\n57#256\n63#620\n27\n2#first\n22\n2#type\n22\n2#,\n15\n37#21\n63#621\n27\n2#first\n22\n25\n63#622\n28#_encode_import\n27\n2#first\n22\n48#1\n30\n63#623\n28#_encode_import\n27\n2#second\n22\n48#1\n30\n35#8\n63#625\n28#_encode_import\n27\n2#first\n22\n48#1\n30\n53\n26#encode_import\n63#628\n51#encode_and\n63#628\n57#256\n63#629\n28#newtag\n48\n25#1\n63#630\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#631\n28#emit\n28#OP_JUMP_ON_FALSE\n27#1\n48#2\n30\n63#632\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#633\n28#emit\n28#OP_AND\n48#1\n30\n63#634\n28#emit_tag\n27#1\n48#1\n30\n53\n26#encode_and\n63#637\n51#encode_or\n63#637\n57#256\n63#638\n28#newtag\n48\n25#1\n63#639\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#640\n28#emit\n28#OP_JUMP_ON_TRUE\n27#1\n48#2\n30\n63#641\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#642\n28#emit\n28#OP_OR\n48#1\n30\n63#643\n28#emit_tag\n27#1\n48#1\n30\n53\n26#encode_or\n63#645\n51#encode_raw_list\n63#645\n57#256\n63#646\n28#gettype\n27\n48#1\n2#list\n15\n37#28\n63#647\n28#emit\n28#OP_LIST\n48#1\n30\n27\n45\n44#13\n25#1\n63#649\n28#encode_item\n27#1\n48#1\n30\n63#650\n28#emit\n28#OP_APPEND\n48#1\n30\n36#12\n30\n63#651\n28#len\n27\n49#1\n52\n35#9\n63#653\n28#encode_item\n27\n48#1\n30\n63#654\n3#1.0\n52\n53\n26#encode_raw_list\n63#656\n51#encode_for\n63#656\n57#256\n63#657\n28#newtag\n48\n25#1\n63#658\n28#newtag\n48\n25#2\n63#660\n28#_begin_tag_list\n2#append\n22\n27#1\n48#1\n30\n63#661\n28#_end_tag_list\n2#append\n22\n27#2\n48#1\n30\n63#663\n27\n2#first\n22\n2#second\n22\n25#3\n63#664\n27\n2#first\n22\n2#first\n22\n25#4\n63#667\n28#encode_raw_list\n27#3\n48#1\n30\n63#668\n28#emit\n28#OP_ITER\n48#1\n30\n63#669\n28#emit_tag\n27#1\n48#1\n30\n63#670\n28#jump\n27#2\n28#OP_NEXT\n48#2\n30\n63#671\n28#encode_assign_to\n27#4\n3#1.0\n48#2\n30\n63#674\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#675\n28#jump\n27#1\n48#1\n30\n63#676\n28#emit_tag\n27#2\n48#1\n30\n63#678\n28#_begin_tag_list\n2#pop\n22\n48\n30\n63#679\n28#_end_tag_list\n2#pop\n22\n48\n30\n63#680\n28#emit\n28#OP_POP\n48#1\n30\n53\n26#encode_for\n63#682\n51#encode_global\n63#682\n57#256\n63#683\n28#add_global\n27\n2#first\n22\n48#1\n30\n53\n26#encode_global\n63#685\n51#encode_try\n63#685\n57#256\n63#686\n28#newtag\n48\n25#1\n63#687\n28#newtag\n48\n25#2\n63#688\n28#chk_try_block\n27#1\n48#1\n10\n37#8\n63#689\n28#encode_error\n27\n2#do not support recursive try\n48#2\n30\n35#1\n63#690\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#691\n28#emit\n28#OP_CLR_JUMP\n48#1\n30\n63#692\n28#jump\n27#2\n48#1\n30\n63#693\n28#emit_tag\n27#1\n48#1\n30\n63#694\n27\n2#second\n22\n24\n16\n37#14\n63#695\n28#emit\n28#OP_LOAD_EX\n48#1\n30\n63#696\n28#store\n27\n2#second\n22\n48#1\n30\n35#6\n63#698\n28#emit\n28#OP_POP\n48#1\n30\n63#699\n28#encode_item\n27\n2#third\n22\n48#1\n30\n63#700\n28#emit_tag\n27#2\n48#1\n30\n63#701\n28#exit_try_block\n48\n30\n53\n26#encode_try\n63#703\n51#do_nothing\n63#703\n57#256\n63#704\n53\n26#do_nothing\n63#706\n51#encode_del\n63#706\n57#256\n63#707\n27\n2#first\n22\n25#1\n63#708\n27#1\n2#type\n22\n2#get\n16\n38#7\n27#1\n2#type\n22\n2#attr\n16\n19\n37#8\n63#709\n28#encode_error\n27#1\n2#require get or attr expression\n48#2\n30\n35#1\n63#710\n28#encode_item\n27#1\n2#first\n22\n48#1\n30\n63#711\n27#1\n2#type\n22\n2#attr\n15\n37#9\n63#712\n28#load_attr\n27#1\n2#second\n22\n48#1\n30\n35#8\n63#714\n28#encode_item\n27#1\n2#second\n22\n48#1\n30\n63#715\n28#emit\n28#OP_DEL\n48#1\n30\n53\n26#encode_del\n63#717\n51#encode_annotation\n63#717\n57#256\n63#718\n27\n2#first\n22\n25#1\n63#719\n27#1\n2#val\n22\n2#debugger\n15\n37#7\n63#720\n28#emit\n28#OP_DEBUG\n48#1\n30\n35#1\n53\n26#encode_annotation\n63#722\n51#encode_attr\n63#722\n57#256\n63#723\n2#string\n27\n2#second\n22\n2#type\n21\n63#724\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#725\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#726\n28#emit\n28#OP_GET\n48#1\n30\n53\n26#encode_attr\n63#728\n51#encode_slice\n63#728\n57#256\n63#729\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#730\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#731\n28#encode_item\n27\n2#third\n22\n48#1\n30\n63#732\n28#emit\n28#OP_SLICE\n48#1\n30\n53\n26#encode_slice\n63#734\n51#encode_in\n63#734\n57#256\n63#735\n28#encode_item\n27\n2#first\n22\n48#1\n30\n63#736\n28#encode_item\n27\n2#second\n22\n48#1\n30\n63#737\n28#emit\n28#OP_IN\n48#1\n30\n53\n26#encode_in\n63#740\n33\n2#if\n28#encode_if\n34\n2#=\n28#encode_assign\n34\n2#tuple\n28#encode_tuple\n34\n2#,\n28#encode_comma\n34\n2#dict\n28#encode_dict\n34\n2#call\n28#encode_call\n34\n2#apply\n28#encode_apply\n34\n2#neg\n28#encode_neg\n34\n2#not\n28#encode_not\n34\n2#list\n28#encode_list\n34\n2#def\n28#encode_def\n34\n2#del\n28#encode_del\n34\n2#class\n28#encode_class\n34\n2#return\n28#encode_return\n34\n2#while\n28#encode_while\n34\n2#continue\n28#encode_continue\n34\n2#break\n28#encode_break\n34\n2#from\n28#encode_from\n34\n2#import\n28#encode_import\n34\n2#and\n28#encode_and\n34\n2#or\n28#encode_or\n34\n2#for\n28#encode_for\n34\n2#global\n28#encode_global\n34\n2#name\n28#emit_load\n34\n2#number\n28#emit_load\n34\n2#string\n28#emit_load\n34\n2#None\n28#emit_load\n34\n2#True\n28#emit_load\n34\n2#False\n28#emit_load\n34\n2#try\n28#encode_try\n34\n2#pass\n28#do_nothing\n34\n2#notin\n28#encode_notin\n34\n2#isnot\n28#encode_isnot\n34\n2#attr\n28#encode_attr\n34\n2#slice\n28#encode_slice\n34\n2#in\n28#encode_in\n34\n2#@\n28#encode_annotation\n34\n26#_encode_dict\n28#_op_dict\n45\n44#8\n26#k\n63#781\n28#encode_op\n28#_encode_dict\n28#k\n21\n36#7\n30\n28#_op_ext_dict\n45\n44#8\n26#k\n63#783\n28#encode_inplace_op\n28#_encode_dict\n28#k\n21\n36#7\n30\n63#785\n51#getlineno\n63#785\n57#256\n63#786\n28#hasattr\n27\n2#pos\n48#2\n37#9\n63#787\n27\n2#pos\n22\n3\n22\n52\n35#14\n28#hasattr\n27\n2#first\n48#2\n37#9\n63#789\n28#getlineno\n27\n2#first\n22\n49#1\n52\n35#1\n63#790\n24\n52\n53\n26#getlineno\n63#792\n51#encode_item\n63#792\n57#256\n63#797\n27\n24\n15\n37#5\n63#798\n3\n52\n35#1\n63#800\n28#gettype\n27\n48#1\n2#list\n15\n37#7\n63#801\n28#encode_block\n27\n49#1\n52\n35#1\n63#803\n28#_encode_dict\n27\n2#type\n22\n22\n27\n48#1\n25#1\n63#804\n27#1\n24\n16\n37#5\n63#805\n27#1\n52\n35#1\n63#806\n3#1.0\n52\n53\n26#encode_item\n63#808\n51#need_pop_value\n63#808\n57#256\n63#809\n27\n28#POP_VALUE_TYPE_SET\n17\n52\n53\n26#need_pop_value\n63#811\n51#encode_block\n63#811\n57#256\n63#812\n28#assert\n28#gettype\n27\n48#1\n2#list\n15\n48#1\n30\n27\n45\n44#48\n25#1\n63#815\n27#1\n2#type\n22\n2#string\n15\n37#4\n63#816\n36#10\n35#1\n63#817\n28#getlineno\n27#1\n48#1\n25#2\n63#818\n27#2\n24\n16\n37#8\n63#819\n28#emit\n28#OP_LINE\n27#2\n48#2\n30\n35#1\n63#820\n28#encode_item\n27#1\n48#1\n30\n63#821\n28#need_pop_value\n27#1\n2#type\n22\n48#1\n37#7\n63#822\n28#emit\n28#OP_POP\n48#1\n30\n35#1\n36#47\n30\n53\n26#encode_block\n63#824\n51#encode\n63#824\n57#256\n63#825\n63#826\n63#827\n63#828\n3\n26#_tag_cnt\n63#829\n3\n25#1\n63#830\n28#parse\n27\n48#1\n25#2\n63#831\n28#encode_item\n27#2\n48#1\n30\n53\n26#encode\n63#833\n54#EncodeCtx\n51#__init__\n63#837\n57#512\n63#838\n27#1\n27\n2#src\n21\n63#839\n31\n27\n2#code_list\n21\n53\n28#EncodeCtx\n2#__init__\n21\n51#set_file_name\n63#841\n57#512\n63#842\n27#1\n2#split\n22\n2#.\n48#1\n3\n22\n25#2\n63#843\n28#emit\n28#OP_FILE\n27#2\n48#2\n30\n53\n28#EncodeCtx\n2#set_file_name\n21\n51#compile\n63#845\n57#256\n63#846\n28#encode\n27\n2#src\n22\n48#1\n27\n2#ast\n21\n63#847\n27\n2#ast\n22\n52\n53\n28#EncodeCtx\n2#compile\n21\n51#gen_code\n63#849\n57#256\n63#850\n28#join_code\n48\n25#1\n63#851\n27#1\n52\n53\n28#EncodeCtx\n2#gen_code\n21\n56\n63#853\n51#_compile\n24\n25#2\n63#853\n57#513\n63#854\n63#856\n28#asm_init\n48\n30\n63#857\n28#EncodeCtx\n27\n48#1\n26#_ctx\n63#858\n28#_ctx\n2#set_file_name\n22\n28#name\n48#1\n30\n63#859\n28#_ctx\n2#compie\n22\n48\n30\n63#860\n28#_ctx\n2#gen_code\n22\n49\n52\n53\n26#_compile\n63#862\n51#escape_for_compile\n63#862\n57#256\n63#863\n28#str\n27\n48#1\n25\n63#864\n27\n2#replace\n22\n2#\\\\\n2#\\\\\\\\\n48#2\n25\n63#865\n27\n2#replace\n22\n2#\\r\n2#\\\\r\n48#2\n25\n63#866\n27\n2#replace\n22\n2#\\n\n2#\\\\n\n48#2\n25\n63#867\n27\n2#replace\n22\n2#\\0\n2#\\\\0\n48#2\n25\n63#868\n27\n52\n53\n26#escape_for_compile\n63#870\n51#compile_to_list\n63#870\n57#512\n63#871\n63#873\n28#asm_init\n48\n30\n63#874\n28#EncodeCtx\n27\n48#1\n26#_ctx\n63#876\n28#emit\n28#OP_FILE\n27#1\n48#2\n30\n63#877\n28#encode\n27\n48#1\n30\n63#878\n24\n26#_ctx\n63#879\n28#gen_code\n48\n25#2\n63#880\n27#2\n52\n53\n26#compile_to_list\n63#882\n51#compile\n24\n25#2\n63#882\n57#513\n63#883\n63#885\n28#asm_init\n48\n30\n63#886\n28#EncodeCtx\n27\n48#1\n26#_ctx\n63#887\n27#1\n2#split\n22\n2#.\n48#1\n3\n22\n25#3\n63#888\n28#emit\n28#OP_FILE\n27#3\n48#2\n30\n63#889\n28#encode\n27\n48#1\n30\n63#890\n24\n26#_ctx\n63#891\n28#gen_code\n48\n25#4\n63#892\n2#\n25#5\n27#4\n45\n44#41\n25#6\n63#895\n27#6\n3#1.0\n22\n3\n15\n37#13\n63#896\n27#5\n28#str\n27#6\n3\n22\n48#1\n2#\\n\n4\n4\n25#5\n35#20\n63#898\n27#5\n28#str\n27#6\n3\n22\n48#1\n2##\n4\n28#escape_for_compile\n27#6\n3#1.0\n22\n48#1\n4\n2#\\n\n4\n4\n25#5\n36#40\n30\n63#899\n27#5\n52\n53\n26#compile\n63#901\n51#convert_to_cstring\n63#901\n57#512\n63#902\n27#1\n2#replace\n22\n2#\\\\\n2#\\\\\\\\\n48#2\n25#1\n63#903\n27#1\n2#replace\n22\n2#\"\n2#\\\\\"\n48#2\n25#1\n63#904\n27#1\n2#replace\n22\n2#\\n\n2#\\\\n\n48#2\n25#1\n63#905\n27#1\n2#replace\n22\n2#\\0\n2#\\\\0\n48#2\n25#1\n63#906\n2#const char* \n27\n2#split\n22\n2#.\n48#1\n3\n22\n4\n2#_bin\n4\n2#=\n4\n25#2\n63#907\n27#2\n2#\"\n4\n25#2\n63#908\n27#2\n27#1\n4\n25#2\n63#909\n27#2\n2#\";\n4\n25#2\n63#910\n27#2\n52\n53\n26#convert_to_cstring\n63#913\n51#_compilefile\n24\n25#1\n63#913\n57#257\n63#914\n28#_compile\n28#load\n27\n48#1\n27\n27#1\n49#3\n52\n53\n26#_compilefile\n63#916\n51#compilefile\n24\n25#1\n63#916\n57#257\n63#917\n28#compile\n28#load\n27\n48#1\n27\n27#1\n49#3\n52\n53\n26#compilefile\n63#919\n51#split_instr\n63#919\n57#256\n63#920\n28#len\n27\n48#1\n25#1\n63#921\n31\n25#2\n63#922\n3\n25#3\n63#923\n27#3\n27#1\n12\n37#39\n63#924\n27\n27#3\n22\n25#4\n63#925\n28#uncode16\n27\n27#3\n3#1.0\n4\n22\n27\n27#3\n3#2.0\n4\n22\n48#2\n25#5\n63#926\n27#3\n3#3.0\n4\n25#3\n63#927\n27#2\n2#append\n22\n31\n28#ord\n27#4\n48#1\n32\n27#5\n32\n48#1\n30\n36#41\n63#928\n27#2\n52\n53\n26#split_instr\n63#930\n51#to_fixed\n63#930\n57#512\n63#931\n28#str\n27\n48#1\n2#rjust\n22\n27#1\n48#1\n2#replace\n22\n2# \n2#0\n49#2\n52\n53\n26#to_fixed\n63#933\n51#dis_code\n28#False\n25#1\n2#<string>\n25#2\n63#933\n57#258\n63#934\n27#1\n28#True\n15\n37#5\n63#935\n31\n25#3\n35#1\n63#937\n28#compile_to_list\n27\n27#2\n48#2\n25#4\n28#enumerate\n27#4\n48#1\n45\n44#52\n40#2\n25#5\n25#6\n63#939\n28#int\n27#6\n3\n22\n48#1\n25#7\n63#940\n2#%s %s %r\n31\n28#to_fixed\n27#5\n3#1.0\n4\n3#4.0\n48#2\n32\n28#opcodes\n27#7\n22\n2#ljust\n22\n3#22.0\n48#1\n32\n27#6\n3#1.0\n22\n32\n8\n25#8\n63#943\n27#1\n37#9\n63#944\n27#3\n2#append\n22\n27#8\n48#1\n30\n35#6\n63#946\n28#print\n27#8\n48#1\n30\n36#51\n30\n63#948\n27#1\n37#9\n63#949\n2#\\n\n2#join\n22\n27#3\n49#1\n52\n35#1\n53\n26#dis_code\n63#951\n51#dis\n28#False\n25#1\n63#951\n57#257\n63#952\n28#load\n27\n48#1\n25#2\n63#953\n28#dis_code\n27#2\n27#1\n27\n49#3\n52\n53\n26#dis\n63#956\n51#main\n63#956\n57\n63#957\n2#sys\n1#1\n63#958\n28#sys\n2#argv\n22\n25\n63#959\n28#len\n27\n48#1\n3#2.0\n12\n37#20\n63#960\n28#print\n2#usage: %s filename : compile python to c code\n27\n3\n22\n8\n48#1\n30\n63#961\n28#print\n2# %s -p filename : print code\n27\n3\n22\n8\n48#1\n30\n35#92\n28#len\n27\n48#1\n3#2.0\n15\n37#33\n63#964\n2#repl\n1#1\n63#965\n2#mp_opcode\n1#1\n63#966\n28#mp_opcode\n2#opcodes\n22\n25#1\n63#967\n28#compilefile\n27\n3#1.0\n22\n48#1\n25#2\n63#968\n28#convert_to_cstring\n27\n3#1.0\n22\n27#2\n48#2\n25#2\n63#969\n28#print\n27#2\n48#1\n30\n35#54\n28#len\n27\n48#1\n3#3.0\n15\n37#48\n63#971\n27\n3#1.0\n22\n25#3\n63#972\n27#3\n2#-p\n15\n37#14\n63#973\n28#compilefile\n27\n3#2.0\n22\n48#1\n25#2\n63#974\n28#print\n27#2\n48#1\n30\n35#24\n27#3\n2#-dis\n15\n37#9\n63#976\n28#dis\n27\n3#2.0\n22\n48#1\n30\n35#12\n63#978\n28#compile\n27\n3#1.0\n22\n2##test\n27\n3#2.0\n22\n48#3\n30\n35#1\n53\n26#main\n63#980\n28#__name__\n2#__main__\n15\n37#6\n63#981\n28#main\n48\n30\n35#1\n61\n"; const char* mp_opcode_bin="67#mp_opcode\n63#13\n2#boot\n2#*\n1#2\n63#14\n2#/*\\n* @author xupingmao<[email protected]>\\n* @generated by Python\\n* @date %s\\n*/\\n#ifndef INSTRUCTION_H_\\n#define INSTRUCTION_H_\\n\n26#cheader\n63#22\n2#\\n#endif\\n\\n\n26#ctail\n63#24\n31\n2#OP_IMPORT\n32\n2#OP_STRING\n32\n2#OP_NUMBER\n32\n2#OP_ADD\n32\n2#OP_SUB\n32\n2#OP_MUL\n32\n2#OP_DIV\n32\n2#OP_MOD\n32\n2#OP_NEG\n32\n2#OP_NOT\n32\n2#OP_GT\n32\n2#OP_LT\n32\n2#OP_GTEQ\n32\n2#OP_LTEQ\n32\n2#OP_EQEQ\n32\n2#OP_NOTEQ\n32\n2#OP_IN\n32\n2#OP_NOTIN\n32\n2#OP_AND\n32\n2#OP_OR\n32\n2#OP_SET\n32\n2#OP_GET\n32\n2#OP_SLICE\n32\n2#OP_NONE\n32\n2#OP_STORE_LOCAL\n32\n2#OP_STORE_GLOBAL\n32\n2#OP_LOAD_LOCAL\n32\n2#OP_LOAD_GLOBAL\n32\n2#OP_CONSTANT\n32\n2#OP_POP\n32\n2#OP_LIST\n32\n2#OP_APPEND\n32\n2#OP_DICT\n32\n2#OP_DICT_SET\n32\n2#OP_JUMP\n32\n2#OP_UP_JUMP\n32\n2#OP_POP_JUMP_ON_FALSE\n32\n2#OP_JUMP_ON_FALSE\n32\n2#OP_JUMP_ON_TRUE\n32\n2#OP_UNPACK\n32\n2#OP_ROT\n32\n2#OP_DEL\n32\n2#OP_FOR\n32\n2#OP_NEXT\n32\n2#OP_ITER\n32\n2#OP_LOAD_EX\n32\n2#OP_SETJUMP\n32\n2#OP_CALL\n32\n2#OP_TAILCALL\n32\n2#OP_APPLY\n32\n2#OP_DEF\n32\n2#OP_RETURN\n32\n2#OP_DEF_END\n32\n2#OP_CLASS\n32\n2#OP_CLASS_SET\n32\n2#OP_CLASS_END\n32\n2#OP_LOAD_PARAMS\n32\n2#OP_LOAD_NARG\n32\n2#OP_LOAD_PARG\n32\n2#OP_CLR_JUMP\n32\n2#OP_EOP\n32\n2#OP_DEBUG\n32\n2#OP_LINE\n32\n2#OP_TAG\n32\n2#OP_FAST_ST_GLO\n32\n2#OP_FAST_LD_GLO\n32\n2#OP_FILE\n32\n2#OP_PROFILE\n32\n26#_opcode_names\n63#102\n3\n26#i\n63#103\n33\n26#opcodes\n63#104\n28#i\n28#len\n28#_opcode_names\n48#1\n12\n37#27\n63#105\n28#_opcode_names\n28#i\n22\n26#name\n63#106\n28#i\n3#1.0\n4\n28#globals\n48\n28#name\n21\n63#107\n28#name\n28#opcodes\n28#i\n3#1.0\n4\n21\n63#108\n28#i\n3#1.0\n4\n26#i\n36#31\n63#110\n51#build_get_name_by_code\n63#110\n57\n63#111\n3\n25\n63#112\n31\n25#1\n63#113\n27#1\n2#append\n22\n2#const char* inst_get_name_by_code(int code) {\n48#1\n30\n63#114\n27#1\n2#append\n22\n2# switch(code) {\n48#1\n30\n63#115\n27\n28#len\n28#_opcode_names\n48#1\n12\n37#30\n63#116\n28#_opcode_names\n27\n22\n25#2\n63#117\n27\n3#1.0\n4\n25#3\n63#118\n27#1\n2#append\n22\n2# case %s:return \"%s\";\n31\n27#3\n32\n27#2\n32\n8\n48#1\n30\n63#119\n27\n3#1.0\n4\n25\n36#34\n63#121\n27#1\n2#append\n22\n2# }\n48#1\n30\n63#122\n27#1\n2#append\n22\n2# return \"UNKNOWN\";\n48#1\n30\n63#123\n27#1\n2#append\n22\n2#}\n48#1\n30\n63#124\n2#\\n\n2#join\n22\n27#1\n49#1\n52\n53\n26#build_get_name_by_code\n63#126\n51#export_clang_define\n24\n25#1\n63#126\n57#257\n63#129\n27#1\n24\n15\n37#7\n63#130\n28#ARGV\n3\n22\n25#1\n35#1\n63#131\n28#exists\n27\n48#1\n10\n37#3\n63#132\n35#12\n28#mtime\n27#1\n48#1\n28#mtime\n27\n48#1\n12\n37#4\n24\n52\n35#1\n63#135\n31\n25#2\n63#136\n3\n25#3\n63#137\n27#3\n28#len\n28#_opcode_names\n48#1\n12\n37#29\n63#138\n28#_opcode_names\n27#3\n22\n25#4\n63#139\n27#2\n2#append\n22\n2##define \n27#4\n4\n2# \n4\n28#str\n27#3\n3#1.0\n4\n48#1\n4\n48#1\n30\n63#140\n27#3\n3#1.0\n4\n25#3\n36#33\n63#141\n28#cheader\n28#str\n28#asctime\n48\n48#1\n8\n2#\\n\n2#join\n22\n27#2\n48#1\n4\n28#ctail\n4\n25#5\n63#142\n27#5\n28#build_get_name_by_code\n48\n4\n25#5\n63#143\n28#save\n27\n27#5\n48#2\n30\n53\n26#export_clang_define\n63#146\n28#__name__\n2#__main__\n15\n37#7\n63#147\n28#export_clang_define\n2#./src/include/instruction.h\n48#1\n30\n35#1\n61\n"; const char* pyeval_bin="67#pyeval\n63#6\n2#mp_encode\n1#1\n63#7\n28#mp_encode\n2#compile\n22\n26#compile\n63#8\n28#mp_encode\n2#split_instr\n22\n26#split_instr\n63#9\n28#mp_encode\n2#compile_to_list\n22\n26#compile_to_list\n63#11\n2#mp_opcode\n2#*\n1#2\n63#13\n51#_op_add\n63#13\n57#512\n63#14\n27\n27#1\n4\n52\n53\n26#_op_add\n63#15\n51#_op_sub\n63#15\n57#512\n63#16\n27\n27#1\n5\n52\n53\n26#_op_sub\n63#17\n51#_op_div\n63#17\n57#512\n63#18\n27\n27#1\n7\n52\n53\n26#_op_div\n63#19\n51#_op_mul\n63#19\n57#512\n63#20\n27\n27#1\n6\n52\n53\n26#_op_mul\n63#21\n51#_op_mod\n63#21\n57#512\n63#22\n27\n27#1\n8\n52\n53\n26#_op_mod\n63#23\n51#_op_get\n63#23\n57#512\n63#24\n27\n27#1\n22\n52\n53\n26#_op_get\n63#25\n51#_op_lt\n63#25\n57#512\n63#26\n27\n27#1\n12\n52\n53\n26#_op_lt\n63#27\n51#_op_gt\n63#27\n57#512\n63#28\n27\n27#1\n11\n52\n53\n26#_op_gt\n63#29\n51#_op_lteq\n63#29\n57#512\n63#30\n27\n27#1\n14\n52\n53\n26#_op_lteq\n63#31\n51#_op_gteq\n63#31\n57#512\n63#32\n27\n27#1\n13\n52\n53\n26#_op_gteq\n63#33\n51#_op_eq\n63#33\n57#512\n63#34\n27\n27#1\n15\n52\n53\n26#_op_eq\n63#35\n51#_op_ne\n63#35\n57#512\n63#36\n27\n27#1\n16\n52\n53\n26#_op_ne\n63#37\n51#_op_in\n63#37\n57#512\n63#38\n27\n27#1\n17\n52\n53\n26#_op_in\n63#39\n51#_op_del\n63#39\n57#512\n63#40\n27\n27#1\n42\n53\n26#_op_del\n63#42\n33\n28#OP_ADD\n28#_op_add\n34\n28#OP_SUB\n28#_op_sub\n34\n28#OP_DIV\n28#_op_div\n34\n28#OP_MUL\n28#_op_mul\n34\n28#OP_MOD\n28#_op_mod\n34\n28#OP_GET\n28#_op_get\n34\n28#OP_LT\n28#_op_lt\n34\n28#OP_GT\n28#_op_gt\n34\n28#OP_LTEQ\n28#_op_lteq\n34\n28#OP_GTEQ\n28#_op_gteq\n34\n28#OP_EQEQ\n28#_op_eq\n34\n28#OP_NOTEQ\n28#_op_ne\n34\n28#OP_IN\n28#_op_in\n34\n28#OP_DEL\n28#_op_del\n34\n26#OP_FUNC_DICT_2\n63#59\n51#_op_neg\n63#59\n57#256\n63#60\n27\n9\n52\n53\n26#_op_neg\n63#62\n33\n28#OP_NEG\n28#_op_neg\n34\n26#OP_FUNC_DICT_1\n63#66\n33\n28#OP_LINE\n2#OP_LINE\n34\n28#OP_SETJUMP\n2#OP_SETJUMP\n34\n28#OP_FILE\n2#OP_FILE\n34\n26#op_skip\n63#72\n54#Env\n51#__init__\n63#73\n57#512\n63#74\n27#1\n27\n2#_glo\n21\n53\n28#Env\n2#__init__\n21\n51#globals\n63#76\n57#256\n63#77\n27\n2#_glo\n22\n52\n53\n28#Env\n2#globals\n21\n56\n63#79\n54#Emulator\n51#record_debug_line\n63#81\n57#1024\n63#82\n27\n2#debug\n22\n10\n37#4\n24\n52\n35#1\n63#85\n28#str\n27#1\n48#1\n2#ljust\n22\n3#5.0\n48#1\n28#opcodes\n27#2\n22\n2#ljust\n22\n3#22.0\n48#1\n4\n28#str\n27#3\n48#1\n2#ljust\n22\n3#20.0\n48#1\n4\n27\n2#line\n21\n53\n28#Emulator\n2#record_debug_line\n21\n51#print_debug_line\n63#88\n57#256\n63#89\n27\n2#debug\n22\n37#9\n63#90\n28#print\n27\n2#line\n22\n48#1\n30\n35#1\n53\n28#Emulator\n2#print_debug_line\n21\n51#append_object\n63#92\n57#512\n63#93\n27\n2#debug\n22\n10\n37#4\n24\n52\n35#1\n63#96\n28#istype\n27#1\n2#string\n48#2\n37#15\n63#97\n27\n2#line\n22\n2#\"\n27#1\n4\n2#\"\n4\n4\n27\n2#line\n21\n35#12\n63#99\n27\n2#line\n22\n28#str\n27#1\n48#1\n4\n27\n2#line\n21\n53\n28#Emulator\n2#append_object\n21\n51#pyeval\n24\n25#2\n28#False\n25#3\n63#101\n57#514\n63#104\n27#3\n27\n2#debug\n21\n63#105\n2#\n27\n2#line\n21\n63#107\n27#2\n39#3\n33\n20\n25#2\n63#108\n28#Env\n27#2\n48#1\n25#4\n63#109\n27#4\n2#globals\n22\n27#2\n2#globals\n21\n63#111\n28#compile_to_list\n27#1\n2#<shell>\n48#2\n25#5\n63#113\n31\n25#6\n63#114\n31\n25#7\n63#115\n24\n25#8\n63#116\n3\n25#9\n63#117\n3\n25#10\n63#118\n27#9\n28#len\n27#5\n48#1\n12\n37#784\n27#5\n27#9\n22\n40#2\n25#11\n25#12\n63#121\n27\n2#record_debug_line\n22\n27#10\n27#11\n27#12\n48#3\n30\n63#123\n27#10\n3#1.0\n4\n25#10\n63#124\n27#11\n28#OP_CONSTANT\n15\n37#19\n63#125\n27#12\n25#8\n63#126\n27#7\n2#append\n22\n27#8\n48#1\n30\n63#127\n27\n2#append_object\n22\n27#8\n48#1\n30\n35#729\n27#11\n28#OP_STRING\n15\n37#19\n63#129\n27#12\n25#8\n63#130\n27#7\n2#append\n22\n27#8\n48#1\n30\n63#131\n27\n2#append_object\n22\n27#8\n48#1\n30\n35#707\n27#11\n28#OP_NUMBER\n15\n37#19\n63#133\n27#12\n25#8\n63#134\n27#7\n2#append\n22\n27#8\n48#1\n30\n63#135\n27\n2#append_object\n22\n27#8\n48#1\n30\n35#685\n27#11\n28#OP_LOAD_LOCAL\n15\n37#14\n63#137\n27#6\n27#12\n22\n25#8\n63#138\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#668\n27#11\n28#OP_STORE_LOCAL\n15\n37#13\n63#140\n27#7\n2#pop\n22\n48\n25#8\n63#141\n27#8\n27#6\n27#12\n21\n35#652\n27#11\n28#OP_LOAD_GLOBAL\n15\n37#37\n63#143\n27#12\n25#13\n63#144\n27#3\n37#7\n63#145\n28#line\n27#13\n4\n25#14\n35#1\n63#146\n27#13\n27#2\n17\n37#7\n63#147\n27#2\n27#13\n22\n25#8\n35#6\n63#149\n28#__builtins__\n27#13\n22\n25#8\n63#150\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#612\n27#11\n28#OP_STORE_GLOBAL\n15\n37#25\n63#152\n27#12\n25#13\n63#153\n27#3\n37#7\n63#154\n27#14\n27#13\n4\n25#14\n35#1\n63#155\n27#7\n2#pop\n22\n48\n25#8\n63#156\n27#8\n27#2\n27#13\n21\n35#584\n27#11\n28#OP_IMPORT\n15\n37#39\n63#158\n27#12\n3#1.0\n15\n37#14\n63#159\n27#7\n2#pop\n22\n48\n25#15\n63#160\n28#_import\n27#2\n27#15\n48#2\n25#8\n35#20\n63#162\n27#7\n2#pop\n22\n48\n25#16\n63#163\n27#7\n2#pop\n22\n48\n25#15\n63#164\n28#_import\n27#2\n27#15\n27#16\n48#3\n25#8\n35#542\n27#11\n28#OP_FUNC_DICT_2\n17\n37#29\n63#166\n27#7\n2#pop\n22\n48\n25#17\n63#167\n27#7\n2#pop\n22\n48\n25#18\n63#168\n28#OP_FUNC_DICT_2\n27#11\n22\n27#18\n27#17\n48#2\n25#8\n63#169\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#510\n27#11\n28#OP_FUNC_DICT_1\n17\n37#15\n63#171\n27#7\n2#pop\n22\n48\n25#12\n63#172\n28#OP_FUNC_DICT_1\n27#11\n22\n27#12\n48#1\n25#8\n35#492\n27#11\n28#OP_POP\n15\n37#8\n63#174\n27#7\n2#pop\n22\n48\n25#8\n35#481\n27#11\n28#OP_CALL\n15\n37#51\n63#176\n31\n25#19\n63#177\n3\n25#20\n63#178\n27#20\n27#12\n12\n37#17\n63#179\n27#19\n2#append\n22\n27#7\n2#pop\n22\n48\n48#1\n30\n63#180\n27#20\n3#1.0\n4\n25#20\n36#19\n63#181\n27#19\n2#reverse\n22\n48\n30\n63#182\n28#apply\n27#7\n2#pop\n22\n48\n27#19\n48#2\n25#8\n63#183\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#427\n27#11\n28#OP_LIST\n15\n37#12\n63#185\n31\n25#8\n63#186\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#412\n27#11\n28#OP_APPEND\n15\n37#20\n63#188\n27#7\n2#pop\n22\n48\n25#18\n63#189\n27#7\n3#-1.0\n22\n25#8\n63#190\n27#8\n2#append\n22\n27#18\n48#1\n30\n35#389\n27#11\n28#OP_DICT\n15\n37#12\n63#192\n33\n25#8\n63#193\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#374\n27#11\n28#OP_SET\n15\n37#25\n63#195\n27#7\n2#pop\n22\n48\n25#21\n63#196\n27#7\n2#pop\n22\n48\n25#8\n63#197\n27#7\n2#pop\n22\n48\n25#12\n63#198\n27#12\n27#8\n27#21\n21\n35#346\n27#11\n28#OP_DICT_SET\n15\n37#24\n63#200\n27#7\n2#pop\n22\n48\n25#12\n63#201\n27#7\n2#pop\n22\n48\n25#21\n63#202\n27#7\n3#-1.0\n22\n25#8\n63#203\n27#12\n27#8\n27#21\n21\n35#319\n27#11\n28#OP_EOP\n15\n37#3\n63#205\n35#313\n27#11\n28#OP_NONE\n15\n37#12\n63#207\n24\n25#8\n63#208\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#298\n27#11\n28#OP_UP_JUMP\n15\n37#15\n63#210\n27#9\n27#12\n5\n25#9\n63#211\n27\n2#print_debug_line\n22\n48\n30\n63#212\n36#496\n35#280\n27#11\n28#OP_JUMP\n15\n37#15\n63#214\n27#9\n27#12\n4\n25#9\n63#215\n27\n2#print_debug_line\n22\n48\n30\n63#216\n36#514\n35#262\n27#11\n28#OP_ITER\n15\n37#17\n63#218\n28#iter\n27#7\n2#pop\n22\n48\n48#1\n25#8\n63#219\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#242\n27#11\n28#OP_NEXT\n15\n37#32\n63#221\n47#17\n63#222\n28#next\n27#7\n3#-1.0\n22\n48#1\n25#8\n63#223\n27#7\n2#append\n22\n27#8\n48#1\n30\n60\n35#13\n46\n25#22\n63#225\n28#print\n27#22\n48#1\n30\n63#226\n27#9\n27#12\n4\n25#9\n35#207\n27#11\n28#OP_UNPACK\n15\n37#47\n63#228\n27#7\n2#pop\n22\n48\n25#23\n63#229\n28#len\n27#23\n48#1\n27#12\n16\n37#14\n63#230\n28#raise\n2#MP_UNARRAY expect length %s but see %s\n2#format\n22\n27#12\n28#len\n27#23\n48#1\n48#2\n48#1\n30\n35#1\n63#231\n27#23\n2#reverse\n22\n48\n30\n27#23\n45\n44#10\n25#18\n63#233\n27#7\n2#append\n22\n27#18\n48#1\n30\n36#9\n30\n35#157\n27#11\n28#OP_APPLY\n15\n37#20\n63#235\n27#7\n2#pop\n22\n48\n25#19\n63#236\n27#7\n2#pop\n22\n48\n25#24\n63#237\n27#24\n63#237\n27#19\n50\n25#8\n35#134\n27#11\n28#OP_SLICE\n15\n37#33\n63#239\n27#7\n2#pop\n22\n48\n25#25\n63#240\n27#7\n2#pop\n22\n48\n25#26\n63#241\n27#7\n2#pop\n22\n48\n25#27\n63#242\n27#27\n27#26\n27#25\n23\n25#8\n63#243\n27#7\n2#append\n22\n27#8\n48#1\n30\n35#98\n27#11\n28#op_skip\n17\n37#3\n63#245\n35#92\n27#11\n28#OP_POP_JUMP_ON_FALSE\n15\n37#29\n63#247\n27#7\n2#pop\n22\n48\n25#8\n63#248\n27#8\n10\n37#18\n63#249\n27#9\n27#12\n4\n25#9\n63#250\n24\n25#8\n63#251\n27\n2#print_debug_line\n22\n48\n30\n63#252\n36#715\n35#1\n35#60\n27#11\n28#OP_ROT\n15\n37#45\n63#254\n3\n25#20\n63#255\n31\n25#28\n63#256\n27#20\n27#12\n12\n37#17\n63#257\n27#28\n2#append\n22\n27#7\n2#pop\n22\n48\n48#1\n30\n63#258\n27#20\n3#1.0\n4\n25#20\n36#19\n27#28\n45\n44#10\n25#20\n63#260\n27#7\n2#append\n22\n27#20\n48#1\n30\n36#9\n30\n63#261\n24\n25#8\n35#12\n63#263\n28#raise\n28#sformat\n2#unknown handled code %s:\"%s\"\\n\n27#11\n28#opcodes\n27#11\n22\n48#3\n48#1\n30\n63#265\n27\n2#print_debug_line\n22\n48\n30\n63#266\n27#9\n3#1.0\n4\n25#9\n36#788\n63#267\n27#8\n52\n53\n28#Emulator\n2#pyeval\n21\n56\n63#269\n51#pyeval\n24\n25#1\n28#False\n25#2\n63#269\n57#258\n63#270\n28#Emulator\n48\n25#3\n63#271\n27#3\n2#pyeval\n22\n27\n27#1\n27#2\n49#3\n52\n53\n26#pyeval\n63#274\n28#__name__\n2#__main__\n15\n37#30\n63#275\n28#len\n28#ARGV\n48#1\n26#argc\n63#276\n28#ARGV\n26#argv\n63#277\n28#argc\n3#2.0\n15\n37#16\n63#278\n28#load\n28#argv\n3#1.0\n22\n48#1\n26#text\n63#279\n28#pyeval\n28#text\n24\n28#True\n48#3\n30\n35#1\n35#1\n61\n"; const char* repl_bin="31\n2#string\n32\n2#number\n32\n26##0\n67#repl\n63#6\n2#mp_encode\n1#1\n63#8\n3#40.0\n26#PRINT_STR_LEN\n63#9\n28#mp_encode\n2#compilefile\n22\n26#compilefile\n63#11\n51#repl_print\n3\n25#1\n3#2.0\n25#2\n63#11\n57#258\n63#12\n27#2\n3\n14\n37#9\n63#13\n28#print\n2#...\n48#1\n30\n24\n52\n35#1\n63#15\n28#gettype\n27\n48#1\n2#dict\n15\n39#7\n28#gettype\n27\n48#1\n2#class\n15\n20\n37#69\n63#16\n27#2\n3#1.0\n15\n37#12\n63#17\n28#printf\n2#%s{...}\\n\n27#1\n2# \n6\n48#2\n30\n24\n52\n35#1\n63#19\n28#print\n2#{\n48#1\n30\n27\n45\n44#34\n25#3\n63#21\n28#printf\n2# \n27#1\n3#1.0\n4\n6\n28#str\n27#3\n48#1\n4\n48#1\n30\n63#22\n28#printf\n2#:\n48#1\n30\n63#23\n28#repl_print\n27\n27#3\n22\n27#1\n3#1.0\n4\n27#2\n3#1.0\n5\n48#3\n30\n36#33\n30\n63#24\n28#print\n2# \n27#1\n6\n2#}\n4\n48#1\n30\n35#115\n28#gettype\n27\n48#1\n2#list\n15\n37#51\n63#26\n27#2\n3#1.0\n15\n37#12\n63#27\n28#printf\n2#%s[...]\\n\n27#1\n2# \n6\n48#2\n30\n24\n52\n35#1\n63#29\n28#printf\n2#%s[\\n\n27#1\n2# \n6\n48#2\n30\n27\n45\n44#14\n25#4\n63#32\n28#repl_print\n27#4\n27#1\n3#1.0\n4\n27#2\n3#1.0\n5\n48#3\n30\n36#13\n30\n63#34\n28#printf\n2#%s]\\n\n27#1\n2# \n6\n48#2\n30\n35#59\n28#gettype\n27\n48#1\n2#string\n15\n37#41\n63#36\n28#printf\n2# \n27#1\n6\n48#1\n30\n63#37\n28#len\n27\n48#1\n28#PRINT_STR_LEN\n11\n37#15\n63#38\n27\n2#substring\n22\n3\n28#PRINT_STR_LEN\n48#2\n25\n63#39\n27\n2#...\n4\n25\n35#1\n63#40\n28#escape\n27\n48#1\n25\n63#41\n28#printf\n2#\"%s\"\\n\n27\n48#2\n30\n35#13\n63#43\n28#printf\n2# \n27#1\n6\n48#1\n30\n63#44\n28#print\n27\n48#1\n30\n53\n26#repl_print\n63#46\n51#remove_consts\n63#46\n57#256\n63#47\n31\n25#1\n27\n45\n44#20\n25#2\n63#49\n28#gettype\n27\n27#2\n22\n48#1\n28##0\n17\n37#9\n63#50\n27#1\n2#append\n22\n27#2\n48#1\n30\n35#1\n36#19\n30\n27#1\n45\n44#7\n25#2\n63#54\n27\n27#2\n42\n36#6\n30\n53\n26#remove_consts\n63#56\n51#getmem\n63#56\n57\n63#57\n28#str\n28#get_vm_info\n48\n2#alloc_mem\n22\n3#1024.0\n7\n48#1\n2# kb\n4\n52\n53\n26#getmem\n63#59\n51#run\n24\n25#1\n63#59\n57#257\n63#60\n28#ARGV\n25#2\n63#61\n27#1\n24\n15\n37#7\n63#62\n31\n27\n32\n25#1\n35#9\n63#64\n27#1\n2#insert\n22\n3\n27\n48#2\n30\n63#65\n28#load_module\n27\n28#compilefile\n27\n48#1\n48#2\n30\n63#66\n27#2\n25#3\n53\n26#run\n63#68\n51#print_help\n63#68\n57\n63#69\n28#print\n48\n30\n63#70\n28#print\n2#to run a python file\n48#1\n30\n63#71\n28#print\n2# - minipy filename\n48#1\n30\n63#72\n28#print\n48\n30\n63#73\n28#print\n2#built-in variables\n48#1\n30\n63#74\n28#print\n2# - __builtins__ built-in functions\n48#1\n30\n63#75\n28#print\n2# - __modules__ avaliable modules\n48#1\n30\n63#76\n28#print\n48\n30\n63#77\n28#print\n2#input exit to quit\n48#1\n30\n63#78\n28#print\n48\n30\n53\n26#print_help\n63#82\n51#repl\n63#82\n57\n63#83\n2#pyeval\n1#1\n63#84\n28#print\n2#Welcome To Minipy!!!\n48#1\n30\n63#85\n28#print\n2#Try 'help' for more information, 'exit' to quit\n48#1\n30\n63#87\n28#pyeval\n2#pyeval\n22\n25\n63#88\n63#89\n28#False\n26#DEBUG\n63#91\n33\n25#1\n63#92\n27#1\n2#update\n22\n28#globals\n48\n48#1\n30\n63#93\n27#1\n27#1\n2#g\n21\n63#94\n28#remove_consts\n27#1\n48#1\n30\n63#95\n3#1.0\n37#75\n63#96\n28#input\n2#>>> \n48#1\n25#2\n63#97\n27#2\n2#\n16\n37#64\n63#98\n47#55\n63#99\n27#2\n2#exit\n15\n37#4\n63#100\n35#56\n35#1\n63#101\n27#2\n2#help\n15\n37#8\n63#102\n28#print_help\n48\n30\n63#103\n36#32\n35#1\n63#104\n2#DEBUG\n27#1\n17\n10\n37#7\n63#105\n28#False\n27#1\n2#DEBUG\n21\n35#1\n63#106\n27\n27#2\n27#1\n27#1\n2#DEBUG\n22\n48#3\n25#3\n63#107\n27#3\n24\n16\n37#7\n63#108\n28#repl_print\n27#3\n48#1\n30\n35#1\n60\n35#7\n46\n25#4\n63#110\n28#traceback\n48\n30\n35#1\n36#75\n53\n26#repl\n63#112\n28#__name__\n2#__main__\n15\n37#6\n63#113\n28#repl\n48\n30\n35#1\n61\n";
the_stack_data/75138354.c
#include <stdio.h> #define MAX_SIZE 200 int bsearch(int *a,int n,int v,int *buf){ int left=0,right=n,mid=0; while(left<=right){ *buf = mid = (left+right)/2; if(a[mid] == v){ return 0; }else if(v < a[mid]){ right = mid-1; }else{ left = mid+1; } } return -1; } int main(){ int a[MAX_SIZE],n=0,i=0; printf("Enter the upper limit: "); scanf("%d", &n); printf("::Enter the array in ascending order::\n"); do{ printf("Enter value[%d]: ", i+1); scanf("%d", a+i); }while(++i<n); printf("Enter the value to search: "); scanf("%d", &i); if(!bsearch(a,n,i,&i)){ printf("Value found at position: %d.\n",i+1); return 0; } printf("Value not found!\n"); return -1; }
the_stack_data/55917.c
/*- * Copyright (c) 2009 David Schultz <[email protected]> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/lib/libc/stdio/getline.c,v 1.1 2009/02/28 06:00:58 das Exp $ */ #define _WITH_GETLINE #include <stdio.h> ssize_t getline(char ** __restrict linep, size_t * __restrict linecapp, FILE * __restrict fp) { return (getdelim(linep, linecapp, '\n', fp)); }
the_stack_data/353078.c
//{{BLOCK(SpritesBT) //====================================================================== // // SpritesBT, 256x256@4, // Transparent palette entry: 11. // + palette 256 entries, not compressed // + 1024 tiles Metatiled by 32x32 not compressed // Total size: 512 + 32768 = 33280 // // Time-stamp: 2012-11-05, 19:47:24 // Exported by Cearn's GBA Image Transmogrifier, v0.8.3 // ( http://www.coranac.com/projects/#grit ) // //====================================================================== const unsigned short SpritesBTTiles[16384] __attribute__((aligned(4)))= { 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xB000,0x0000,0xCC00,0x0000,0x1590,0x0000,0x1D47, 0xBB28,0x0009,0xBBBB,0x00BB,0x88BB,0x00BB,0xD78B,0x0008, 0x4780,0x0008,0xD2DB,0x0000,0x087C,0x0000,0xC744,0x0000, 0x0000,0x74BB,0xB000,0x77BB,0xBB00,0x7D8B,0xBB00,0xD780, 0x2800,0xD780,0x2800,0xDD80,0x9000,0xD42F,0x0000,0x2429, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0009,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x2400,0x0000,0x7700, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0007,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x9000,0x0000,0x2000,0x0000,0x8000,0x0000,0x9000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBBB8,0x0009,0x8BBB,0x000B,0xB8BB,0x0009,0x7D8B,0x0007, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0008,0xBB00,0x00B2, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xA000,0x0000,0xA000,0x0000,0xAA00,0x0000,0xDA00, 0x0000,0xAAA0,0x0000,0xABB0,0x0000,0xAAA0,0x0000,0xDDAA, 0x00BA,0x0000,0xDAAA,0x000B,0xDDDD,0x000B,0xBDDD,0x000B, 0xBDDD,0x0000,0xBBDA,0x0000,0xBDDD,0x0000,0xDDDD,0x000B, 0x0000,0x0000,0x0000,0xBBBB,0xB000,0xAAAD,0xDB00,0xAADD, 0xBDB0,0xDDAD,0xDBB0,0xDDAA,0xADB0,0xDDAA,0xADB0,0xAAAA, 0x0000,0x0000,0xBBBB,0x0000,0xDAAA,0x000B,0xBDAA,0x00BD, 0xBABA,0x0BDB,0xABDD,0x0BBB,0xBBBA,0x0BBD,0xDDDA,0x0BDD, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0xA000,0xDAAA,0xA000,0xAAAA, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0xB000,0x00BA,0xB008,0x00B8,0xAAAA,0xAAAD, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0xAAD0,0x00BA,0xDDAA,0x008D, 0x7000,0x1C7D,0x4900,0x1187,0x2800,0x1152,0x4800,0x811C, 0xA800,0x8199,0xAF00,0x8B09,0x7900,0x84F7,0x7900,0x44DD, 0xC44C,0x0000,0x5722,0x0000,0x524D,0x0000,0x9B7D,0x0000, 0x0B88,0x0000,0x0582,0x0000,0xFDB2,0x0000,0xD88F,0x0000, 0x0000,0x5D59,0x0000,0x1119,0x0000,0x111C,0x0000,0x4111, 0x9000,0xC111,0x0000,0x2CC9,0x0000,0xB8B0,0x0000,0x4DB0, 0x0002,0x0000,0x0007,0x0000,0x000D,0x0000,0x0002,0x0000, 0x0008,0x0000,0x0002,0x0000,0x0092,0x0000,0x0097,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5999, 0x0000,0x1115,0xF000,0x211B,0x2F00,0x4DC2,0xF700,0x2DD8, 0xB000,0x00BB,0xB000,0x0BBB,0xBBCC,0xBBBB,0xDB51,0xB27B, 0xBB82,0xB87D,0x8574,0x07DD,0x95DD,0x00D8,0x0997,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xA900,0x0000,0x6729,0x8DD0,0x468D, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x09F9,0x0000,0x8222,0x0000,0x4D22,0x000D, 0x0000,0x0000,0x0000,0xA000,0x0000,0x8220,0x0000,0xAD40, 0x0000,0x7700,0x0000,0x2D48,0x9000,0xA6A7,0x9000,0x4664, 0x0000,0x0000,0x000A,0x0000,0xA2D7,0x0000,0x77D4,0x0000, 0x0727,0x0000,0x97D8,0x0000,0x77FF,0x0099,0x6664,0x0974, 0x0000,0xDF00,0x0000,0x8B89,0x9000,0x8DB2,0x0000,0x8BBB, 0x0000,0x72B9,0x0000,0x77C1,0x9000,0x82C1,0x1590,0x8111, 0x0007,0x0000,0x000A,0x0000,0x000D,0x0000,0x99FD,0x0000, 0x744D,0x000F,0xA66A,0x7004,0x6666,0x270F,0xA766,0xD4D2, 0x0000,0x8900,0x0000,0x7D00,0x0000,0x4250,0x0000,0x2815, 0x5900,0x5111,0x1500,0x8111,0x1E00,0x7D11,0x8900,0x082C, 0xA2B0,0x0008,0x82BC,0x000F,0x7884,0x000D,0x8D72,0x00A2, 0x00A8,0x0000,0x0007,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x9000,0x0000,0xDA00, 0x0000,0xA700,0x0000,0xDD00,0x0000,0xD420,0x0000,0x8720, 0xBB90,0x09BB,0xBDB0,0x0BBB,0x88B5,0x9BBB,0x725D,0x0BBD, 0x8D57,0x4005,0x7488,0xDBDC,0xDD81,0x0A7D,0x5D21,0x00A8, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0022,0x0000,0x097D,0x0000,0x0A8A,0x0000,0x0700,0x0000, 0xA000,0xDABA,0xAA00,0xDABB,0xDA00,0xAABB,0xAB00,0xABBD, 0xA000,0xADBA,0xB000,0xAABB,0x0000,0xDAD0,0x0000,0xDAA0, 0xDADD,0x000B,0xDADD,0x0DAB,0xABDD,0x0DAD,0xABDA,0x0BBA, 0xBBDA,0x00BB,0xBDDD,0x0000,0xDDDD,0x000B,0xDDDD,0x000B, 0xDB00,0xDDDA,0xB000,0xDDAD,0x0000,0xDADB,0x0000,0xADB0, 0x0000,0xDB00,0x0000,0xB000,0x0000,0x0000,0x0000,0x0000, 0xBBBD,0x00BA,0xABDD,0x000B,0xBDBD,0x0000,0x0BDB,0x0000, 0x00BD,0x0000,0x000B,0x0000,0x0000,0x0000,0x0000,0x0000, 0xD000,0x88B8,0xD000,0xD888,0x8000,0xBDDD,0xB000,0xBD88, 0x8000,0xBDDD,0xB000,0xBD88,0xA000,0xDD88,0xD000,0x8DDD, 0xAD88,0xDDAA,0xDDDD,0xBBDD,0xBBBB,0xBBBB,0x8BBB,0x8BBB, 0x8D8B,0x88DD,0x88BB,0x8BB8,0xDDDD,0xBBAD,0x88B8,0xADD8, 0x88DD,0x00BB,0xDDDB,0x00BD,0x88DB,0x00BB,0xDDB8,0x008D, 0x8AB8,0x00B8,0xD8A8,0x00BB,0xDAAA,0x008D,0xB88D,0x00BB, 0x8000,0x448D,0x0000,0x4AF8,0x0000,0xA67F,0x0000,0x664F, 0x0000,0x667F,0x0000,0x667F,0x0000,0x667F,0x0000,0x6777, 0x847A,0x00A8,0xD444,0x00AD,0x4A44,0x0000,0x6A47,0x0007, 0x6444,0x000A,0x6A7A,0x0006,0x44FA,0x0006,0x6484,0x00AA, 0x0000,0x64B0,0x0000,0x6AB0,0x0000,0x6490,0x0000,0xAF00, 0x0000,0x4F00,0x0000,0x4F00,0x0000,0x7F00,0x0000,0xFF00, 0x00A7,0x0000,0x00A6,0x0000,0x0046,0x0000,0x0466,0x0000, 0x0A66,0x0000,0x4666,0x0000,0x7666,0x0000,0x7664,0x0000, 0x6480,0x47D4,0x64B0,0xADD4,0xA480,0x7D66,0x4800,0x2A66, 0xF000,0xF664,0xF800,0x6644,0xFD2A,0x4666,0x82DD,0x7A64, 0x0007,0x0000,0x004D,0x0000,0x767D,0x0000,0x74D7,0x0000, 0x74DD,0x0000,0x947F,0x0000,0x097F,0x0000,0x0009,0x0000, 0x2440,0x4642,0x72D0,0x66A8,0xF890,0x66A4,0x4B00,0x4466, 0x6B00,0x47D6,0xAB00,0x8746,0x4B00,0xAD76,0xF000,0x68D4, 0x4722,0xBB27,0x5D28,0x5111,0x11B7,0x1111,0x5C84,0x5111, 0xC447,0x0511,0x5888,0x09BB,0xBBB6,0x09BB,0xBDB7,0x0B2B, 0x9000,0x6664,0x7700,0x66AD,0xDD47,0x8244,0xBBBD,0x57D8, 0xB2B7,0x1C8B,0x2200,0x11BB,0xB000,0x9000,0x0000,0x0000, 0x6666,0x0F46,0xA47A,0x0976,0x2228,0x00F2,0x27D2,0x000F, 0x9C41,0x0000,0xCB11,0x0000,0x5B11,0x0000,0x5B19,0x000C, 0x1110,0xDD21,0xBBB0,0x87D5,0x5550,0x78D0,0x0090,0xA280, 0x0000,0x6200,0x0000,0x7000,0x0000,0x9000,0x0000,0x0000, 0x7766,0xD4AD,0x8464,0xD7D8,0xFA66,0xA227,0xF466,0x0D20, 0x0FA6,0x0000,0x0974,0x0000,0x000F,0x0000,0x0000,0x0000, 0x2800,0x0922,0x7B00,0x0924,0x4B00,0x09AA,0x4B00,0x0766, 0x7900,0x4A66,0xD000,0x4A66,0xF000,0xA66A,0x9000,0x66AF, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x000A,0x0000,0x00A6,0x0000,0x0946,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8D74,0x0000,0x5DAD,0x0000,0x247D,0x0000,0x7F8D, 0x7900,0x7F8D,0xD2A0,0x8028,0x0000,0x0000,0x0000,0x0000, 0xB881,0x477F,0x4222,0x4FD4,0x7778,0xD764,0x6664,0x7666, 0x6664,0x4D46,0x6A47,0x7FD4,0x77F9,0x9FD7,0xFF00,0x00FF, 0x74A0,0x0000,0x7874,0x0000,0xF72D,0x0000,0xD288,0x00A7, 0x8D78,0x07DD,0x7D28,0x0002,0x0000,0x0000,0x0000,0x0000, 0x0000,0xDDA0,0x0000,0xDDAA,0xA000,0xDDDA,0xA000,0xDDDD, 0xA000,0xAADD,0xA000,0xBDAA,0xAA00,0xBBBB,0xDAAA,0xAB0B, 0xDDDD,0x00BD,0xDDDD,0x00BD,0xDDDD,0x00BD,0xDDDD,0x00BD, 0xDDDD,0x00BB,0xBDAA,0x000B,0xBBDA,0x0000,0xDDAA,0x000B, 0x0000,0x0000,0x0000,0xB000,0x0000,0xB000,0x0000,0xB000, 0x0000,0xBB2B,0xB000,0xB2B2,0x2B00,0xBB2E,0x2B00,0x22EE, 0x0000,0x0000,0x000B,0x0000,0x0000,0x0000,0x0BBB,0x0000, 0xB222,0x0000,0x2EB2,0x000B,0xEE2B,0x00B2,0xE2E2,0x00B2, 0xA000,0x8BB8,0xB000,0xBBBB,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDDA8,0xDDDD,0xD8BB,0xB88D,0xBB00,0x00BB,0xBB00,0x00BB, 0xAD00,0x00B8,0xDB00,0x00AA,0xBD00,0x00B8,0xAD00,0x00BA, 0xD8B8,0x008D,0xBBBB,0x00BB,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xD74D,0x0000,0x7D78,0x0000,0x8778,0x0000,0x9BB2, 0x0000,0x00FD,0x2900,0x90F4,0x7900,0xF07A,0x0000,0x000A, 0xA4F7,0x0097,0x4478,0x000F,0xF7FF,0x0000,0x0829,0x0000, 0x0978,0x0000,0x04A2,0x0000,0x774D,0x0000,0x00AA,0x0000, 0x0000,0x4F00,0x0000,0x4F00,0x0000,0x7F00,0x0000,0xF900, 0x0000,0x8000,0x0000,0x8000,0x0000,0x7F00,0x0000,0x0000, 0xF664,0x0000,0xFA66,0x0000,0xFD66,0x0000,0x9FA4,0x0000, 0x08FF,0x0000,0x0F8A,0x0000,0x0928,0x0000,0x0000,0x0000, 0xF099,0xD64F,0x9000,0x0FF7,0x9000,0x00DA,0x8000,0x004A, 0xD900,0x0924,0x7F00,0x0777,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8DDB,0x0000,0x09F0,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBB09,0x0B2B,0xB000,0x00FB,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x5B50,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x6A7F,0x0000,0x64F9,0x0000,0x64B0,0x0000,0x4F00, 0x0000,0x9000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0766,0x0000,0x4776,0x0000,0x4766,0x0000,0x8844,0x0000, 0x22BB,0x0000,0x7729,0x947D,0x24F0,0x08DD,0x44F0,0x0844, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x2B00,0xEEEE,0x2B00,0xEEE2,0x2B00,0x2EE2,0xB000,0x2E22, 0xB000,0x2222,0x0000,0x222B,0x0000,0xB2B0,0x0000,0x0000, 0x222E,0x00B2,0x2222,0x00B2,0x2222,0x00B2,0x2222,0x000B, 0x2222,0x000B,0xB22B,0x0000,0x0BB2,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8B00,0x00AA,0xB800,0x00BB,0x8B00,0x00B7,0xD800,0x00B7, 0x8800,0x00B7,0x8B00,0x00BD,0x8700,0x007D,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0990,0x2900,0x9BB9,0xBB00,0xBBBB, 0xBB00,0x9B88,0x8B00,0x08D7,0x8BB0,0x0847,0xDB00,0x00D2, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5000, 0x0000,0x0000,0x9000,0x0000,0x2B00,0x009B,0xBB00,0x0BBB, 0xB8B0,0xBBBF,0xD8B9,0x0B2D,0x72B0,0x00D7,0x2221,0x0092, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xDF00,0x0000,0x7770, 0xF290,0x0009,0xBBB0,0x00BB,0xBBB0,0x00BB,0xDBB0,0x00B8, 0xD2B9,0x00DA,0x28B0,0x009A,0x2D1C,0x0097,0x2712,0x0005, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x5F90,0x0000,0xCAD0, 0x0F00,0x0000,0xB2B0,0x009B,0xBBB0,0x0BBB,0xBBB0,0x0BBB, 0xD2B0,0x0F2D,0xDBB9,0x008A,0x2D85,0x0097,0x8D7C,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x2900, 0x0000,0xB900,0x0000,0xB900,0x0000,0x8B00,0xF000,0xBBCF, 0x0000,0x0000,0x0000,0x0000,0x0099,0x0000,0x9BBB,0x0000, 0xBBBB,0x0000,0xB27B,0x0000,0x9772,0x0000,0x9842,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x2900,0x0000,0x8B00,0x0000,0xBB00, 0x0000,0xBB00,0x0000,0x8B00,0x0000,0xBB00,0xF000,0xD855, 0x0000,0x0000,0x009B,0x0000,0xBBBB,0x0000,0xBBBB,0x0009, 0x02D2,0x0000,0x0D42,0x0000,0x0F42,0x0000,0x09F2,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0990,0x2B00,0x9BB9,0xBB00,0xBBBB, 0xBB00,0x98BB,0xDB00,0x0DD2,0xBB00,0x02A2,0x8BC0,0x0FD2, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0009,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xC000, 0x0000,0x0000,0x9000,0x0000,0x2B00,0x009B,0xBB90,0x09BB, 0xBDB0,0x0BB8,0xD2BB,0x0B22,0x42B0,0x0027,0xD22C,0x0008, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5000, 0x0000,0x0000,0xBBB0,0x00BB,0xBBB0,0x0BB2,0x4880,0x09BD, 0x42BB,0x00F7,0x22B0,0x000F,0x9DC5,0x0009,0x24CC,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xBBB0,0x0000,0x8BB0,0x0000,0xD2B9, 0x0000,0xD8B9,0x0000,0x285C,0x8000,0x5111,0x1DA0,0xCD51, 0x0000,0x0000,0x0BBB,0x0000,0x0BBB,0x0000,0x00D4,0x0000, 0x00FA,0x0000,0x009D,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0F00,0x0000,0xB2B0,0x0000,0xBBB0, 0x0000,0xBBB0,0x0000,0x2DB0,0x0000,0x2BB0,0xD400,0xDB5C, 0x0000,0x0000,0x0000,0x0000,0x009B,0x0000,0x0BBB,0x0000, 0x0B8B,0x0000,0x0BDD,0x0000,0x002A,0x0000,0x00FD,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x2B00,0x0000,0xBB00,0x0000,0xBB00, 0x0000,0x2B00,0x0000,0xBB00,0x0000,0x2F00,0x0000,0x51C0, 0x0000,0x0000,0x9BBB,0x0000,0xBBBB,0x0009,0x928B,0x0000, 0x0D72,0x0000,0x0842,0x0000,0x0F22,0x0000,0x0092,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x9000,0x0000,0xD000,0x0000,0xC000, 0x0000,0x8500,0x0000,0xD500,0x0000,0xC000,0x0000,0x2F00, 0x7C59,0x00F2,0x41DD,0x000D,0xA1DA,0x000D,0x7C47,0x000D, 0x7DCA,0x0009,0xFDDD,0x0077,0x27AD,0x00D4,0x8888,0x0002, 0x0000,0x4800,0x0000,0x7440,0x0000,0x27D4,0x0000,0x1247, 0x0000,0xCE72,0x0000,0x4729,0x0000,0x8800,0x0000,0xA890, 0xBD71,0x0000,0x8771,0x0002,0x4A71,0x000F,0x2471,0x0000, 0x5D82,0x0000,0x5D4D,0x0000,0x08DD,0x0000,0x0A8D,0x0000, 0x0000,0x8777,0xF000,0x18DD,0x8000,0x1547,0x0000,0x154F, 0x0000,0x47F0,0x0000,0x4D90,0x0000,0xD890,0x0000,0x6790, 0xD415,0x00A5,0x7721,0x00A5,0x8D71,0x0005,0xBD7C,0x0000, 0xBB28,0x0007,0xD22D,0x00DD,0xA6A4,0x0087,0x6666,0x0066, 0x0000,0xC772,0x4700,0x18DD,0x7800,0x11C8,0x4800,0x211C, 0x7900,0x211C,0x8000,0x229D,0x8000,0xA6D4,0xF000,0x66DD, 0x844C,0x0002,0x8444,0x0007,0xB722,0x0000,0xBB47,0x0000, 0xBBD2,0x88A7,0x7B22,0x882D,0x8982,0x9998,0xAA66,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xF000,0x0000,0xF000,0x0000,0xF000,0x0000,0x2000, 0xDF00,0x2C12,0x77D0,0x4412,0x8D47,0xAD15,0x1C7D,0x4D21, 0x1127,0x7D28,0x510D,0xD7D2,0x9527,0x2822,0x8484,0x9222, 0x0B8D,0x0000,0x00CD,0x0000,0x00C7,0x0000,0x00CD,0x0000, 0x00BB,0x0A78,0xD4BB,0x0AA8,0xDDCB,0x00DD,0x98F5,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xD800,0x7411,0x7790,0x4411,0x2774,0x4D11,0x5D4D,0x7DC1, 0x10D7,0xD4D1,0x107D,0xB22C,0x5972,0xB272,0x48DF,0x0224, 0x0092,0x0000,0x0022,0x0000,0x0082,0x0000,0x009B,0x0000, 0x009B,0x0000,0x4745,0x00AD,0x8DD8,0x007D,0x9AAA,0x000A, 0x0000,0x0000,0x0000,0xD000,0x0000,0x7000,0x0000,0x7200, 0x0000,0x2DA0,0x0000,0x2440,0x0000,0xD490,0x0000,0x7800, 0xD11C,0x0008,0x7124,0x0092,0x7187,0x0044,0xD118,0x0044, 0xD211,0x0002,0xDD81,0x0000,0x8225,0x0000,0x8228,0x7A00, 0x0000,0x7900,0x0000,0xA800,0x0000,0x7800,0x0000,0xA800, 0x0000,0x7800,0x0000,0x78E0,0x0000,0x8100,0x0000,0x44F0, 0x97C8,0x0000,0xD41D,0x0000,0xD718,0x0000,0x87CC,0x0000, 0x924C,0x0000,0x72D4,0x0004,0x7742,0x000D,0x8822,0x0000, 0x0000,0x5000,0x0000,0x5700,0x0000,0x5D00,0x0000,0xBD00, 0x0000,0x1500,0x0000,0xCF00,0x0000,0x8F00,0x0000,0x47B0, 0x7577,0x0000,0x7572,0x000A,0xDC72,0x07A4,0x8741,0xD7D0, 0xDD21,0x4744,0x4DC1,0x0FDD,0x8885,0x0000,0x6D28,0x0766, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x5DD0,0x7451,0x5DDF,0x2D51,0x12F0,0x7211,0x1500,0x4B11, 0x1900,0xDB11,0x2D90,0xF911,0x74F0,0x0922,0x464F,0x4477, 0x0000,0x0000,0x0000,0x0000,0xDF00,0x0007,0x7DD2,0x0002, 0x8244,0x0009,0x09FD,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x5720,0x5111,0x1C7D,0x1111,0x15DD,0x8111,0x1CD9,0x2111, 0x1190,0xC111,0x5B00,0xC111,0x2800,0x0115,0x7D00,0x09C2, 0x0009,0x0000,0x0005,0x0000,0x00C7,0x0000,0x0027,0x0000, 0xDD42,0x00DD,0xD2DF,0x002D,0xD780,0x0002,0x9800,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xD21C,0x7000,0x4712,0xD700,0xDD12,0x2200,0x7D1B, 0x8800,0xDD11,0x8F00,0x7811,0x2000,0xDB52,0xF000,0x2287, 0x0045,0x0000,0x00D5,0x0000,0x00D5,0x0000,0x0045,0x0000, 0xD805,0x000D,0xDD74,0x0007,0x0F8D,0x0000,0x0009,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xAF00,0x0000,0x6AB0,0xADA0,0x6AB0,0xDA7D,0x6AB4, 0x7D28,0x64BD,0xF900,0x64B7,0x0000,0x6A4F,0x0000,0x6649, 0x0F24,0x0000,0x04D6,0x0000,0x76A6,0x0000,0x7466,0x0000, 0x4466,0x0004,0x7A66,0x0046,0xFA66,0x00A6,0xF666,0x0066, 0x0000,0x6490,0x0000,0x6490,0x0000,0x6790,0x0000,0xAF90, 0x0000,0x7490,0xD800,0x46FD,0x74F0,0x6684,0xD4D0,0x7888, 0x7D46,0x0000,0x2D66,0x0000,0x4666,0x0000,0xA666,0x0000, 0x6666,0x0007,0x666A,0x0007,0x6666,0x000A,0x466D,0x0000, 0x0000,0xAF90,0x0000,0x7790,0x0000,0x7790,0x0000,0x4780, 0x0000,0x74F0,0x0000,0x7D8F,0x9000,0x24DB,0xB000,0x727F, 0x6666,0x0066,0x6A74,0x0066,0x66AF,0x0066,0x666D,0x007D, 0x767D,0x0097,0xFFB7,0x0009,0x00F8,0x0000,0x0004,0x0000, 0x0000,0x667F,0x0000,0x647F,0x0000,0x474F,0x0000,0xF44F, 0x0000,0x74AD,0x8900,0x7A67,0x7800,0x7664,0x6F00,0xD66A, 0xA666,0x0000,0x6666,0x0006,0x664A,0x0006,0x6667,0x009D, 0xA66F,0x0097,0x66A8,0x009D,0x6A79,0x0097,0x8880,0x0009, 0x0000,0x9000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xF000,0x0000,0x4800,0x0000,0x6B70, 0x7FFF,0x02DA,0xAF00,0x0466,0xAF00,0x0666,0x4700,0x6666, 0x4790,0x6666,0x4487,0x6664,0x4444,0x6667,0x7A46,0x6674, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000A,0x0000,0x00A6,0x0000,0x097A,0x0000,0x0F74,0x0000, 0x0000,0x0000,0x0000,0x00A0,0x0000,0x00D8,0xF000,0xF777, 0xD000,0x8D27,0x7000,0x4200,0x0000,0x7900,0x0000,0xB000, 0x774F,0x9D66,0x4DDF,0x9A66,0x4890,0x4666,0x487F,0x6666, 0x7446,0x6664,0x7666,0x6644,0xA66A,0x6647,0x744D,0x6A6F, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0004,0x0000,0x0006,0x0000,0x0076,0x0000,0x007F,0x0000, 0x0000,0xD000,0x0000,0xD000,0xDD70,0x807D,0xDD2F,0xF07D, 0x8000,0x8272,0x0000,0x4480,0x0000,0x64F0,0x0000,0x44F0, 0x8DDD,0x7827,0x4647,0x8D8D,0x6648,0x0000,0x6664,0x0004, 0x664F,0x00A6,0x667F,0x00A6,0x6677,0x0066,0x6AFF,0x00A6, 0x0000,0x6AF0,0x0000,0x6AF0,0x0000,0x64F0,0x0000,0x6790, 0x0000,0x6F48,0x8000,0xAF77,0xD900,0x488D,0xD200,0x77F0, 0x0764,0x0000,0xA44A,0x000A,0x4746,0x0046,0x7466,0x0066, 0x7466,0x006A,0xD666,0x0A4A,0x7666,0x0074,0xD666,0x0009, 0x0000,0x6AB0,0x0000,0x66B0,0x0000,0x66B0,0x0000,0x66F9, 0x0000,0x6679,0x0000,0x6678,0xF000,0x6647,0x8000,0x6664, 0x6A74,0xAA66,0x44A7,0xA666,0x4744,0x0766,0x4746,0x0966, 0x4776,0x0074,0x7D76,0x000F,0x9F76,0x0009,0x0084,0x0000, 0x0000,0x0000,0x0000,0xB000,0x0000,0xB000,0x0000,0xFF00, 0x0000,0x7F00,0x0000,0x7AF0,0x0000,0x4670,0x0000,0x6670, 0x66AF,0x6444,0x6664,0x6764,0x6664,0x6464,0x6666,0xAD44, 0xA666,0xA4F4,0x4666,0x478F,0x4666,0x7F00,0x9766,0x2F00, 0x00A6,0x0000,0x0A66,0x0000,0x0666,0x0000,0x0666,0x0000, 0x0666,0x0000,0x0466,0x0000,0x0444,0x0000,0x00FB,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x9000, 0x0000,0xF000,0x0000,0x8B00,0x0000,0x4AF0,0x0000,0x664F, 0x7AB0,0x0A24,0x4679,0x0476,0xA64F,0x7A76,0xA66F,0x6A44, 0x6667,0x6A47,0x6664,0x6A74,0x666A,0x4A74,0x666A,0x6477, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0006,0x0000,0x00A6,0x0000,0x0A66,0x0000,0x0666,0x0000, 0x0000,0x0000,0x0000,0x0029,0x8000,0x027D,0x7D00,0xD7D7, 0xFD00,0x8800,0x0000,0x4900,0x0000,0x4900,0x0000,0xB000, 0xF000,0x8244,0x4B00,0x746A,0xA890,0x766A,0x67F9,0x7646, 0x6484,0x7676,0x64F6,0x4676,0x6676,0xA446,0x66AA,0x6446, 0x0000,0x0000,0x0000,0x0000,0x0004,0x0000,0x0006,0x0000, 0x00A6,0x0000,0x0066,0x0000,0x0466,0x0000,0x0A66,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x77B0,0x0000,0x8900,0x0000,0x9000,0x0000,0x0000, 0x0000,0x9000,0x0000,0x2000,0x0000,0xDF00,0x0000,0x7000, 0xFA66,0x0046,0x4747,0x0094,0x4448,0x0007,0xFF88,0x0000, 0x09D2,0x0000,0x0047,0x0000,0x0777,0x0000,0xF447,0x0000, 0x0748,0x8790,0x007F,0xA490,0x0000,0x4B90,0x0000,0xDD90, 0x0000,0x4724,0x0000,0x477D,0x0000,0xD720,0x0000,0x4F00, 0x08B8,0x0000,0x094A,0x0000,0x00F4,0x0000,0x0009,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0007,0x0000,0x0004,0x0000, 0xB000,0xA84F,0x0000,0x74DB,0x8000,0x08B8,0xDF00,0x0047, 0x7DF0,0x0004,0x7D00,0x0004,0x2900,0x004D,0x0000,0x00D8, 0x0007,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xAF00,0x9466,0x4F00,0x9744,0x8DF0,0x00FF,0x7DD7,0x0000, 0x0777,0x0000,0x00D2,0x0000,0x00D8,0x0000,0x00D8,0x0000, 0x4D80,0x0000,0x0D29,0x0000,0x7748,0x0000,0x777F,0x009D, 0xD000,0x0008,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x2800,0x4B7D,0x7800,0xFFF2,0xD800,0x0009,0x2800,0x0000, 0x7F00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x4A66,0x6A87,0x7744,0xA799,0x09FF,0x4F00,0x0000,0x8000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0F46,0x0000,0x0FA6,0x0000,0x0B74,0x0000,0x02D8,0x0000, 0x02D9,0x0000,0x47D0,0x0000,0x4780,0x0A74,0x2F90,0x09DD, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8899,0x664B,0x0000,0x66F9,0x0000,0x67B0,0x0000,0x8F00, 0x0000,0x8000,0x0000,0x9000,0x0000,0x9000,0x0000,0x9000, 0x0076,0x0000,0x0046,0x0000,0x0076,0x0000,0x0048,0x0000, 0x004A,0x0007,0xDDD4,0x00FD,0x8447,0x0009,0x0FDD,0x0000, 0x0000,0x7B00,0x0000,0x9000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x9000,0x0000,0x2900,0x0000,0x4800,0x0000,0x4F00, 0x6A6F,0x0076,0x66A8,0x00FD,0x464B,0x0097,0xF788,0x0000, 0x0FD7,0x0000,0x0087,0x0000,0x0AD4,0x0000,0x44AA,0x0000, 0x0F00,0x4AF0,0x0000,0x64F0,0x0000,0x4F00,0x0000,0x2420, 0x9000,0x077D,0x8000,0x00DA,0xF000,0x0D47,0x0000,0x4A4F, 0x9FA6,0x0000,0x0FD6,0x0000,0x00F4,0x0000,0x0009,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0009,0x0000, 0xD000,0x7466,0x8000,0x7DA4,0x7A00,0x09BB,0x7D80,0x0007, 0x47DF,0x0000,0xA780,0x0000,0xD7F0,0x0000,0x4F00,0x0004, 0x000F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x6A70,0x0000,0x8FD2,0x2000,0x0FD4,0x7F00,0x0047, 0xD900,0x0047,0x8000,0x0047,0x9000,0x0047,0x0000,0x007F, 0x0077,0xD200,0x0094,0xDD80,0x0000,0xD200,0x0000,0xF000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000A,0x0000,0x0000,0x0000,0x0002,0x0000,0x0088,0x0000, 0x0090,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x47D0,0x66AF,0xD740,0xDF48,0x07D0,0x74F0,0x0720,0x0900, 0x0DF0,0x0000,0x0D00,0x0000,0x0000,0x0000,0x0000,0x0000, 0x4666,0x6A4B,0xFA67,0xA4FF,0x0F77,0xBB00,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0666,0x0000,0x7A66,0x0000,0x8444,0x0000,0x288F,0x0000, 0xDD90,0x0000,0xD800,0x00AA,0x7800,0x08DD,0x2F00,0x09FD, 0x0000,0x9000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x664D,0x4F46,0xAAD9,0x4484,0xFF00,0xFF09,0x0000,0x9000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xF666,0x0000,0xFA66,0x0000,0x0F44,0x0000,0x0DB8,0x0000, 0x07D8,0x0000,0x27D0,0x00FD,0x27D0,0x0009,0xFDD0,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xB800,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x3D00,0x0000,0x7800,0x0000,0x7B00,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7000,0x0000,0x8000,0x000D,0xB000,0x0007,0x8000,0x0008, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0D7C, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x5550,0x0000,0x6665,0x0000,0x6665,0x5000,0x6666, 0x6500,0x5566,0x6500,0x5566,0x6500,0x5566,0x6500,0x5566, 0x5555,0x0005,0x5666,0x0055,0x6666,0x0555,0x6666,0x0556, 0x6655,0x5566,0x6500,0x5566,0x6500,0x5566,0x5000,0x5566, 0x0000,0x5550,0x0000,0x6665,0x0000,0x6665,0x0000,0x6665, 0x0000,0x6550,0x0000,0x5000,0x0000,0x5000,0x0000,0x5000, 0x0000,0x0000,0x0005,0x0000,0x0056,0x0000,0x0556,0x0000, 0x0556,0x0000,0x0556,0x0000,0x0556,0x0000,0x0556,0x0000, 0x0000,0x5500,0x0000,0x6650,0x0000,0x6665,0x5000,0x6666, 0x6500,0x5566,0x6500,0x0055,0x5000,0x0000,0x0000,0x5000, 0x5555,0x0000,0x6666,0x0005,0x6666,0x0056,0x6666,0x0556, 0x6655,0x0556,0x6650,0x0556,0x6665,0x0555,0x6666,0x0055, 0x0000,0x5555,0x5000,0x6666,0x5000,0x6666,0x5000,0x6566, 0x0000,0x5565,0x0000,0x0565,0x0000,0x0050,0x0000,0x5000, 0x5555,0x0055,0x6666,0x0056,0x6666,0x0556,0x6666,0x0556, 0x6555,0x0556,0x6650,0x0055,0x5665,0x0055,0x6666,0x0556, 0x0000,0x0000,0x0000,0x0550,0x0000,0x5565,0x5000,0x5566, 0x5000,0x5566,0x5000,0x5566,0x5000,0x5566,0x5000,0x6666, 0x0000,0x0000,0x5500,0x0000,0x6500,0x0555,0x6500,0x5566, 0x6500,0x5566,0x6500,0x5566,0x6655,0x5566,0x6666,0x5566, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5000, 0x0000,0xBB00,0x0000,0xBB00,0x0000,0xBB30,0x0000,0xBB30, 0xD700,0x000F,0x8D00,0x000F,0x8000,0x00CD,0x2078,0x000D, 0x87BB,0x00C7,0x8BBB,0x00C7,0xCBBB,0x0087,0x7BBB,0x00C7, 0x0000,0x0000,0x0000,0x0000,0x0007,0x0000,0x00D8,0x0000, 0x007B,0xBBB3,0x0088,0xBBB5,0x003D,0xB2BB,0x0007,0xBBBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xB800,0x0000, 0xD700,0x0000,0x8D05,0x0000,0xCF2B,0x0000,0xD78B,0x0008, 0xDB00,0x0000,0xB800,0x0000,0x3700,0x0000,0x37C0,0x0000, 0x37F0,0xBBB0,0x37F0,0xBBB5,0xF7B0,0xB2BB,0x7DC0,0xBBBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000B,0x0000,0x000B,0x0000,0x000B,0x0000,0x8C0B,0x0003, 0xD000,0x0003,0x0000,0x0007,0x8000,0x0007,0x8000,0xB507, 0x8000,0xBB5D,0x8000,0xBBBD,0x8000,0xBBB7,0x8000,0xBBB7, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000B,0x0000, 0x00BB,0x0000,0x00BB,0x0000,0x00BB,0x0000,0x00BB,0x0000, 0x8000,0x0CB7,0x0000,0x0D74,0xC000,0x5BD7,0xC000,0xB587, 0xC000,0xBBD7,0xC000,0xBBDD,0x0000,0xBB2D,0x0000,0xBBB8, 0x0000,0x0000,0x0000,0x0000,0x03BB,0x0000,0x0BBB,0x0000, 0x05B2,0x0000,0x0BBB,0x0000,0x0BBB,0x0000,0x035B,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x7F00,0x0000,0x87F0, 0x0000,0xBD73,0x0000,0xBD73,0x0000,0xB780,0x0000,0xBDC0, 0x087F,0x0000,0x0BB7,0x0000,0x03BB,0x0000,0xBBB5,0x0000, 0xBBBB,0x0000,0xBB2B,0x0000,0xBBBB,0x0005,0xBBBB,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xBBB3,0x0000,0xBBB5,0x0000,0xB2BB,0x0000,0xBBBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xB800,0x0000, 0xD700,0x0000,0x8D05,0x0000,0xCF2B,0x0000,0xD78B,0x0008, 0x6500,0x5566,0x6500,0x5666,0x6500,0x5666,0x6500,0x6666, 0x5000,0x6666,0x5000,0x6666,0x0000,0x6655,0x0000,0x5500, 0x0000,0x5665,0x0005,0x5665,0x0055,0x5665,0x0555,0x5565, 0x5556,0x5566,0x6666,0x0566,0x6666,0x0556,0x5555,0x0555, 0x0000,0x6500,0x0000,0x6500,0x0000,0x6500,0x0000,0x6500, 0x0000,0x6500,0x0000,0x6500,0x0000,0x6500,0x0000,0x5000, 0x0556,0x0000,0x0556,0x0000,0x0556,0x0000,0x0556,0x0000, 0x0556,0x0000,0x0055,0x0000,0x0055,0x0000,0x0005,0x0000, 0x0000,0x5000,0x0000,0x6500,0x0000,0x6500,0x0000,0x6650, 0x0000,0x6665,0x5000,0x6666,0x0000,0x5555,0x0000,0x5550, 0x5666,0x0005,0x5666,0x0005,0x5566,0x0505,0x5556,0x5655, 0x6666,0x5666,0x6666,0x5566,0x5555,0x5555,0x5555,0x0055, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0055, 0x5000,0x0566,0x0000,0x5665,0x0000,0x6665,0x0000,0x5550, 0x6655,0x0556,0x6500,0x5566,0x5000,0x5566,0x5000,0x5566, 0x6500,0x5566,0x6555,0x0556,0x6666,0x0555,0x5555,0x0055, 0x0000,0x6665,0x0000,0x5550,0x0000,0x5500,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x6666,0x5566,0x6555,0x5566,0x6555,0x0556,0x6650,0x0556, 0x6650,0x0555,0x6650,0x0055,0x6500,0x0055,0x5000,0x0055, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xBB30,0x0000,0xB72C,0xDC00,0x8777,0x77F0,0xD887, 0xCD80,0x8505,0x08B0,0x1500,0x8DB0,0xB003,0x2830,0xB00B, 0x7BBB,0x0032,0x8BBB,0x000C,0x1111,0x000B,0x1111,0x00B1, 0x1111,0x0B11,0x1111,0x00B1,0x1111,0x005B,0xBBBB,0x0000, 0x0088,0xBBBB,0x777D,0xBBB7,0x88B0,0xBB87,0x0000,0x118B, 0x0000,0x11BB,0x0000,0x111B,0x0000,0x1115,0x0000,0x11B0, 0x728B,0x000B,0xB7DB,0x0000,0x0BB1,0x0000,0x0B11,0x0000, 0xB111,0x0000,0xB111,0x0003,0x0B11,0x0000,0x0CBB,0x0000, 0x7800,0xBBB7,0xD000,0xBBB7,0xB000,0xBB8D,0x0000,0x11B8, 0x0000,0x11B5,0x0000,0x1115,0x0000,0x11B5,0x0000,0xBBB0, 0xD28B,0x0007,0x777B,0x000D,0x8DB1,0x0003,0x05B1,0x0000, 0x5B11,0x0000,0xB111,0x0003,0x5B11,0x0000,0x0BBB,0x0000, 0x8000,0xBBB7,0x8000,0xBBB7,0x0000,0x111D,0x0000,0x111B, 0x0000,0x111B,0x0000,0x111B,0x0000,0x111B,0x0000,0xBBB0, 0x000B,0x0000,0xD7BB,0x00D7,0xD7B1,0x00BD,0x5BB1,0x0000, 0x0B11,0x0000,0xB111,0x0000,0x0BB1,0x0000,0x3BBB,0x0000, 0x0000,0xBB1B,0x0000,0x111B,0x5000,0x1111,0xB300,0x1111, 0x1300,0x1111,0x5300,0x111B,0x0000,0x2250,0x0000,0xBB50, 0xCDBB,0x0000,0x77D1,0x000F,0x7DDB,0x0027,0xB5BB,0x0877, 0x7D11,0x0CDD,0xC511,0x0000,0x0BB2,0x0000,0x44BB,0x003B, 0x0000,0xBBC0,0x0000,0x1150,0x0000,0x11B0,0x0000,0x1115, 0x0000,0x111B,0x0000,0x11B5,0x0000,0x1B30,0x0000,0xB300, 0xBBBB,0x000F,0x7811,0x0FD7,0x7B11,0xD777,0xBB11,0x78BB, 0x5111,0x7800,0x5111,0xD800,0x5B11,0x82B0,0xBB22,0x0B80, 0x38C0,0xBBBB,0x777D,0xBBB7,0x88B0,0xBB87,0x0000,0x118B, 0x0000,0x11BB,0x0000,0x111B,0x0000,0x1115,0x0000,0x11B0, 0x728B,0x000B,0xB7DB,0x0000,0x0BB1,0x0000,0x0B11,0x0000, 0xB111,0x0000,0xB111,0x0003,0x0B11,0x0000,0x0CBB,0x0000, 0x0000,0x5555,0x0000,0x6665,0x0000,0x6665,0x0000,0x5665, 0x0000,0x5665,0x0000,0x6665,0x0000,0x6665,0x0000,0x5550, 0x0555,0x0000,0x5666,0x0005,0x6666,0x0056,0x5555,0x0566, 0x5555,0x0555,0x5666,0x0555,0x6666,0x0005,0x6655,0x0056, 0x0000,0x5000,0x0000,0x6550,0x0000,0x6665,0x5000,0x5666, 0x5000,0x5666,0x6500,0x5666,0x6500,0x5566,0x6500,0x6666, 0x0555,0x0000,0x5566,0x0000,0x5556,0x0000,0x0555,0x0000, 0x0005,0x0000,0x0005,0x0000,0x5555,0x0000,0x6666,0x0055, 0x5500,0x5555,0x6650,0x6666,0x6650,0x6666,0x6650,0x6655, 0x5500,0x5555,0x0000,0x5550,0x0000,0x0000,0x0000,0x5550, 0x5555,0x0000,0x6666,0x0555,0x6666,0x0566,0x6666,0x0556, 0x6655,0x0556,0x6655,0x0555,0x5665,0x0055,0x5666,0x0005, 0x0000,0x5555,0x5000,0x6666,0x6500,0x5666,0x6650,0x0555, 0x6665,0x5055,0x6665,0x5556,0x6665,0x6566,0x6650,0x6666, 0x0005,0x0000,0x0556,0x0000,0x5566,0x0000,0x5665,0x0005, 0x5666,0x0005,0x5666,0x0005,0x5666,0x0005,0x6666,0x0055, 0x0000,0x5555,0x5000,0x6666,0x6500,0x6666,0x6500,0x5556, 0x6650,0x0555,0x6650,0x0555,0x6650,0x5556,0x6500,0x5666, 0x0055,0x0000,0x5566,0x0000,0x6666,0x0005,0x6665,0x0055, 0x6650,0x0055,0x6500,0x0055,0x6505,0x0556,0x6655,0x0556, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xC000,0xB50C,0x0000,0x44B0,0x3000,0x4649,0x9000,0xC664, 0x4500,0xC464,0xBB00,0x4444,0xB000,0x4B4B,0x0000,0x4BBB, 0xCB22,0x0000,0x4A4C,0x000F,0x444B,0x00B4,0x644B,0x0B46, 0x4AAB,0x0446,0xA44B,0x5466,0x644B,0x9466,0x44B4,0xB466, 0x0000,0xBB00,0x0000,0xB8B0,0x0000,0xBCBB,0xB000,0xBC4B, 0xBB00,0xCC44,0x4B00,0x4C44,0x4400,0x4444,0x4B00,0x4444, 0x0FB2,0x0000,0xF4AB,0x0000,0x4644,0x000B,0x6644,0x00C4, 0x6644,0x0546,0x6444,0x0746,0x644B,0x0B44,0xD4C4,0x0544, 0x0000,0x2B00,0x0000,0xB500,0x0000,0xC430,0x0000,0xC4C0, 0x0000,0xC44C,0xB000,0xC64B,0xB000,0xB664,0xB000,0xC464, 0xC4B2,0x0003,0x444B,0x0004,0x664B,0x0366,0x444B,0x0464, 0x44A9,0x5444,0x4C44,0x54AC,0x4B44,0x04D7,0xB344,0x05B7, 0x0000,0x2B00,0x0000,0xC900,0x0000,0xC450,0x0000,0xC4C0, 0x0000,0xC445,0x0000,0x4644,0x5000,0x6664,0xC000,0x6664, 0x4442,0x000C,0x464B,0x00C4,0x664B,0x0C44,0x7449,0xC444, 0x49C9,0xB444,0x44C4,0x0447,0x7B44,0x0B4D,0xF44B,0x0032, 0x0000,0x4A43,0x0000,0x444C,0x0000,0x4649,0x5000,0x4664, 0xC000,0x4664,0x9300,0xA664,0x4300,0xB664,0x4300,0x4644, 0x44CC,0x0544,0xA49E,0x3444,0x44C4,0xB444,0x44C9,0xBB44, 0x44C4,0x0B44,0x44CC,0x00B4,0xB4C5,0x00B5,0xB4C0,0x00C7, 0x0000,0x4C00,0x0000,0x4450,0x0000,0x44BB,0x0000,0x444B, 0x0000,0x466B,0x0000,0x466B,0x0000,0x4664,0x0000,0x4644, 0x498B,0x00CA,0x4C44,0x0C46,0xCC44,0xC466,0xCC44,0x4444, 0xCCA4,0xB444,0x494A,0x5444,0x44B9,0x05C4,0x4459,0x0005, 0x0000,0xBB00,0x0000,0xB8B0,0x0000,0xB4BB,0xB000,0xB44B, 0xBB00,0x4464,0x4B00,0x6466,0x6400,0x64A6,0x6B00,0x0644, 0x0FB2,0x0000,0xF4AB,0x0000,0x4444,0x000B,0x6644,0x00C4, 0x6444,0x0546,0x4444,0x0746,0x444B,0x0B46,0xD4C0,0x0544, 0x0000,0x5000,0x0000,0x5000,0x0000,0x5550,0x0000,0x6665, 0x0000,0x6650,0x0000,0x6500,0x0000,0x6500,0x0000,0x5000, 0x6555,0x0556,0x6500,0x0556,0x6550,0x0556,0x6665,0x0556, 0x6666,0x0556,0x6666,0x0055,0x5666,0x0055,0x5555,0x0005, 0x6500,0x6666,0x6500,0x5666,0x6500,0x5566,0x5000,0x5566, 0x5000,0x5566,0x5000,0x5666,0x0000,0x6665,0x0000,0x5550, 0x6666,0x0556,0x6655,0x0556,0x6500,0x5566,0x5500,0x5566, 0x6555,0x5566,0x6665,0x5556,0x6666,0x0555,0x5555,0x0055, 0x0000,0x6665,0x0000,0x6550,0x0000,0x6650,0x0000,0x6650, 0x0000,0x6665,0x0000,0x5665,0x0000,0x5665,0x0000,0x5550, 0x5566,0x0000,0x0556,0x0000,0x0556,0x0000,0x0555,0x0000, 0x0055,0x0000,0x0055,0x0000,0x0005,0x0000,0x0005,0x0000, 0x5500,0x5665,0x5500,0x5665,0x5000,0x5566,0x5000,0x5566, 0x5000,0x5666,0x5000,0x6666,0x0000,0x6665,0x0000,0x5550, 0x6655,0x0566,0x6500,0x5566,0x6500,0x5566,0x6505,0x5566, 0x6655,0x5556,0x6666,0x0555,0x5666,0x0055,0x5555,0x0005, 0x5000,0x6666,0x0000,0x6655,0x0000,0x5500,0x0000,0x0000, 0x0000,0x5000,0x0000,0x6500,0x0000,0x6650,0x0000,0x5500, 0x6666,0x0556,0x6666,0x0556,0x6655,0x0556,0x6665,0x0055, 0x5665,0x0055,0x5566,0x0005,0x5566,0x0000,0x5555,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x44B0,0x0000,0x4500,0x0000,0xC800,0x0000,0xBDB0, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x843B,0x04C7,0xDB8B,0x0B68,0x253D,0x00B8,0x7805,0x000C, 0xDC00,0x0008,0xDC00,0x0008,0xDC00,0x000C,0x0000,0x0000, 0x4B00,0x4444,0xBB00,0x48DB,0x3000,0xC78B,0x0000,0xB7BB, 0x0000,0x7DC0,0x0000,0x8DD0,0x0000,0x0C78,0x0000,0x0000, 0xD7B4,0x00F4,0xB7C5,0x005B,0x87CB,0x0000,0x283B,0x0000, 0x87C0,0x0000,0xB8C0,0x0000,0x0000,0x0000,0x0000,0x0000, 0xB000,0x4444,0xB000,0x774B,0x0000,0x7DBB,0x0000,0x7800, 0x0000,0x7B00,0x0000,0x7D00,0x0000,0x877C,0x0000,0x0000, 0x7544,0x000D,0x854C,0x0007,0x8543,0x0007,0x8553,0x0007, 0x000C,0x000B,0x0008,0x0000,0x000C,0x0000,0x0000,0x0000, 0xC000,0x6644,0xB000,0x7444,0x0000,0x7D4F,0x0000,0x7843, 0x0000,0xDB00,0x0000,0xD000,0x0000,0x7C00,0x0000,0x87C0, 0x8444,0x003D,0xB454,0x0037,0x850A,0x003D,0x300B,0x0003, 0x000C,0x0000,0x0007,0x0000,0x000C,0x0000,0x0003,0x0000, 0x4300,0x4D74,0xC000,0x4774,0x5000,0xB786,0x0000,0x0DBB, 0x0000,0xDD00,0x0000,0x7700,0x0000,0xB700,0x0000,0xD700, 0xBC00,0x000B,0x5B00,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8444,0x0000,0x7D4B,0x0000,0x78BB,0x0000,0xDBB0, 0x0000,0x7B00,0x0000,0x7B00,0x0000,0x7B00,0x0000,0x7C00, 0x9CC6,0x008D,0xC508,0x0088,0xB50B,0x0000,0x5003,0x0000, 0x000D,0x0000,0x000D,0x0000,0x000B,0x0000,0x0002,0x0000, 0x4B00,0x0B44,0xBB00,0x08DB,0x3000,0xC78B,0x0000,0xB7BB, 0x0000,0x7DC0,0x0000,0x8DD0,0x0000,0x0C78,0x0000,0x0000, 0xD7B0,0x00F4,0xB7C5,0x005B,0x87CB,0x0000,0x283B,0x0000, 0x87C0,0x0000,0xB8C0,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0055,0x5500,0x5565,0x5650,0x6665,0x5665,0x6550,0x0566, 0x6650,0x0566,0x6665,0x5665,0x5565,0x5650,0x0055,0x5500, 0x0000,0x0000,0x0000,0x8000,0x0800,0x0F00,0x8480,0xFF84, 0x0F00,0x0D00,0x0000,0x8400,0x0000,0x8000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x3350,0x0000,0x9EE6,0x00C3, 0xC339,0xE4EE,0x6600,0x0CE6,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xDF00,0x0000,0x0020, 0x0000,0x0028,0x0000,0x0022,0x0000,0x0082,0x0000,0x0008, 0x0000,0x0000,0x00F0,0x0000,0x0F4F,0x0000,0xF000,0x0000, 0x0000,0x0000,0x2000,0x0082,0x2000,0x0022,0x0000,0x0222, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x8000,0x0000,0x8000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x2280,0x2D20, 0x2D20,0x222B,0x0220,0x2000,0x0028,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x0000, 0x0002,0x0000,0x0222,0x0000,0x0220,0x0000,0x2220,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0008, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8200, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0222, 0x0028,0x2DD2,0xBBD2,0x2280,0x0022,0x2000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0222,0x0000,0x0222,0x0000,0x2280,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x2000,0x0000,0xD000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x00BB,0x2000,0x002D,0x8882,0x2088,0x0002,0x2200, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0002,0x0000,0x002D,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8000,0x0200,0x2280,0x2200,0x8B88,0x2200,0x000B, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000B,0x0000,0x002D,0x0000,0x0088,0x0000,0x2220,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0x2200, 0x2000,0x2282,0x2200,0x800B,0x2200,0x0000,0x0088,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0082,0x0000, 0x0022,0x0000,0x0022,0x0000,0x8220,0x0000,0x2220,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0800,0x0000,0x8800,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0220,0x22D0, 0xBDD0,0x2228,0x0222,0x2000,0x0002,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0002,0x0000, 0x0002,0x0000,0x0022,0x0000,0x0022,0x0000,0x0220,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8200, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0222, 0x0028,0x2DD2,0xBBD2,0x22B0,0x002D,0x2000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0222,0x0000,0x0222,0x0000,0x2280,0x0000, 0x0000,0x000B,0x0000,0x2220,0x0000,0xD2D0,0x8000,0x2222, 0x2200,0x2288,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0002,0x0000,0x0002,0x0000,0x00B2,0x0800, 0x02B2,0x7800,0x7778,0xD8D7,0x2000,0xBB72,0x0000,0xBB70, 0x0000,0x0002,0x0000,0x0077,0xD000,0x007D,0x7800,0x0070, 0x7800,0x0020,0x7800,0xB0D7,0xD20B,0xD227,0xDD88,0xD27D, 0x0000,0x0828,0x0000,0x0002,0xD000,0x0082,0x2200,0x0002, 0x2280,0x0002,0x2D2B,0x0000,0x0DD2,0x0000,0x770D,0x0007, 0x0000,0x0000,0x8000,0x0000,0xB000,0x000B,0x8000,0x0B22, 0x0000,0x0222,0x0000,0xB2D0,0x0000,0x2280,0x0000,0x2BB0, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xD200, 0x0000,0xD800,0x0000,0x7D00,0x0008,0xD800,0x0777,0xBB00, 0x0000,0x0000,0x000D,0x0000,0x0002,0x0000,0x0078,0x0000, 0x0070,0x0000,0x7D70,0xB07D,0xDD70,0x2B8D,0xD2D0,0x8222, 0x2280,0x0000,0x0200,0x0000,0x8200,0x0000,0x8220,0x0000, 0x0220,0x0000,0x0228,0x0000,0x0022,0x0000,0x00D2,0x0000, 0x0000,0x0008,0x0000,0x0BB8,0x0000,0xB2D8,0x0000,0x2DD0, 0x0000,0x2DD0,0x0000,0xD2B0,0x0000,0xB000,0x0000,0x0000, 0x0000,0x8800,0x0000,0x000D,0x0000,0x007D,0x0008,0x0780, 0x0002,0x0780,0x00B2,0x7D00,0x7778,0x8B07,0x77D0,0xBBD7, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x00D8,0x07D0,0x07DD,0xB7D0,0xDD0D,0xB280,0xDD0B,0xD222, 0x0880,0x0000,0x8200,0x0000,0x8220,0x0000,0x2220,0x0000, 0x0220,0x0000,0x0DDB,0x0000,0x7DD2,0x000D,0x7DD2,0x00D7, 0x0000,0x8800,0x0000,0x2200,0x0000,0xD200,0x0000,0xD200, 0x0000,0xD800,0x0000,0x8B00,0x0000,0x0000,0x0000,0x0000, 0x0000,0x2000,0x0002,0x0222,0x002D,0x0220,0x0022,0x0000, 0x0022,0x8000,0x7722,0xD007,0x0DD2,0xD0BD,0x7720,0xDBBB, 0x0002,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x008D,0x0007,0xB8DD,0x200D,0xD77D,0x222D,0xD7DD, 0x0022,0x0000,0x0022,0x0000,0x002D,0x0000,0x0022,0x0000, 0x0022,0x0000,0x0022,0x0000,0x002D,0x0000,0x0002,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xB000, 0x0000,0xB000,0x0000,0xD2B0,0x0000,0x2200,0x0000,0x2220, 0x0008,0x0000,0x0022,0x0000,0xB2D2,0x0000,0x2222,0x0000, 0x22D2,0x0000,0x82DB,0x007D,0xDDDD,0xBBB0,0x7722,0xBBBD, 0x8200,0x0000,0x0B88,0x0000,0x0080,0x0000,0x0000,0x0DD0, 0x0080,0x0DD0,0x00D0,0x00DB,0x2020,0x2B87,0xDD80,0x222D, 0x2200,0x0000,0x8000,0x0008,0x8000,0x0000,0x2D00,0x0000, 0x8220,0x0000,0x222B,0x0000,0x02D2,0x0000,0x02D2,0x0000, 0x0000,0x0000,0x0000,0x0022,0x0000,0x2222,0x0000,0x2D22, 0x22D0,0xDDD2,0xD000,0xD2D2,0x0000,0x2228,0x0000,0x828B, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0022,0x0000, 0x0022,0x0008,0x0022,0x00D2,0xD7D2,0x0DB8,0x77D2,0xDBB2, 0x0880,0x0000,0x0D00,0x0000,0x0700,0x0000,0xD2D8,0x0000, 0x70D8,0x0000,0x7078,0x2B00,0xD77D,0xD282,0x27D7,0xD8D2, 0x2200,0x0000,0x2800,0x0000,0x0200,0x0000,0x222D,0x0000, 0x082D,0x0000,0x0022,0x0000,0x0022,0x0000,0x000D,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0D00,0x0020,0x2200,0xD220, 0x2000,0xDD22,0xD000,0xDD22,0xB000,0xD222,0xB000,0x228B, 0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0022,0x0D00, 0x002D,0x0D00,0x002D,0xD700,0xD822,0x7DB0,0x7722,0xDBBD, 0x0000,0x0000,0x0000,0x0000,0x0007,0x0000,0x000D,0x0000, 0x0002,0x0000,0xD778,0x8007,0xDDD7,0x2BBD,0x2D27,0x2B22, 0x2280,0x0000,0x0020,0x0000,0x0820,0x0000,0x0820,0x0000, 0x00DD,0x0000,0x0022,0x0000,0x002D,0x0000,0x000D,0x0000, 0x0000,0x0000,0x0000,0x0020,0x0000,0x0220,0x0000,0x2200, 0x0000,0xDB00,0x0000,0x8000,0x0000,0xB000,0x0000,0x0000, 0x0000,0x8200,0x0000,0x000D,0x0000,0x0070,0x0DDD,0x0780, 0x2DDD,0x0780,0x2222,0x7D68,0x222B,0x8BDD,0xD200,0xB877, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x00D8,0x0720,0x07DD,0xB7D0,0xDD0D,0xB2D0,0xDD0B,0xD2B2, 0x0880,0x0000,0x8200,0x0000,0x8220,0x0000,0x2220,0x0000, 0x0220,0x0000,0x0DDB,0x0000,0x7DD2,0x000D,0x7DD2,0x00D7, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8000,0x0000,0x2220,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8BD0,0x0000,0xD820,0x2DD2,0x7772,0x22DD,0xDD72, 0x2228,0x0002,0x22D2,0x0008,0x0220,0x0000,0x0000,0x0000, 0xD7DD,0xDD22,0xD7D7,0x722B,0x278D,0xD80B,0x0000,0x0200, 0x0000,0x0D00,0x0000,0x0D00,0x0000,0x0000,0x0000,0x0000, 0x70D7,0x0007,0x0007,0x0007,0x0000,0x000D,0x0000,0x000D, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xD000,0x0000,0xD280, 0x0000,0x22DD,0x0000,0xDDD0,0x0000,0x0000,0x0000,0x0000, 0x7D22,0xBB07,0x7820,0xBB87,0x00DD,0x7722,0x22DD,0x7777, 0x2222,0x0D77,0x2222,0x000D,0x000B,0x0000,0x0000,0x0000, 0xD2D8,0xDD2D,0xDDD2,0x77DD,0xBD7D,0xDB22,0xB872,0x2BBD, 0x0000,0xD000,0x0000,0xD000,0x0000,0xD000,0x0000,0x0000, 0x7772,0x0000,0x777D,0x00DD,0x0007,0x0027,0x0007,0x00D7, 0x000D,0x00DD,0x000D,0x00D0,0x000D,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xD000,0xB87D,0x0000,0x88DD,0x0000,0x2220,0x0000,0x2200, 0x0000,0x8B00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDD22,0x78DD,0xD72D,0xDDD2,0x8728,0x7BDB,0x8D2B,0x007B, 0x0D80,0x0000,0x0080,0x0000,0x00D0,0x0000,0x0000,0x0000, 0x0027,0x0000,0x0077,0x0000,0x007D,0x0000,0x00D0,0x0000, 0x0DD0,0x0000,0x0DD0,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x2000,0x0000,0x2D00,0x0000,0x0000,0x0000,0x0000, 0x7D88,0x28BD,0x2D08,0xBD88,0x2222,0xD772,0x2228,0xDD72, 0x222D,0x0008,0x0822,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDDDD,0xDDD2,0xDD72,0x2278,0xD7BD,0x007B,0x2D87,0x000B, 0x0D20,0x0000,0x0D20,0x0000,0x0D00,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x000D,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7D88,0x2BD7,0x7DB0,0xD877,0x0000,0xDDD8,0x0000,0x288B, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xD728,0xD2DD,0x7D2B,0xD2DD,0xDBDD,0x07B7,0x2B78,0x0D0D, 0x0000,0x000D,0x0000,0x000D,0x0000,0x0002,0x0000,0x0000, 0x077D,0x0000,0x077D,0x0000,0x0D70,0x0000,0x0DD0,0x0000, 0x00D0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xD77D,0x22BD,0x7D20,0x8D28,0x8200,0xDD22,0x0000,0x8228, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDD27,0xD72D,0xD2D7,0xD7DD,0xDBB7,0x007B,0x0BB7,0x00D8, 0x0000,0x000D,0x0000,0x000D,0x0000,0x000D,0x0000,0x0000, 0xDD7D,0x0000,0x0D70,0x0000,0x0D00,0x0000,0x0D00,0x0000, 0x0D00,0x0000,0x0D00,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8800,0x0000,0xB000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8D77,0x8BD7,0xD77D,0x2BDD,0xDD00,0x2D22,0x8200,0xD228, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDD27,0x2DDB,0xD2D7,0xD77D,0x2DD7,0x7DBD,0xDB8D,0x77BD, 0x0000,0xD000,0x0000,0xD000,0x0000,0xD000,0x0000,0x0000, 0xD772,0x0000,0x77D7,0x000D,0x7000,0x000D,0x0000,0x000D, 0x0000,0x000D,0x0000,0x000D,0x0000,0x00D0,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x2000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xBD00,0xD000,0x88DD,0x2222,0x7222,0x222D,0xD282, 0x2220,0x0002,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDD22,0x78DD,0xD7DD,0xDDD2,0x872D,0x7B8B,0x8DDD,0x007B, 0x0D80,0x0000,0x0080,0x0000,0x00D0,0x0000,0x0000,0x0000, 0x0027,0x0000,0x0077,0x0000,0x007D,0x0000,0x00D0,0x0000, 0x0DD0,0x0000,0x0DD0,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x5000,0x0000,0xA500,0x0000,0xAC00, 0x0000,0x0000,0x0000,0xAEC0,0xE000,0xAAAA,0xAC50,0xAAAA, 0xAAA5,0xAAAA,0xAAA6,0xAAAA,0xCAAA,0x00CC,0xBCAA,0x000B, 0x0000,0x0000,0xEAAA,0x0000,0xAAAA,0x000A,0xAAAA,0x0EAA, 0xCAAA,0x0000,0x00AA,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5000, 0x0000,0xA650,0x0000,0xAA60,0x0000,0xAAA5,0x0000,0xCAAE, 0x0000,0xAAEE,0xAAC5,0xAAAA,0xAAAA,0xAAAA,0xAAAA,0xAAAA, 0xAAAA,0xCCCE,0xCCAA,0x0000,0xB2B3,0x0000,0x88B3,0x0000, 0x0EAA,0x0000,0xAAAA,0x00EA,0xCAAA,0x0000,0x0CAA,0x0000, 0x000C,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x5000,0x0000,0x6500,0x0000,0xAAC0,0x0000,0xAAA0, 0x0000,0x0000,0xE000,0xAAAA,0xAA50,0xAAAA,0xAAA5,0xAAAA, 0xAAAA,0xAAAA,0xAAAA,0xCCEE,0xBCAA,0x0000,0x2BCE,0x000B, 0x0000,0x0000,0xAAAA,0x000E,0xAAAA,0x00AA,0xAAAA,0x000C, 0x00CA,0x0000,0x000C,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x5000,0x0000,0xA600,0x0000,0xAA00, 0x0000,0x0000,0x0000,0xAEE0,0xE000,0xAAAA,0xAC50,0xAAAA, 0xAAA5,0xAAAA,0xAAA6,0xAAAA,0xCAAA,0x000C,0xBCEA,0x0000, 0x0000,0x0000,0xEAAA,0x0000,0xAAAA,0x000E,0xAAAA,0x0EAA, 0xCAAA,0x0000,0x00AA,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x5000,0x0000,0xC500, 0x0000,0x6650,0x0000,0x6650,0x0000,0x666B,0x0000,0x666B, 0x4000,0xB4B8,0xBD80,0xA4BB,0x8B55,0xAB84,0xB8EE,0xEBBD, 0x5E66,0x0ABC,0x5E66,0x0ABC,0xB5EE,0x088B,0x8B55,0xB7A7, 0x000A,0x0000,0x000C,0x0000,0x0CEE,0x0000,0xAAAA,0x000C, 0xAA6C,0xEAAA,0xAEC0,0xAAAA,0x0000,0xAAAA,0x0BBB,0xAA6C, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x000C,0x0000,0x0CAA,0x0000,0x0EAA,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xE000,0x0000,0x0E00,0x0000,0xEE6E,0x0000,0x63E6, 0x0000,0x0000,0x0000,0x000E,0x0E00,0x6600,0xE3E0,0x666E, 0xA6E0,0x66E6,0x6A60,0x3CEE,0x6EA6,0x3ECE,0xE6EA,0xE3EC, 0x0000,0x0000,0x6666,0x000E,0xEE66,0x0000,0x63EE,0x0006, 0x0633,0x0000,0x00EE,0x0000,0x00EE,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xAA50,0x0000,0xCAA5,0xAA00,0x0AED,0xAD00,0x0AAB, 0xDB00,0xADBB,0x4AB0,0x0B44,0x88B0,0xBBD4,0xB4B0,0x5BBD, 0x23CA,0x00B2,0xA800,0xBB7A,0x7800,0xBBBB,0xBBB0,0x4BDA, 0xBAD0,0xDBD8,0xBDD0,0xBBBB,0x8BBB,0xBBBB,0xABBB,0xBB84, 0x0000,0x0000,0x00BB,0x0000,0xBB5C,0x0BBB,0xECCB,0x65CE, 0xECCB,0x6E5E,0xECCB,0x66CE,0xCCCB,0x66CE,0xCECB,0x6ECC, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5556,0x0000, 0xEE66,0x0000,0x6666,0x005E,0x6666,0x00E6,0x6666,0x0566, 0x5000,0x0CAA,0xABB0,0x000D,0xBAD0,0x000A,0x884B,0xBBB4, 0x44AB,0xB334,0xDB4B,0xB5BB,0xBBB0,0xB55B,0xE770,0xB55C, 0x7A78,0xBBBB,0xBB8B,0xCBBB,0xDABB,0xCB4B,0xBB44,0xC8BB, 0xBBBD,0xCDBB,0x84AB,0xCDBB,0xD2BD,0xCDBB,0xDBB8,0xE8DB, 0x0000,0x0000,0xCCCC,0xEEE5,0x5EEC,0x666E,0x5EEE,0x6666, 0x5EEE,0x6666,0x5CCE,0x66EC,0x5CCE,0x66C5,0x5CEE,0xEE5B, 0x0000,0x0000,0x0055,0x0000,0x05E6,0x0000,0xE666,0x0005, 0x6666,0x000E,0x6666,0x05C6,0x6666,0x05E6,0x666E,0x0C6E, 0x0000,0xAAA0,0xAAB0,0x0CAD,0xAB00,0x00CA,0x4BB0,0x00DB, 0xB480,0x0008,0xB8B0,0xB304,0x84D0,0x5BBD,0xBBB0,0x555B, 0x8B00,0x00B8,0x7A00,0x5BBB,0xB800,0xBBBB,0xB4D0,0xBBDD, 0xD440,0x8BDB,0x8BBB,0xDBBB,0xAABB,0xDBB8,0xBB8B,0xDBBD, 0x0000,0x0000,0xBBBC,0x5BBB,0xCCC5,0xE5CC,0xECEB,0x665E, 0xECEB,0x665E,0xECEB,0x665E,0xCEEB,0x6E5E,0xCEE5,0xEC5C, 0x0000,0x0000,0x0000,0x0000,0x0055,0x0000,0xE666,0x0005, 0x6666,0x0056,0x6666,0x05E6,0x66E6,0x0C66,0x66E6,0x0E66, 0x0000,0xAA50,0x0000,0xCAA5,0xAA00,0x0CED,0xAD00,0x00AB, 0xDB00,0xAABB,0x4AB0,0x3344,0x88B0,0xB3D4,0xB4B0,0x5BBD, 0x2B3A,0x000B,0xA780,0xBBB7,0xBA80,0x5BBB,0xABB0,0xB4BD, 0x84AB,0xBDBD,0xBBDB,0xDBBB,0xBBBB,0xDBBB,0x4ABB,0xDBB8, 0x0000,0x0000,0x000B,0x0000,0xBBB5,0x0BBB,0xEECC,0x66C5, 0xEEEC,0x6665,0xEEEC,0x666E,0xECEC,0x666C,0xCCEC,0x66EC, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x055E,0x0000, 0x0EE6,0x0000,0xE666,0x0005,0x6666,0x005E,0x666E,0x0056, 0x0000,0xE66B,0x0000,0x665B,0x0000,0x66B0,0x0000,0xE500, 0x0000,0x5B00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8BEE,0xBBBA,0xBBE6,0xBDAB,0xADC6,0xBD84,0xDDC6,0xBBBB, 0xBBCE,0xBBBB,0xD8C5,0xBD2B,0x88BB,0xBDBB,0xAD50,0xBD4A, 0xB5CB,0xAABB,0xEC54,0x665C,0xECBD,0x665C,0xECBB,0x66E5, 0xECBB,0x66E5,0xCEBB,0x66C5,0xEE5B,0x6E55,0xEECD,0xECB5, 0x0AAA,0x0000,0x055E,0x0000,0x5666,0x0000,0x6666,0x000E, 0x6666,0x0056,0x666E,0x0566,0x666E,0x0566,0x666E,0x5C6E, 0x0000,0xAC36,0x6E00,0x66EC,0x6E00,0xEA6C,0xE600,0x6AA6, 0xE600,0x6AA6,0xE6E0,0x66AA,0xEE60,0x66AA,0x6E60,0x6AAA, 0xC666,0x0E33,0xEE6E,0x00E6,0x6C66,0x000E,0x06E6,0x0000, 0x0666,0x00E0,0x0E6E,0xE0CE,0xCE6E,0x0006,0xEE66,0x000E, 0x0000,0xB000,0x0000,0x8B00,0x0000,0xA780,0x0000,0xB8B0, 0x0000,0xABB0,0x0000,0xB44B,0x0000,0xBBDB,0x00C0,0xBBBB, 0x0000,0x0000,0xBBB8,0xBB00,0xCBB7,0xCCBB,0xBBBB,0x5ECC, 0xB4BD,0x5ECC,0x8BBB,0x5ECC,0xDBBB,0x5CEC,0xDBBB,0x5CEC, 0x0000,0x0000,0xEC5B,0xEEEE,0x6665,0x6666,0x6666,0x6666, 0x6666,0x6666,0x6666,0x66E6,0x666E,0x6ECE,0xE66C,0xECBC, 0x0000,0x0000,0x0005,0x0000,0x005E,0x0000,0x0566,0x0000, 0x5C66,0x0000,0x5E65,0x0000,0x555E,0x0000,0x5E65,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xB000,0x0000,0xB000,0x0000,0xA800, 0x0000,0x8B00,0x0000,0x4AB0,0x0000,0x44B0,0x0000,0xBDB0, 0x0000,0x0000,0x00B2,0xB000,0xBB88,0xCBBB,0xBBBB,0xECC5, 0xBBBB,0xECCB,0xDBD8,0xCECB,0xBBBB,0xCEC8,0xBBBB,0xCECD, 0x0000,0x0000,0xC55B,0xEEEE,0x6ECC,0x6666,0x6665,0x6666, 0x6665,0x6666,0x6665,0x6E66,0x6665,0xECE6,0x66E5,0xCBCE, 0x0000,0x0000,0x0555,0x0000,0x0CE6,0x0000,0xC666,0x0005, 0xE666,0x000C,0x6E66,0x0BBE,0xC5EE,0xB8D8,0x85B5,0x8D44, 0x7700,0x5CCE,0x7AB0,0x5CE6,0x66B0,0xC666,0x6EB0,0xC666, 0xE500,0xCE66,0xB000,0xBBBB,0x0000,0x0000,0x0000,0x0000, 0xAA85,0xDBDA,0xDDDB,0xDBB8,0xB5B5,0x5DBB,0xD5B5,0x5DDD, 0x7555,0xC5AA,0x7C50,0xECAA,0xDC50,0xEEA7,0xC5B0,0xCCD5, 0xEEE5,0xE5BC,0xEEEC,0xCB5C,0xEEEE,0xB5CC,0xEEEE,0xB5CC, 0xEEEE,0xB5CC,0xCCEE,0xB5CC,0xCCEE,0xD55C,0x55CC,0xD7D5, 0x6666,0x0566,0x666E,0x0566,0x66EB,0x056E,0x6ECB,0x056C, 0x5BBB,0x0055,0xBB38,0x00D8,0xDBB8,0x0B44,0x4448,0x0B4A, 0x6BBB,0xBB56,0x666B,0xBBE6,0x6ECB,0xB5C6,0xEC50,0xBB5E, 0xBBB0,0xB0BB,0x0000,0xB000,0x0000,0x0000,0x0000,0x0000, 0xB8DD,0xEC5B,0xBBBB,0xEC5D,0xAAB5,0xEEC5,0xAA5C,0xEEE5, 0xAA5C,0xEEEC,0x7DCC,0xCEEE,0xD5C5,0xCCCC,0x55BB,0xD555, 0xCCEE,0xBBB5,0xCCEE,0xBB55,0xCCEE,0xBB55,0xCCCE,0xBB55, 0x5CCE,0xB855,0x8C5C,0xB8D8,0xD55C,0xB887,0x777D,0xB5D7, 0xEEE5,0x055E,0xCC5B,0x0E65,0xB000,0xBDDE,0x0000,0x844B, 0xB000,0xDA4D,0xB000,0x4DBA,0xB000,0x4BBA,0x0000,0xB40B, 0xBAB0,0x5CC6,0x6BE0,0x5CE6,0x6EC0,0xCE66,0x65BB,0xCEE6, 0xEB0B,0x5CEE,0x000B,0x0000,0x000B,0x0000,0x0000,0x0000, 0xAADB,0x5BBD,0xDD8B,0xCBBB,0xBBB5,0xEDDB,0x7B5B,0xE5DA, 0x755B,0xE5DA,0xD55B,0xEE5A,0x5C5B,0xEE57,0xC5B0,0xCC55, 0xCEEC,0x5B5C,0xCEEE,0xBBCC,0xCEEE,0xB5CC,0xCEEE,0xB5CC, 0xCEEE,0xB5CC,0xCCCE,0xDB5C,0xCCCE,0x8D85,0xD55C,0xD7D7, 0x66CC,0x0E66,0x66BB,0x0E66,0x5B0B,0x0E55,0xB00B,0x066E, 0xB00B,0x08E5,0xDB0B,0xB4A4,0xAD0B,0xB4A4,0x840B,0xBDAB, 0x7700,0x55CE,0x7AB0,0xB5E6,0x66B0,0xCE66,0x6EB0,0xCE66, 0xECB0,0x5C66,0xBB00,0x0BBB,0x0000,0x0000,0x0000,0x0000, 0xAAAB,0x8DBD,0x8DDB,0x5DBB,0xBB55,0xC5DB,0xDB55,0xE5DD, 0xAB5B,0xEC5A,0xA5CB,0xEECA,0x75CB,0xEEEA,0x5C50,0xCCCD, 0xCEEE,0x6C5B,0xCEEE,0xE5B5,0xCEEE,0xB55C,0xCEEE,0xB55C, 0xCEEE,0xB55C,0xCCEE,0x8555,0xC5CE,0x8B55,0x55CC,0x887D, 0x666C,0x00E6,0x666C,0x00E6,0xE66B,0x00E6,0xC6EB,0x00C6, 0x55BB,0x0055,0x8BBB,0x00BD,0x4DBB,0x0084,0xA44D,0x0044, 0x0000,0x0000,0x0000,0x0000,0x0000,0xB000,0x0000,0xB000, 0x0000,0xB000,0x0000,0xB000,0x0000,0x0000,0x0000,0x0000, 0xBBBB,0xDBBB,0x555B,0x5BBB,0xA7CC,0xEC5A,0xAA5C,0xEEED, 0xAA5C,0xEEE5,0x575C,0xCEEC,0x5DCC,0xCCCC,0x55BB,0xD555, 0xEEE5,0xBB5C,0xEEEC,0xBB5C,0xCCEE,0xBB55,0xCCEE,0xBB55, 0xCCCE,0xB8B5,0x8CCC,0xB8DD,0xD85C,0x0B8D,0x7777,0x0B8D, 0x6E5B,0x555E,0xEBBB,0x5E65,0xB000,0xB8DB,0xB000,0x844D, 0xD000,0xD4A4,0xA000,0x4AD4,0xA000,0x4AB4,0xB000,0xB44B, 0x6E60,0x6AAA,0x6E60,0x6AAA,0x6E60,0x6A6A,0x6E60,0x6A6A, 0x6E60,0x6A6A,0x6EE0,0x666A,0x6EE0,0x666A,0x6EC0,0x666A, 0x60EA,0xC00C,0x60EA,0xE50C,0x60EA,0x6C5C,0x60EA,0xEC5C, 0x60EA,0xEE5C,0x60EA,0x66E6,0xE0EA,0x6666,0xC0E6,0x6666, 0x55C0,0x2BDB,0x5CC0,0xBB8B,0xBCEC,0x8DDB,0xBC66,0xBBBB, 0xC666,0xBB55,0xCE66,0x7555,0xCE66,0x7C55,0xB566,0x5CB0, 0xDBBD,0xCEEE,0x8BBD,0xCEEE,0xC5BB,0xCEEE,0xC5DB,0xCEEE, 0xE5DB,0xCEEE,0xEC5A,0xCEEE,0xEE5A,0xCCEE,0xEE5D,0x5CCE, 0x5CC5,0xB00B,0xB5BC,0x000B,0xB55C,0xB00B,0xB55C,0xB00B, 0xB55C,0xB00B,0xB55C,0x0008,0xDB5C,0x0008,0xD7D5,0x0008, 0xBD8C,0x0000,0xD448,0x0000,0x4444,0x000B,0xAA44,0x000B, 0x4A8D,0x000B,0xBDB0,0x0000,0x0B00,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xAB55,0x0000,0xBDB5,0x6500,0xBBB5,0x6E50,0xAABB, 0xC650,0xDD8B,0x6660,0xBB5C,0x6665,0x555C,0xE665,0xCB55, 0xBB84,0xEECD,0xBBD2,0xEEED,0xDBDB,0xEEE5,0x5B8D,0xEEEC, 0x5BB8,0xEEEC,0xC5DB,0xCEEE,0xE5A7,0xCEEE,0xE5D5,0xCCEE, 0xCC5C,0x00B5,0x5B5C,0x00BB,0x55CC,0x00BB,0x55CC,0x00BB, 0x55CC,0x00BB,0x55CC,0x008B,0x5555,0x008D,0x7D85,0x008D, 0x4000,0x4444,0x4000,0x4A44,0xB000,0xBDA8,0x0000,0x0BDB, 0x0000,0x00B0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xCBB0,0xCC55,0x7000,0x7777,0xD000,0xAAA7,0x8000,0xDDD8, 0x5000,0xCCC5,0x5000,0xEECC,0xDB00,0x555D,0x78B0,0x7777, 0xD55C,0xD8DD,0xAA77,0x58D7,0x77AA,0x558D,0x58DD,0xCCC5, 0xEECC,0xCEEE,0xEEEE,0x5CEE,0x7775,0x7777,0xAAA7,0x7AAA, 0xBBD8,0x0BD4,0xB3B5,0x0BBD,0x4BB5,0x008B,0xB3B5,0x00BB, 0x0B55,0x0000,0x0BB5,0x0000,0x0BDD,0x0000,0xB8D7,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8B00,0x0000,0xD8B0,0x0000,0x7780,0x0000,0xA7D0, 0x77B0,0x7777,0xD8B0,0xDDDD,0x55B0,0xC555,0xEC5B,0xCCEE, 0xDDDD,0xCC55,0x77AA,0x55DD,0xAAAA,0xA777,0xAAAA,0x7777, 0xD7AA,0xB588,0xC558,0x55CC,0xECCC,0x55CE,0xEEEE,0x55CE, 0xCCCC,0x8555,0x5555,0xDDD8,0xAAAA,0x77AA,0xAAAA,0x7AAA, 0x0000,0x0400,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x000B,0x0000,0x00B8,0x0000,0x00B8,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBB00,0x5555,0xDB00,0xAAAA,0x8B00,0xDDDD,0xBB00,0x5555, 0x5B00,0xECCC,0xBB00,0x55CC,0xDD00,0x77AA,0x7D00,0x7AAA, 0x77D5,0x8D77,0xD77A,0x5588,0x588D,0x5CC5,0xC555,0xCCEC, 0xEEEE,0x5CEE,0xEEC5,0x55CC,0x7777,0x7777,0xA777,0xAAAA, 0xBB0B,0xB8AB,0xB0B5,0x0B84,0x00B5,0x00BB,0x00B5,0x0000, 0x00B5,0x0000,0x00B8,0x0000,0x0BD7,0x0000,0x0B77,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x55B0,0xCCC5,0x7B00,0x7777,0x7B00,0xAAAA,0x8B00,0xDDDD, 0xCB00,0xCCCC,0xCB00,0xECCC,0x5BB0,0xDDD5,0x7D80,0x77A7, 0xDD55,0x878D,0x7AA7,0x588D,0xD77A,0x5558,0x558D,0x5CCC, 0xEECC,0x5CEE,0xEEEE,0x5CEE,0x5555,0x7755,0xA777,0xAAAA, 0x4BBA,0x004D,0xDB35,0x00DB,0xB4B5,0x00B8,0xBBC5,0x000B, 0x00B5,0x0000,0x0B85,0x0000,0x08D7,0x0000,0xBDD7,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xBB00,0x0000,0x88B0, 0x0000,0x77DB,0xB000,0xAA78,0xB000,0xAA7D,0xB000,0xAA7D, 0x777B,0xA777,0xDD8B,0xDDDD,0x555B,0xCCC5,0xEE58,0xECCE, 0x5D77,0xCCC5,0xDDAA,0x555D,0x77AA,0xAA77,0x77AA,0xA777, 0xD77A,0xB558,0xC558,0xB5CC,0xEECC,0xB5CC,0xEEEE,0xB5CC, 0x5CCC,0xB855,0x7555,0xB877,0xAAAA,0x8D7A,0xAAAA,0x8DAA, 0x0000,0x0B40,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x6E00,0x66AA,0xE600,0xE6AA,0xE600,0xEAA6,0xE600,0xEAA6, 0x6C00,0x6A66,0xC000,0x6A6E,0x0000,0xA6E0,0x0000,0xA63E, 0x00E6,0x666E,0x0E66,0x66E5,0x0E66,0xE650,0x06E6,0x8E00, 0x0EEE,0x48D8,0x0E66,0x4AB0,0x66E6,0xCBEE,0xEE6A,0xA666, 0xB566,0xC5B0,0xB566,0x5000,0xB588,0xD000,0x0544,0xB000, 0xB444,0xB000,0xB4BB,0x0000,0x0B7A,0xB000,0x00AC,0x8000, 0xCC55,0x55CC,0x5555,0xAA7D,0x7777,0x7AAA,0xAAAD,0x8D7A, 0xCC5B,0xECCC,0xECCB,0xEEEE,0x5DDB,0x7555,0x777D,0xA777, 0xD87D,0x00B8,0x58D7,0x0B55,0xC58D,0x0B5C,0xCCC8,0xB55C, 0xEEEE,0x55CE,0xEEEE,0xBB5C,0x7777,0xDD77,0xAAAA,0x77AA, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x00B8,0x0000,0x00B8,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xE665,0x5BBE,0x6665,0x005E,0x6665,0x005E,0x6665,0x00BE, 0xE6E0,0x00B5,0xBE50,0x00BB,0x4B00,0xB8AA,0x8B00,0xB444, 0xC55C,0x5CCC,0x5555,0xA7D5,0x777D,0xAAA7,0xAAD8,0xD7AA, 0xC55B,0xCCCC,0xCC5B,0xEEEE,0xDD8B,0x5555,0xAAD8,0x777A, 0x8D78,0x0B8D,0x8D7A,0xB555,0x5887,0xB5CC,0xCC58,0x55CC, 0xEEEE,0x5CEE,0xEEEE,0xB5CE,0x7777,0xD777,0xAAAA,0x77AA, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000B,0x0000,0x000B,0x0000,0x00B8,0x0000,0x0B8D,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xB000, 0x0000,0xB000,0x0000,0xD0BB,0x0000,0x8BB8,0x0000,0xB888, 0xA780,0xAAAA,0xAA7B,0x7AAA,0xAA7B,0x7AAA,0xAAAD,0x7AAA, 0xAAAD,0x7AAA,0xAA7D,0x7AAA,0x777D,0xAAAA,0x7BBB,0xA777, 0xAAAA,0xAAAA,0xAA77,0xAAAA,0xAA77,0xAAAA,0xA777,0xAAAA, 0x777D,0xAAAA,0x77DD,0xA777,0x77DD,0x7777,0xDDD7,0x7777, 0x8D7A,0x0000,0x877A,0x0000,0xD7AA,0x000B,0xD7AA,0x000B, 0xD7AA,0x000B,0x877A,0x0000,0x8D77,0x00BB,0xBBB7,0x00B8, 0x0000,0xA7D0,0x0000,0xA7D0,0x0000,0xADD0,0x8000,0xD8BB, 0x8000,0xBB8D,0x0000,0x8BBB,0x0000,0xB000,0x0000,0x0000, 0xAAAA,0x7777,0x7AAA,0x7777,0x7AAA,0x7777,0x7AA7,0x7D77, 0x7A7D,0x7D77,0x8BBB,0xDD77,0xBBB8,0xD777,0xBBBB,0xD78B, 0xAAAA,0x7AAA,0xAAA7,0xAAAA,0xAAA7,0xAAAA,0xAAA7,0xAAAA, 0xAAA7,0xAAAA,0xA777,0x77AA,0x777D,0xB777,0x777D,0xBB77, 0x0088,0x0000,0x008D,0x0000,0x008D,0x0000,0x008D,0x0000, 0x008D,0x0000,0x00BB,0x0000,0x00B8,0x0000,0x00B8,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xA7B0,0x7AAA,0xA7B0,0x7AAA,0xA7B0,0x77AA,0xA7B0,0xD7AA, 0x7DB0,0xD7AA,0xA73B,0xD7AA,0x883B,0xD777,0xBBBB,0xDD88, 0xAA77,0xAAAA,0xA777,0xAAAA,0xA777,0xAAAA,0x7D77,0xAAA7, 0x7D7D,0xAAA7,0x7DDD,0xAA77,0xDDDD,0x7777,0xD88D,0x877D, 0xB877,0x0000,0xB87A,0x0000,0xB87A,0x0000,0xB87A,0x0000, 0xB87A,0x0000,0x3BD7,0x000B,0xBB8D,0x000B,0xBBBB,0x0008, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xB0B0,0x0000,0xBBB0,0x0000,0x8DB0, 0xA7D0,0xAAAA,0xAA7B,0x77AA,0xAA7B,0x77AA,0xAA7B,0x777A, 0xA77B,0x7D7A,0x777D,0xDD77,0x7D8B,0xDD77,0x78B8,0x7777, 0xAA77,0xAAAA,0x7777,0xAAAA,0x777A,0xAAAA,0x777A,0xAA77, 0x7D7A,0xAA77,0xD7A7,0xA77D,0xD777,0x777D,0xD77D,0x77DD, 0xBD7A,0x0000,0x87AA,0x000B,0x87AA,0x000B,0x87AA,0x000B, 0x87AA,0x000B,0x8D7A,0x000B,0xB877,0x00BB,0xDBB7,0x00B8, 0xB000,0xAA7D,0xBB00,0xAAD8,0x3BBB,0xA7DB,0xD8BB,0x78B8, 0x8B00,0xBB88,0x0000,0x8B00,0x0000,0xB000,0x0000,0x0000, 0x77AA,0xA777,0x77AA,0xA777,0x77AA,0xA777,0x77A7,0xA777, 0x7777,0x77D7,0x77BB,0x7DD7,0x78BB,0x7DD7,0xBBB0,0xDDD8, 0xAAAA,0x87AA,0xAAAA,0xD7AA,0xAAAA,0xD7AA,0xAAAA,0xD7AA, 0xAAAA,0xD7AA,0xAAA7,0xBB77,0x7777,0x8B77,0x7777,0x88BD, 0x000B,0x0000,0x000B,0x0000,0x000B,0x0000,0x000B,0x0000, 0x000B,0x0000,0x000B,0x0000,0x000B,0x0000,0x000B,0x0000, 0x0000,0xAEE0,0x0000,0xEE00,0x0000,0xC000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x666A,0xAAEE,0xAAAA,0xAAAA,0xAAA6,0xAAAA,0xAA60,0xCAAA, 0xAE00,0x0CAA,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0ABC,0xDB00,0x0000,0xA8B0,0x0000,0xADB0,0x0000,0xADB0, 0x0000,0xADB0,0xB000,0x7DBB,0xB000,0x8BBB,0xB000,0xB88D, 0xAAA7,0xAAAA,0xAAAA,0x777A,0xAAAA,0x7D77,0xAAAA,0xDD77, 0xAAAA,0xDD77,0xAAA7,0xDD7A,0x777D,0x77DD,0x7778,0x7D77, 0xAAAA,0xAAAA,0xAAAA,0xAAAA,0xAAAA,0xAAAA,0xAAA7,0xAAAA, 0xAA77,0xAAAA,0x777D,0xAAA7,0x7DD7,0x7777,0xDDD7,0xB777, 0x008D,0x0000,0x0087,0x0000,0x0BD7,0x0000,0x0BD7,0x0000, 0x0BD7,0x0000,0x0087,0x0000,0xBBB8,0x0000,0xB8DB,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x4AB0,0xB4BB,0xB000,0xAACC,0x0000,0xCCAE,0x0000,0xAAAE, 0xE000,0xAAA6,0xAAAE,0xAAAA,0xAAA0,0xAAAA,0xAAE0,0xAAAA, 0xAA7D,0xAAAA,0xAAA7,0x777A,0xAAAD,0x777A,0xAA7C,0xD77A, 0xAA75,0xD77A,0xAAD5,0x7AAA,0x778B,0x7AA7,0xBBB8,0x7778, 0xAAAA,0x7AAA,0xAAA7,0xAAAA,0xAAA7,0xAAAA,0xAA7D,0xAAAA, 0xA77D,0xAAAA,0x7DDD,0xAAA7,0xDDD7,0x7777,0xD777,0x7777, 0x0B8D,0x0000,0x08D7,0x0000,0x0D77,0x0000,0xB7AA,0x0000, 0x87AA,0x000B,0x877A,0x0B0B,0x8777,0x0BBB,0xBB77,0x0BBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0400,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x000F,0x0000,0x00FE,0x0000,0x0CE9,0x0000, 0x0346,0x0000,0xC3E9,0x0000,0x34E9,0x0005,0x363F,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0400,0x0000,0x56E0,0x0000,0xC660,0x0000,0x373F,0x000C, 0x3639,0x0005,0x3650,0x0000,0x34C0,0xC000,0x5700,0xE000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x5000,0x0E6E, 0x6EC0,0xC6E6,0x666C,0x3636,0x3E66,0x369E,0x6E3E,0x69C6, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0xF00C,0x0084,0x000C,0x0888, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0F80,0x000F,0xFDFD,0x0008, 0xEE50,0x0005,0xCF00,0x0000,0x8888,0x000F,0x8890,0x0000, 0xF00F,0x000F,0xF00D,0x000F,0x008F,0x3006,0x00FD,0x6008, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x00EE, 0x6950,0x096E,0x6663,0x0663,0xE666,0xCE69,0x6333,0x6CEE, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xE0AA,0x0000,0xAAA0,0x4440,0x0004, 0x0000,0x0444,0x0000,0x4440,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x00EE,0x0000,0xEEE6,0x0000,0xE66A,0x00EE, 0xAA00,0xEEEA,0x4444,0x66AA,0x4444,0xAA44,0x4435,0xA444, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000E,0x0000,0x66EE,0x0000,0xEEE6,0x0066,0xE60A,0x06EE, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0040,0x0000,0x0E65,0x0000,0x066C,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0950, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8CD4,0xE50F,0x0800,0x6500,0xDFF0,0xE00F,0x88F0,0x0008, 0x8FD0,0x0000,0xF800,0x0000,0xF000,0x0000,0x8000,0x000D, 0xF666,0xF7D7,0xFF66,0x0F08,0xDF66,0xF4DF,0xFF99,0xC8F7, 0x0000,0x0F7F,0x0000,0x08F0,0xD000,0xF7D7,0x0DF0,0x7D78, 0x0000,0x8000,0x0000,0xF880,0x0000,0x7880,0x0008,0x8000, 0x0000,0xD000,0x0000,0xF800,0x000F,0x0F80,0x08FD,0x00F8, 0x46EF,0x0009,0x3EC0,0x006E,0x73CF,0x09C9,0x3C0F,0xC4FC, 0xF000,0x4CC3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8F74,0x6904,0x4DF0,0x6E08,0xD000,0x6F00,0x0000,0xE00D, 0x0000,0x000F,0x0000,0x0088,0x0000,0x7D40,0x0000,0x0000, 0x966E,0xC4FF,0xD066,0x08FF,0xFD96,0x0DFF,0xDF46,0xDF8F, 0xF000,0x0047,0x0000,0x008F,0x7D7D,0x0FFF,0x8000,0xD7DF, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x9000,0x0000,0x6500,0x0000,0x6E50,0x0080,0xE6F0, 0x0000,0x4000,0x0000,0x4400,0x0000,0xEC00,0x0000,0x6300, 0x0000,0x6000,0x0000,0xC000,0x0000,0x0000,0x0000,0x0000, 0xEE44,0x4444,0x4444,0x4446,0x444E,0x4D44,0x4866,0x4444, 0xF866,0x4DFD,0x8066,0xFFF4,0x0000,0x0878,0x0000,0x0F78, 0x6AAA,0x6EE6,0xAA05,0x5E60,0xA004,0x660A,0x0444,0x0FAA, 0x4404,0x0AA4,0x4444,0xFF44,0x4044,0x0440,0x0440,0xF404, 0xF373,0x09CC,0x9363,0x0049,0x0563,0x000E,0x0C43,0x0009, 0x0075,0x0000,0x4DC8,0x0000,0x0080,0x0000,0x0FFD,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xC000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000, 0xC000,0xE6EE,0x6350,0x6366,0xE665,0x63EE,0x336E,0x9F6E, 0x6EEE,0xDFDF,0x8666,0xF8FD,0x8666,0xDFDF,0x066C,0xFF48, 0x0000,0x0000,0x0005,0x0000,0x0003,0x0000,0x0056,0x0000, 0x000C,0x8000,0x0000,0xF000,0x000F,0x8000,0x008F,0xF800, 0x0000,0x0000,0x0000,0x0000,0xC000,0x9CC3,0x3C00,0x049C, 0xDC30,0x00E9,0xE4E0,0x009E,0xEEEC,0x0000,0x0FCF,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x88DF,0x0000,0xFF80,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x00F7,0xF4D0,0x0008,0x9D80,0x0000,0xDF00,0x0000,0xFD00, 0x0000,0xDF00,0xD800,0xFDF8,0xDD00,0xD4F8,0x8800,0x4D88, 0xD78F,0x0004,0xF00D,0x0008,0x0084,0x0000,0x00F7,0x0000, 0x0074,0x0000,0x004D,0x0000,0x00D4,0x0000,0x008D,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xFD4F,0x0000,0xDFD0,0x0000,0x47F0,0x0000,0xD780, 0x0000,0x4DF0,0x8800,0xDFD8,0xDD80,0x4D48,0x8880,0xD7F8, 0x0008,0x0000,0x0088,0x8000,0x08FF,0xFD70,0x078F,0x888F, 0x7FF7,0xFD0F,0xF084,0x8F00,0x00F7,0x0000,0x008F,0x0000, 0x5040,0xEFE3,0x90D8,0x33E6,0x90F8,0x0C3C,0x58FF,0x0000, 0xF8FF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8000,0xFDF4,0x0000,0xDFDF,0x0000,0xF8F0,0x0000,0xDFF0, 0x0000,0xFF80,0x0000,0x8FD0,0x8800,0xFD48,0x8DD0,0xD4F8, 0x4408,0x8D44,0x40FF,0xD740,0x48FD,0x4D44,0xDFF4,0x4D4D, 0x08F8,0xFD08,0xDFFF,0x0FDF,0x00F8,0x0000,0x00F4,0x0000, 0x0F8D,0x0000,0x0DF8,0x0000,0x0040,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x8780,0x0000,0xF780,0x0000,0xDF48,0x0000,0xFDF0, 0x0000,0x8F00,0x0000,0xFF00,0x0000,0xF800,0x0000,0xFD00, 0x0000,0x0000,0x0000,0x7000,0x008F,0xD000,0x0FFD,0x7800, 0x8FDF,0x8F00,0xFF4D,0x087D,0x8F8F,0xD080,0xFFF8,0xFDFD, 0x008F,0x0000,0x00FD,0x0000,0x0007,0x0000,0x0000,0x0000, 0x0000,0x0000,0x000F,0x0000,0x000F,0x0000,0x0000,0x00F0, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xF000,0x888F,0xF000,0x8D8D,0x8000,0x0884,0x0000,0x0D57, 0x0000,0x0F87,0x0000,0x08F8,0x0000,0x0FDF,0x0000,0x08F8, 0x0008,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xF880,0xF888,0xD000,0x88DF,0x7800,0x088F,0xD000,0x08FC, 0xF000,0x08FF,0x8000,0x00DF,0x0000,0x00FD,0x0000,0x00DF, 0x0008,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xF880,0xFD88,0xDF80,0x88D8,0x7D00,0x8D88,0xD480,0x8880, 0x0DF0,0x0000,0x0FDF,0x0000,0x00F8,0x0000,0x00F7,0x0000, 0x000D,0x0000,0x0008,0x0000,0x0008,0x0000,0x0084,0x0000, 0x00FD,0x0000,0x00DF,0x0000,0x08F0,0x0000,0x8480,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8000,0xD488,0xDD00,0x4F88,0x8800,0xD88F,0xF800,0x8D8D, 0xD000,0xD887,0x4800,0x880D,0xDF00,0x0000,0xFDF0,0x0000, 0x0F8F,0x8000,0x0F4D,0x0000,0x00DF,0x0000,0x0088,0x0000, 0x0088,0x0000,0x0848,0x0000,0x0FD0,0x0000,0x0DF0,0x0000, 0xDFDF,0x0F4F,0x0000,0xF000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0FFF,0x0000,0x08FD,0x0000,0x088F,0x0000,0x0808, 0x0000,0x0F08,0x0000,0xF80D,0x7F80,0x780F,0x88F8,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0087,0x008F,0x8DF0,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x00FD,0x8000,0x00DF,0x0000,0x00FD,0x0000,0x008F, 0x0000,0x00F0,0x8000,0x0F80,0x4880,0xF700,0xFFD8,0xF800, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0008,0x0008,0x8FDF,0x000F, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x08F0,0x0000,0x07F0,0x0000,0xFD00,0x0000,0xD000,0x8000, 0x0000,0x0808,0x8000,0x880F,0x7880,0x7808,0x8FFF,0x8005, 0x0878,0x0000,0x0084,0x0000,0x000D,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x000D,0x0008,0x87FF,0x000F, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8F00,0x0000,0x7F00,0x0000,0xD000,0x000F,0x0000,0x000D, 0x0000,0x8080,0x0000,0x80F8,0x8800,0x8087,0xFFF0,0x0058, 0x8780,0x0000,0x0840,0x0000,0x00D0,0x0000,0x0008,0x0000, 0x0000,0x0000,0x0008,0x0000,0x00D7,0x0080,0x7FF8,0x00F8, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xAA80,0x8800,0x7AB8,0xA7B0,0xBBB7,0x7A78,0xBBB7, 0x0000,0x0000,0xBB00,0x0000,0xBAB0,0x00BB,0xBBBB,0xBB87, 0x00B7,0xBB77,0x000B,0xBB77,0x7000,0xBBBD,0xDBBB,0xBBB8, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xBBBB,0x0BBB, 0xBBBB,0xBBB8,0x38BB,0x8B83,0x227B,0x2222,0x227B,0xB322, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xB000,0xBBBB, 0x8BBB,0x3388,0xB888,0xBBBB,0xBB33,0xBBBB,0x33BB,0xDD83, 0x0000,0x0000,0x0000,0xBBB0,0xBBB0,0x8BBB,0x888B,0x8833, 0x788B,0x7777,0x7773,0x3388,0xDDD3,0xBBBD,0xBBBD,0xBBBB, 0x0000,0x0000,0xBBBB,0xBBBB,0x8888,0x8888,0x3338,0x3333, 0x3387,0x2223,0x3333,0x2333,0xBBBB,0x8888,0xBBBB,0x8BBB, 0x0000,0x0000,0x0BBB,0x0000,0xBBBB,0x000B,0xD8BB,0xBBBB, 0x8B22,0xBBBD,0xB222,0xBBB8,0xB3B3,0xBB7B,0xB888,0xBB73, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0008,0x0000, 0x0B8B,0x0000,0x087B,0x0000,0xB7BB,0x0000,0xB7BB,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xAADB, 0x0000,0xB770,0x0000,0x0BB0,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x87B7,0x000B, 0xBB00,0xBB87,0x0000,0xBB7B,0xB000,0xBB77,0xB000,0xBBD7, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBBBB,0x0000,0xBBBB,0xBBBB,0xB8BB,0xBBBB,0x28BB,0x2222, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBB00,0xBBBB,0xBBBB,0x88BB,0xBBBB,0x3333,0xBBB3,0x333B, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xBBB0,0x88BB, 0x88BB,0xBBB3,0x3388,0xDDDB,0x7773,0x7777,0xD333,0xDDDD, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8888,0xBBBB, 0xBBD3,0xB333,0x33D7,0xBB3B,0x3333,0x2333,0x3333,0x3333, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBB88,0xBBBB,0x8BBB,0xBBBB,0x2222,0xBB82,0x2223,0xB882, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0077,0x0000,0x0877,0x0000,0x087B,0x0000,0x0DBB,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8D80, 0x0000,0xAA80,0x0000,0x8B00,0x0000,0x7D8D,0xD000,0xBBB7, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xBB00,0xB87B, 0xBBB7,0xBB87,0xAEEB,0xBBB8,0x77DD,0xBBBB,0x7BBB,0x8AAA, 0x0000,0x0000,0x0000,0x0000,0x0000,0xBBB0,0x8BBB,0xBBB3, 0x28BB,0x2222,0xBBBB,0xB222,0xBBBB,0xBBB8,0xBBBB,0xB88B, 0x0000,0x0000,0x0000,0x0000,0xBBBB,0x00BB,0x3B3B,0xBB83, 0xB3B3,0x333B,0x33B2,0xBBB3,0x3333,0x3333,0xB33B,0x333B, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x00BB,0x0000, 0x8883,0xBBBB,0x333B,0x8888,0x7773,0x7777,0x7783,0xDD77, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xB88B,0xBBBB,0x8338,0x8BBB,0x3377,0x8333,0x3338,0xB888, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBBBB,0x00BB,0xBBB8,0xB8BB,0x8BBB,0xBBB8,0xBBBB,0xBBBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x00B7,0x0000,0x0D7B,0x0000,0x077B,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xAAB0,0x0000,0xDBB0, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0xBBDB, 0x87B8,0xBB77,0xBBB7,0xBBDA,0x7008,0xBBBD,0x7000,0xBBBD, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xBBBB,0x8BBB, 0x8BBB,0x3332,0x8BBB,0xB222,0xB8BB,0x2222,0xB2BB,0xBB22, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8888,0xBBB8, 0xBB33,0x3333,0x33BB,0x33BB,0xB333,0x33BB,0xBB33,0xBB33, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x000B,0x0000, 0xBBB8,0x88BB,0x8883,0x7888,0x7778,0x8777,0x7883,0x3387, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xBBB0, 0x3888,0xB333,0x3333,0x2223,0x3333,0x8888,0x8883,0xBBBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0BBB,0x0000, 0xBBB2,0x7BBB,0xD222,0xBBBB,0xB888,0xBBBD,0x8BBB,0xBBB8, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x000B,0x0000,0x000D,0x0000,0x08B7,0x0000,0x0BDB,0x0000, 0x087B,0x78B0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7AAB,0xBBBB,0xBBBB,0x777B,0x0000,0xBBB0,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8BBB,0xBBBB,0xBA77,0xBBBB,0x7BBB,0x7AAA,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBBBB,0xBBBB,0x77BB,0x8887,0x88D7,0x0008,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x877D,0xBBBB,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xB8BB,0xBDDD,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBBBB,0xBBBB,0x777D,0xBBB7,0x8888,0xB778,0x0000,0x7D00, 0x0000,0xB000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDBBB,0x0000,0xDBBB,0x000D,0xB7B7,0x00BA,0x8BBA,0x000B, 0xB7AA,0x0000,0x0BB0,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0800,0x0000,0xB770,0x0000,0xAA70,0x0008,0x7B80,0xAB77, 0x0000,0x7BBB,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xB000,0xBBB7,0xD000,0xBBBD,0xAB00,0xBBBA,0xAABB,0xBBBB, 0xBBBB,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x888B,0xBBBB,0xABBB,0xBBBB,0xBAAA,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBBBB,0xBBBB,0xBBBB,0xBBBB,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x88BB,0x3338,0xB77D,0xBBBB,0x7BB0,0xB777,0x0000,0xDD00, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x3333,0x3333,0xBBBB,0xBBBB,0xBBBB,0xBBBB,0xDDDD,0xDDDD, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8883,0xBBBB,0xBBBB,0xBBBB,0x77BB,0x7777,0x00DD,0x7000, 0x0000,0x7000,0x0000,0xB000,0x0000,0x0000,0x0000,0x0000, 0x7BBB,0x000B,0x77BB,0x00DD,0x8D77,0x008A,0xBBBA,0x00BB, 0xB7A7,0x0000,0x0B8B,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7A70,0x0008,0x8700,0x000B,0x0D00,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0xB000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7BBB,0xBBBB,0x0000,0x77BB,0x0000,0xBB00,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x3388,0x3B33,0xBBB8,0xDDD8,0xBA77,0xBBBB,0x8000,0x77A8, 0x0000,0x8880,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8333,0x3388,0x3333,0xBBD8,0xDDDD,0x7BBB,0x7777,0x0877, 0x8888,0x0008,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBB88,0x7BBB,0xB77B,0xBBBB,0x0BB7,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7777,0xBBB7,0x0000,0x0000,0x0000,0x0000,0x0000,0x7700, 0x0000,0xD800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7DBB,0x0000,0x0778,0x0000,0x0BDD,0x0000,0x00B8,0x0000, 0x000D,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xB7BB,0xDB8B,0x8AAB,0xBBB8,0x8D7B,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xDB0B,0xBBBB,0x777B,0xBBBB,0xBBB0,0x7777,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8BBB,0x3333,0xBBBB,0xBBBB,0x7777,0xBBBA,0x0000,0xBBB0, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x3333,0x3333,0xBBBB,0xBBBB,0xBBBB,0x77BB,0xBBBB,0x0BBB, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xBDDD,0xBBBB,0x7BBB,0xBB87,0xB777,0x00BB,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x8BBB,0xBBB8,0x000B,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x7BBB,0xBBBD,0x0000,0xDBB0,0x0000,0x8800,0x0000,0x7A00, 0x0000,0x7800,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000, 0xDBBB,0x008B,0x7BBB,0x00AA,0xBDA8,0x0087,0x0008,0x0000, 0x000B,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, }; const unsigned short SpritesBTPal[256] __attribute__((aligned(4)))= { 0x7C1F,0x7872,0x085F,0x7DC7,0x3AFE,0x4C65,0x7FBF,0x0E9F, 0x0872,0x3F32,0x4FFF,0x0C80,0x48CF,0x095E,0x6D54,0x0D91, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, }; //}}BLOCK(SpritesBT)
the_stack_data/572040.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> int main() { pid_t pid; switch (pid = fork()) { case -1: perror("Fork Failed :("); exit(-1); case 0: printf("Child Process:\n"); execl("/bin/date", "date", 0); exit(0); default: wait(NULL); printf("\nChild Terminated!"); exit(0); } return 0; }
the_stack_data/132954255.c
#if bios == 1 #include <pxe/tftp.h> #include <pxe/pxe.h> #include <lib/real.h> #include <lib/print.h> #include <lib/libc.h> #include <mm/pmm.h> #include <lib/blib.h> uint32_t get_boot_server_info(void) { struct pxenv_get_cached_info cachedinfo = { 0 }; cachedinfo.packet_type = 2; pxe_call(PXENV_GET_CACHED_INFO, ((uint16_t)rm_seg(&cachedinfo)), (uint16_t)rm_off(&cachedinfo)); struct bootph *ph = (struct bootph*)(void *) (((((uint32_t)cachedinfo.buffer) >> 16) << 4) + (((uint32_t)cachedinfo.buffer) & 0xFFFF)); return ph->sip; } int tftp_open(struct file_handle *handle, uint32_t server_ip, uint16_t server_port, const char *name) { int ret = 0; if (!server_ip) { server_ip = get_boot_server_info(); } struct PXENV_UNDI_GET_INFORMATION undi_info = { 0 }; ret = pxe_call(UNDI_GET_INFORMATION, ((uint16_t)rm_seg(&undi_info)), (uint16_t)rm_off(&undi_info)); if (ret) { return -1; } //TODO figure out a more proper way to do this. uint16_t mtu = undi_info.MaxTranUnit - 48; struct pxenv_get_file_size fsize = { .status = 0, .sip = server_ip, }; strcpy((char*)fsize.name, name); ret = pxe_call(TFTP_GET_FILE_SIZE, ((uint16_t)rm_seg(&fsize)), (uint16_t)rm_off(&fsize)); if (ret) { return -1; } handle->size = fsize.file_size; handle->is_memfile = true; struct pxenv_open open = { .status = 0, .sip = server_ip, .port = (server_port) << 8, .packet_size = mtu }; strcpy((char*)open.name, name); ret = pxe_call(TFTP_OPEN, ((uint16_t)rm_seg(&open)), (uint16_t)rm_off(&open)); if (ret) { print("tftp: Failed to open file %x or bad packet size", open.status); return -1; } mtu = open.packet_size; uint8_t *buf = conv_mem_alloc(mtu); handle->fd = ext_mem_alloc(handle->size); size_t progress = 0; bool slow = false; while (progress < handle->size) { struct pxenv_read read = { .boff = ((uint16_t)rm_off(buf)), .bseg = ((uint16_t)rm_seg(buf)), }; ret = pxe_call(TFTP_READ, ((uint16_t)rm_seg(&read)), (uint16_t)rm_off(&read)); if (ret) { panic("tftp: Read failure"); } memcpy(handle->fd + progress, buf, read.bsize); progress += read.bsize; if (read.bsize < mtu && !slow && progress < handle->size) { slow = true; print("tftp: Server is sending the file in smaller packets (it sent %d bytes), download might take longer.\n", read.bsize); } } uint16_t close = 0; ret = pxe_call(TFTP_CLOSE, ((uint16_t)rm_seg(&close)), (uint16_t)rm_off(&close)); if (ret) { panic("tftp: Close failure"); } return 0; } #endif
the_stack_data/200143633.c
// Don't attempt slash switches on msys bash. // REQUIRES: shell-preserves-root // Note: %s must be preceded by --, otherwise it may be interpreted as a // command-line option, e.g. on Mac where %s is commonly under /Users. // RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULT %s // DEFAULT: "-o" "cl-outputs.obj" // RUN: %clang_cl /Foa -### -- %s 2>&1 | FileCheck -check-prefix=FoNAME %s // FoNAME: "-o" "a.obj" // RUN: %clang_cl /Foa.ext /Fob.ext -### -- %s 2>&1 | FileCheck -check-prefix=FoNAMEEXT %s // FoNAMEEXT: "-o" "b.ext" // RUN: %clang_cl /Fofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FoDIR %s // FoDIR: "-o" "foo.dir{{[/\\]+}}cl-outputs.obj" // RUN: %clang_cl /Fofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FoDIRNAME %s // FoDIRNAME: "-o" "foo.dir{{[/\\]+}}a.obj" // RUN: %clang_cl /Fofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FoDIRNAMEEXT %s // FoDIRNAMEEXT: "-o" "foo.dir{{[/\\]+}}a.ext" // RUN: %clang_cl /Fo.. -### -- %s 2>&1 | FileCheck -check-prefix=FoCRAZY %s // FoCRAZY: "-o" "..obj" // RUN: %clang_cl /Fo -### 2>&1 | FileCheck -check-prefix=FoMISSINGARG %s // FoMISSINGARG: error: argument to '/Fo' is missing (expected 1 value) // RUN: %clang_cl /Foa.obj -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEERROR %s // CHECK-MULTIPLESOURCEERROR: error: cannot specify '/Foa.obj' when compiling multiple source files // RUN: %clang_cl /Fomydir/ -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEOK %s // CHECK-MULTIPLESOURCEOK: "-o" "mydir{{[/\\]+}}cl-outputs.obj" // RUN: %clang_cl -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTEXE %s // DEFAULTEXE: cl-outputs.exe // RUN: %clang_cl /LD -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTDLL %s // RUN: %clang_cl /LDd -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTDLL %s // DEFAULTDLL: "-out:cl-outputs.dll" // DEFAULTDLL: "-implib:cl-outputs.lib" // RUN: %clang_cl /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s // FeNOEXT: "-out:foo.exe" // RUN: %clang_cl /Fefoo /LD -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXTDLL %s // RUN: %clang_cl /Fefoo /LDd -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXTDLL %s // FeNOEXTDLL: "-out:foo.dll" // FeNOEXTDLL: "-implib:foo.lib" // RUN: %clang_cl /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s // FeEXT: "-out:foo.ext" // RUN: %clang_cl /LD /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s // RUN: %clang_cl /LDd /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s // FeEXTDLL: "-out:foo.ext" // FeEXTDLL: "-implib:foo.lib" // RUN: %clang_cl /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIR %s // FeDIR: "-out:foo.dir{{[/\\]+}}cl-outputs.exe" // RUN: %clang_cl /LD /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRDLL %s // RUN: %clang_cl /LDd /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRDLL %s // FeDIRDLL: "-out:foo.dir{{[/\\]+}}cl-outputs.dll" // FeDIRDLL: "-implib:foo.dir{{[/\\]+}}cl-outputs.lib" // RUN: %clang_cl /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAME %s // FeDIRNAME: "-out:foo.dir{{[/\\]+}}a.exe" // RUN: %clang_cl /LD /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEDLL %s // RUN: %clang_cl /LDd /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEDLL %s // FeDIRNAMEDLL: "-out:foo.dir{{[/\\]+}}a.dll" // FeDIRNAMEDLL: "-implib:foo.dir{{[/\\]+}}a.lib" // RUN: %clang_cl /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXT %s // FeDIRNAMEEXT: "-out:foo.dir{{[/\\]+}}a.ext" // RUN: %clang_cl /LD /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXTDLL %s // RUN: %clang_cl /LDd /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXTDLL %s // FeDIRNAMEEXTDLL: "-out:foo.dir{{[/\\]+}}a.ext" // FeDIRNAMEEXTDLL: "-implib:foo.dir{{[/\\]+}}a.lib" // RUN: %clang_cl /Fe -### 2>&1 | FileCheck -check-prefix=FeMISSINGARG %s // FeMISSINGARG: error: argument to '/Fe' is missing (expected 1 value) // RUN: %clang_cl /Fefoo /Febar -### -- %s 2>&1 | FileCheck -check-prefix=FeOVERRIDE %s // FeOVERRIDE: "-out:bar.exe" // RUN: %clang_cl /FA -### -- %s 2>&1 | FileCheck -check-prefix=FA %s // FA: "-o" "cl-outputs.asm" // RUN: %clang_cl /FA /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FaNAME %s // RUN: %clang_cl /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FaNAME %s // FaNAME: "-o" "foo.asm" // RUN: %clang_cl /FA /Faa.ext /Fab.ext -### -- %s 2>&1 | FileCheck -check-prefix=FaNAMEEXT %s // FaNAMEEXT: "-o" "b.ext" // RUN: %clang_cl /FA /Fafoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FaDIR %s // FaDIR: "-o" "foo.dir{{[/\\]+}}cl-outputs.asm" // RUN: %clang_cl /FA /Fafoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FaDIRNAME %s // FaDIRNAME: "-o" "foo.dir{{[/\\]+}}a.asm" // RUN: %clang_cl /FA /Fafoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FaDIRNAMEEXT %s // FaDIRNAMEEXT: "-o" "foo.dir{{[/\\]+}}a.ext" // RUN: %clang_cl /Faa.asm -### -- %s %s 2>&1 | FileCheck -check-prefix=FaMULTIPLESOURCE %s // FaMULTIPLESOURCE: error: cannot specify '/Faa.asm' when compiling multiple source files // RUN: %clang_cl /P -### -- %s 2>&1 | FileCheck -check-prefix=P %s // P: "-E" // P: "-o" "cl-outputs.i" // RUN: %clang_cl /P /Fifoo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s // Fi1: "-E" // Fi1: "-o" "foo.i" // RUN: %clang_cl /P /Fifoo.x -### -- %s 2>&1 | FileCheck -check-prefix=Fi2 %s // Fi2: "-E" // Fi2: "-o" "foo.x"
the_stack_data/98576316.c
#include <assert.h> #include <limits.h> #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char* readline(); //Complete this function int countingValleys(int n, char* s) { char ch; int sealevel=0,res=0; for(int i=0;i<n;i++) { ch=s[i]; if(ch=='U') ++sealevel; if(ch=='D') --sealevel; if(sealevel==0 && ch=='U') ++res; } return res; } int main() { FILE* fptr = fopen(getenv("OUTPUT_PATH"), "w"); char* n_endptr; char* n_str = readline(); int n = strtol(n_str, &n_endptr, 10); if (n_endptr == n_str || *n_endptr != '\0') { exit(EXIT_FAILURE); } char* s = readline(); int result = countingValleys(n, s); fprintf(fptr, "%d\n", result); fclose(fptr); return 0; } char* readline() { size_t alloc_length = 1024; size_t data_length = 0; char* data = malloc(alloc_length); while (true) { char* cursor = data + data_length; char* line = fgets(cursor, alloc_length - data_length, stdin); if (!line) { break; } data_length += strlen(cursor); if (data_length < alloc_length - 1 || data[data_length - 1] == '\n') { break; } size_t new_length = alloc_length << 1; data = realloc(data, new_length); if (!data) { break; } alloc_length = new_length; } if (data[data_length - 1] == '\n') { data[data_length - 1] = '\0'; } data = realloc(data, data_length); return data; }
the_stack_data/70249.c
#include <stdio.h> int main() { for(double i=0; i<=100.0; i = i + 1.0){ printf("i is %f\n", i); i++; } //printf("i is now %d, outside the loop\n", i); }
the_stack_data/136974.c
// utils.c // // Helpers //Helper Functions void SWAP (int *a, int *b) { int tmp = *a; *a = *b; *b = tmp; } void SWAP_UL (unsigned long *a, unsigned long *b) { unsigned long tmp = *a; *a = *b; *b = tmp; } void SWAP_SHORT (short *a, short *b) { short tmp = *a; *a = *b; *b = tmp; }
the_stack_data/91487.c
// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ netf2_test.c - Test __netf2------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file tests __netf2 for the compiler_rt library. // //===----------------------------------------------------------------------===// #include <stdio.h> #if __LP64__ && __LDBL_MANT_DIG__ == 113 #include "fp_test.h" int __netf2(long double a, long double b); int test__netf2(long double a, long double b, enum EXPECTED_RESULT expected) { int x = __netf2(a, b); int ret = compareResultCMP(x, expected); if (ret){ printf("error in test__netf2(%.20Lf, %.20Lf) = %d, " "expected %s\n", a, b, x, expectedStr(expected)); } return ret; } char assumption_1[sizeof(long double) * CHAR_BIT == 128] = {0}; #endif int main() { #if __LP64__ && __LDBL_MANT_DIG__ == 113 // NaN if (test__netf2(makeQNaN128(), 0x1.234567890abcdef1234567890abcp+3L, NEQUAL_0)) return 1; // < // exp if (test__netf2(0x1.234567890abcdef1234567890abcp-3L, 0x1.234567890abcdef1234567890abcp+3L, NEQUAL_0)) return 1; // mantissa if (test__netf2(0x1.234567890abcdef1234567890abcp+3L, 0x1.334567890abcdef1234567890abcp+3L, NEQUAL_0)) return 1; // sign if (test__netf2(-0x1.234567890abcdef1234567890abcp+3L, 0x1.234567890abcdef1234567890abcp+3L, NEQUAL_0)) return 1; // == if (test__netf2(0x1.234567890abcdef1234567890abcp+3L, 0x1.234567890abcdef1234567890abcp+3L, EQUAL_0)) return 1; // > // exp if (test__netf2(0x1.234567890abcdef1234567890abcp+3L, 0x1.234567890abcdef1234567890abcp-3L, NEQUAL_0)) return 1; // mantissa if (test__netf2(0x1.334567890abcdef1234567890abcp+3L, 0x1.234567890abcdef1234567890abcp+3L, NEQUAL_0)) return 1; // sign if (test__netf2(0x1.234567890abcdef1234567890abcp+3L, -0x1.234567890abcdef1234567890abcp+3L, NEQUAL_0)) return 1; #else printf("skipped\n"); #endif return 0; }
the_stack_data/18888240.c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char *argv[]) { int c; int xflg=0, yflg=0, zflg=0; while((c = getopt(argc, argv, "x:yz:")) != -1) { switch(c) { case 'x': xflg = 1; printf("optarg = %s\n", optarg); printf("optarg in int = %d\n", atoi(optarg)); break; case 'y': yflg = 1; printf("optarg = %s\n", optarg); if(optarg != NULL) printf("optarg in int = %d\n", atoi(optarg)); break; case 'z': zflg = 1; printf("optarg = %s\n", optarg); printf("optarg in int = %d\n", atoi(optarg)); break; case '?': if(optopt == 'x' || optopt == 'z') fprintf(stderr, "Option -%c needs argument\n",optopt); else fprintf(stderr, "Unknown option -%c.\n", optopt); break; default: fprintf(stderr, "getopt"); } } printf("xflg = %d, yflg = %d, zflg = %d\n", xflg, yflg, zflg); return 0; }
the_stack_data/36075979.c
// File: c:/bsd/rigel/sort/FiveSort.c // Date: Sun Dec 24 20:19:56 2017 /* This file has the source of the algorithms that make up FiveSort headed by fivesort */ static const int cut3Limit = 1875; // Here more global entities used throughout // int (*compareXY)(); // void **A; /* #include "Isort.c" #include "Hsort.c" #include "Qusort.c" #include "Dsort.c" #include "C2sort.c" */ static void tpsc(); // tps is the header function for the three partition sorter tpsc void tps(void **A, int N, int M, int (*compareXY)() ) { int L = M - N; if ( L < cut3Limit ) { cut2(A, N, M, compareXY); return; } int depthLimit = 1 + 2.9 * floor(log(L)); tpsc(A, N, M, depthLimit, compareXY); } // end tps void tpsc(void **A, int N, int M, int depthLimit, int (*compareXY)()) { // int z; // for tracing register int i, j, up, lw; // indices register void *ai, *aj, *am; // array values void *pl, *pr; // pivots // A 3d recursive call is avoided by jumping back to Start. Start: // printf("tpsc N %i M % i dl %i\n", N,M,depthLimit); if ( depthLimit <= 0 ) { // prevent quadradic explosion heapc(A, N, M, compareXY); return; } int L = M - N; if ( L < cut3Limit ) { cut2c(A, N, M, depthLimit, compareXY); return; } depthLimit--; const int small = 4400; if ( L < small ) { // use 5 elements for sampling int sixth = (L + 1) / 6; int e1 = N + sixth; int e5 = M - sixth; int e3 = N + L/2; // The midpoint // int e3 = (N+M) / 2; // The midpoint int e4 = e3 + sixth; int e2 = e3 - sixth; // Sort these elements using a 5-element sorting network void *ae1 = A[e1], *ae2 = A[e2], *ae3 = A[e3], *ae4 = A[e4], *ae5 = A[e5]; void *t; // if (ae1 > ae2) { t = ae1; ae1 = ae2; ae2 = t; } if ( 0 < compareXY(ae1, ae2) ) { t = ae1; ae1 = ae2; ae2 = t; } // 1-2 if ( 0 < compareXY(ae4, ae5) ) { t = ae4; ae4 = ae5; ae5 = t; } // 4-5 if ( 0 < compareXY(ae1, ae3) ) { t = ae1; ae1 = ae3; ae3 = t; } // 1-3 if ( 0 < compareXY(ae2, ae3) ) { t = ae2; ae2 = ae3; ae3 = t; } // 2-3 if ( 0 < compareXY(ae1, ae4) ) { t = ae1; ae1 = ae4; ae4 = t; } // 1-4 if ( 0 < compareXY(ae3, ae4) ) { t = ae3; ae3 = ae4; ae4 = t; } // 3-4 if ( 0 < compareXY(ae2, ae5) ) { t = ae2; ae2 = ae5; ae5 = t; } // 2-5 if ( 0 < compareXY(ae2, ae3) ) { t = ae2; ae2 = ae3; ae3 = t; } // 2-3 if ( 0 < compareXY(ae4, ae5) ) { t = ae4; ae4 = ae5; ae5 = t; } // 4-5 // ... and reassign A[e1] = ae1; A[e2] = ae2; A[e3] = ae3; A[e4] = ae4; A[e5] = ae5; void tpsc(); // if ( ae2 == ae3 || ae3 == ae4 ) { if ( compareXY(ae2, ae3) == 0 || compareXY(ae3, ae4) == 0 ) { // Give up, cannot find good pivots dflgm(A, N, M, e3, tpsc, depthLimit, compareXY); return; } // Fix end points iswap(N, e2, A); iswap(M, e4, A); pl = A[N]; pr = A[M]; // they are there temporarily // initialize running indices i = N+1; j = M-1; lw = e3-1; up = e3+1; // while ( A[i] < pl ) i++; while ( compareXY(A[i], pl) < 0 ) i++; // while ( pr < A[j] ) j--; while ( compareXY(pr, A[j]) < 0 ) j--; } else { // small <= L i = N; j = M; int middlex = N + (L>>1); // N + L/2 int k, N1, M1; // for sampling int probeLng = sqrt(L/7); int halfSegmentLng = probeLng >> 1; // probeLng/2; int third = probeLng/3; N1 = middlex - halfSegmentLng; // N + (L>>1) - halfSegmentLng; M1 = N1 + probeLng - 1; int offset = L/probeLng; // assemble the mini array [N1, M1] for (k = 0; k < probeLng; k++) // iswap(N1 + k, N + k * offset, A); { int xx = N1 + k, yy = N + k * offset; iswap(xx, yy, A); } // sort this mini array to obtain good pivots /* if ( probeLng < 120 ) quicksort0c(A, N1, M1, depthLimit, compareXY); else { // protect against constant arrays int p0 = N1 + (probeLng>>1); int pn = N1, pm = M1, d = (probeLng-3)>>3; pn = med(A, pn, pn + d, pn + 2 * d, compareXY); p0 = med(A, p0 - d, p0, p0 + d, compareXY); pm = med(A, pm - 2 * d, pm - d, pm, compareXY); p0 = med(A, pn, p0, pm, compareXY); if ( p0 != middlex ) iswap(p0, middlex, A); dflgm(A, N1, M1, middlex, quicksort0c, depthLimit, compareXY); } */ // quicksort0c(A, N1, M1, depthLimit, compareXY); tpsc(A, N1, M1, depthLimit, compareXY); lw = N1+third; up = M1-third; pl = A[lw]; pr = A[up]; if ( compareXY(pl, A[middlex]) == 0 || compareXY( A[middlex], pr) == 0 ) { // Give up, cannot find good pivots dflgm(A, N, M, middlex, tpsc, depthLimit, compareXY); return; } // Swap these two segments to the corners for ( k = N1; k <= lw-1; k++ ) { iswap(k, i, A); i++; } // i--; for ( k = M1; up+1 <= k; k--) { iswap(k, j, A); j--; } // j++; iswap(N, lw, A); iswap(M, up, A); // they are there temporarily } /* |)----------(--)-------------(| N i lw up j M N < x < i -> A[x] < pl lw < x < lup -> pl <= A[x] <= pr j < x < M -> pr < A[x] */ again: while ( i <= lw ) { ai = A[i]; // if ( ai < pl ) { i++; continue; } if ( compareXY(ai, pl) < 0 ) { i++; continue; } // if ( pr < ai) { // ai -> R if ( compareXY(pr, ai) < 0 ) { // while ( pr < A[j] ) j--; while( compareXY(pr, A[j]) < 0 ) j--; aj = A[j]; // aj <= pr // if ( aj < pl ) { // aj -> L if ( compareXY(aj, pl) < 0 ) { A[i++] = aj; A[j--] = ai; if ( j < up ) { j++; if ( lw < i ) { i--; goto done; } goto rightClosed; } continue; } // aj -> M if ( j < up ) { // right gap closed j++; goto rightClosedAIR; } // up <= j goto AIRAJM; } // ai -> M goto AIM; } // left gap closed i--; goto leftClosed; AIM: /* |)----------(--)-------------(| N i lw up j M ai -> M */ if ( lw < i ) { i--; goto leftClosed; } // i <= lw am = A[lw]; // if ( am < pl ) { // am -> L if ( compareXY(am, pl) < 0 ) { A[i++] = am; A[lw--] = ai; if ( lw < i ) { i--; goto leftClosed; } goto again; } // if ( pr < am ) { // am -> R if ( compareXY(pr, am) < 0 ) { repeatR: aj = A[j]; // if ( pr < aj ) { j--; goto repeatR; } if ( compareXY(pr, aj) < 0 ) { j--; // aj -> R if ( j < up ) { // right closed A[lw--] = A[j]; A[j] = am; if ( i == lw ) { i--; goto done; } goto rightClosedAIM; } goto repeatR; } // if ( aj < pl ) { // aj -> L if ( compareXY(aj, pl) < 0 ) { A[i++] = aj; A[lw--] = ai; A[j--] = am; if ( j < up ) { j++; // right closed if ( lw < i ) { // left closed i--; goto done; } goto rightClosed; } goto again; } // aj -> M if ( j < up ) { // right closed j++; goto rightClosedAIM; } A[lw--] = aj; A[j--] = am; if ( j < up ) { j++; // right closed if ( lw < i ) { i--; goto done; } goto rightClosed; } goto AIM; } // am -> M if ( i == lw ) { i--; goto leftClosed; } lw--; goto AIM; AIRAJM: /* |)----------(--)-------------(| N i lw up j M ai -> R aj -> M */ am = A[lw]; // if ( am < pl ) { // am -> L if ( compareXY(am, pl) < 0 ) { A[i++] = am; A[lw--] = aj; A[j--] = ai; if ( j < up ) { j++; // right closed if ( lw < i ) { // left closed i--; goto done; } goto rightClosed; } if ( lw < i ) { i--; goto leftClosed; } goto again; } // if ( am <= pr ) { // am -> M if ( compareXY(am, pr) <= 0 ) { lw--; goto AIRAJM; } // am -> R if ( i == lw ) { A[j--] = ai; A[i--] = aj; if ( j < up ) { j++; goto done; } goto leftClosed; } // i < lw A[lw--] = aj; A[j--] = am; if ( j < up ) { // right closed j++; goto rightClosedAIR; } goto AIR; AJM: /* |)----------(--)-------------(| N i lw up j M aj -> M */ am = A[lw]; // if ( pr < am ) { // am -> R if ( compareXY(pr, am) < 0 ) { A[lw--] = aj; A[j--] = am; if ( j < up ) { // right closed j++; goto rightClosed; } goto again; } // if ( pl <= am ) { // am -> M if ( compareXY(pl, am) <= 0 ) { lw--; if ( lw < i ) { // left closed i--; goto repeatM3; } goto AJM; } // aj -> M and am -> L repeatL: ai = A[i]; // if ( ai < pl ) { i++; goto repeatL; } if ( compareXY(ai, pl) < 0 ) { i++; goto repeatL; } // if ( pr < ai ) { // ai -> R if ( compareXY(pr, ai) < 0 ) { A[i++] = am; A[lw--] = aj; A[j--] = ai; if ( j < up ) { j++; // right closed if ( lw < i ) { i--; goto done; } goto rightClosed; } if ( lw < i ) { i--; goto leftClosed; } goto again; } // ai -> M A[i++] = am; A[lw--] = ai; if ( lw < i ) { i--; goto repeatM3; } goto AJM; AIR: /* |)----------(--)-------------(| N i lw up j M ai -> R */ aj = A[j]; // if ( pr < aj ) { j--; goto AIR; } if ( compareXY(pr, aj) < 0 ) { j--; goto AIR; } // if ( aj < pl ) { if ( compareXY(aj, pl) < 0 ) { A[i++] = aj; A[j--] = ai; if ( j < up ) { j++; // right closed if ( lw < i ) { i--; goto done; } goto rightClosed; } goto again; } // aj -> M if ( j < up ) { j++; goto rightClosedAIR; } goto AIRAJM; leftClosed: /* |--]------------)-------------(| N i up j M */ aj = A[j]; // if ( pr < aj ) { j--; goto leftClosed; } if ( compareXY(pr, aj) < 0 ) { j--; goto leftClosed; } // if ( aj < pl ) { // aj -> L if ( compareXY(aj, pl) < 0 ) { repeatM: am = A[up]; // if ( pr < am ) { // am -> R if ( compareXY(pr, am) < 0 ) { A[j--] = am; A[up++] = A[++i]; A[i] = aj; if ( j < up ) { j++; goto done; } goto leftClosed; } // if ( pl <= am ) { // am -> M if ( compareXY(pl, am) <= 0 ) { up++; goto repeatM; } // am -> L if ( up == j ) { A[j++] = A[++i]; A[i] = aj; goto done; } // up < j A[up++] = A[++i]; A[i] = am; goto repeatM; } // aj -> M if ( j < up ) { j++; goto done; } // up <= j repeatM3: am = A[up]; // if ( pr < am ) { // am -> R if ( compareXY(pr, am) < 0 ) { A[up++] = aj; A[j--] = am; if ( j < up ) { j++; goto done; } goto leftClosed; } // if ( am < pl ) { // am -> L if ( compareXY(am, pl) < 0 ) { A[up++] = A[++i]; A[i] = am; goto repeatM3; } // am -> M if ( j <= up ) { j++; goto done; } up++; goto repeatM3; rightClosedAIR: /* |-)----------(--[-------------| N i lw j M ai -> R */ am = A[lw]; // if ( am < pl ) { // am -> L if ( compareXY(am, pl) < 0 ) { A[i++] = am; A[lw--] = A[--j]; A[j] = ai; if ( lw < i ) { i--; goto done; } goto rightClosed; } // if ( am <= pr ) { lw--; goto rightClosed; } if ( compareXY(am, pr) <= 0 ) { lw--; goto rightClosedAIR; } // am -> R if ( i == lw ) { A[i--] = A[--j]; A[j] = ai; goto done; } // i < lw A[lw--] = A[--j]; A[j] = am; goto rightClosedAIR; rightClosedAIM: /* |-)----------(--[-------------| N i lw j M ai -> M */ am = A[lw]; // if ( am < pl ) { // am -> L if ( compareXY(am, pl) < 0 ) { A[i++] = am; A[lw--] = ai; if ( lw < i ) { i--; goto done; } goto rightClosed; } // if ( pr < am ) { // am -> R if ( compareXY(pr, am) < 0 ) { A[lw--] = A[--j]; A[j] = am; goto rightClosedAIM; } // am -> M if ( i == lw ) { i--; goto done; } lw--; goto rightClosedAIM; rightClosed: /* |-)----------(--[-------------| N i lw j M */ // while ( A[i] < pl ) i++; while ( compareXY(A[i], pl) < 0 ) i++; ai = A[i]; // if ( pr < ai ) { if ( compareXY(pr, ai) < 0 ) goto rightClosedAIR; // ai -> M if ( lw < i ) { i--; goto done; } goto rightClosedAIM; done: // iswap(N, i--, A); iswap(M, j++, A); // put the pivots in place iswap(N, i, A); i--; iswap(M, j, A); j++; /* |---]---------[---------| N i j M */ // tail iteration if ( i-N < j-i ) { tpsc(A, N, i, depthLimit, compareXY); if ( j-i < M-j ) { tpsc(A, i+1, j-1, depthLimit, compareXY); N = j; goto Start; } tpsc(A, j, M, depthLimit, compareXY); N = i+1; M = j-1; goto Start; } tpsc(A, i+1, j-1, depthLimit, compareXY); if ( i-N < M-j ) { tpsc(A, N, i, depthLimit, compareXY); N = j; goto Start; } tpsc(A, j, M, depthLimit, compareXY); M = i; goto Start; } // end tpsc
the_stack_data/339622.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test() { #pragma omp target parallel ; } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel.c:3:1, line:6:1> line:3:6 test 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} <col:13, line:6:1> // CHECK-NEXT: `-OMPTargetParallelDirective {{.*}} <line:4:1, col:28> // CHECK-NEXT: `-CapturedStmt {{.*}} <line:5:3> // CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: |-CapturedStmt {{.*}} <col:3> // CHECK-NEXT: | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} <col:3> // CHECK-NEXT: | | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: | | |-NullStmt {{.*}} <col:3> // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict' // CHECK-NEXT: | |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition // CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit // CHECK-NEXT: | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: | |-NullStmt {{.*}} <line:5:3> // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict' // CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .global_tid. 'const int' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict' // CHECK-NEXT: |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: |-CapturedStmt {{.*}} <line:5:3> // CHECK-NEXT: | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: | |-NullStmt {{.*}} <col:3> // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict' // CHECK-NEXT: |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow // CHECK-NEXT: |-NullStmt {{.*}} <line:5:3> // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:1) *const restrict'
the_stack_data/436129.c
#include<stdio.h> void merge(int arr[], int l, int m, int r); void merge_sort(int arr[], int l, int r); int main() { int n, arr[100], i; printf("Enter number of elements in array: "); scanf("%d", &n); printf("Enter array elements: \n"); for(i = 0; i < n; i++){ scanf("%d", &arr[i]); } merge_sort(arr, 0, n); printf("Sorted array elements: \n"); for(i = 0; i < n; i++){ printf("%d ", arr[i]); } printf("\n"); } void merge(int arr[], int l, int m, int r) { int i, j, k; int n1 = m - l + 1; int n2 = r - m; int L[n1], R[n2]; for (i = 0; i < n1; i++) L[i] = arr[l + i]; for (j = 0; j < n2; j++) R[j] = arr[m + 1+ j]; i = 0; j = 0; k = l; while (i < n1 && j < n2) { if (L[i] <= R[j]) { arr[k] = L[i]; i++; } else { arr[k] = R[j]; j++; } k++; } while (i < n1) { arr[k] = L[i]; i++; k++; } while (j < n2) { arr[k] = R[j]; j++; k++; } } void merge_sort(int arr[], int l, int r) { if (l < r) { int m = l+(r-l)/2; merge_sort(arr, l, m); merge_sort(arr, m+1, r); merge(arr, l, m, r); } }
the_stack_data/56687.c
#include <stdio.h> #include <stdlib.h> char *left(char *s,int len) { static char *buf; int x; /* allocate storage */ buf = (char *)malloc(sizeof(char)*len+1); if( buf==NULL ) exit(1); for(x=0;x<len;x++) /* copy len chars */ *(buf+x) = *(s+x); *(buf+x) = '\0'; /* cap the string */ return(buf); } char *right(char *s,int len) { static char *buf; char *start; int x; /* allocate storage */ buf = (char *)malloc(sizeof(char)*len+1); if( buf==NULL ) exit(1); /* find the end of the string */ start = s; while(*start!='\0') start++; /* backup */ for(x=0;x<len;x++) start--; /* you could return start here, but I want consistency */ for(x=0;x<len;x++) *(buf+x) = *(start+x); *(buf+x) = '\0'; /* cap the string */ return(buf); } char *mid(char *s,int offset, int len) { static char *buf; int x; /* allocate storage */ buf = (char *)malloc(sizeof(char)*len+1); if( buf==NULL ) exit(1); /* copy the string */ for(x=0;x<len;x++) { *(buf+x) = *(s+offset-1+x); /* subtract 1 to start with 0 */ if( *(buf+x)=='\0') /* avoid overflow */ break; } *(buf+x) = '\0'; /* cap the string */ return(buf); } int main() { char string[] = "Once upon a time, there was a string"; printf("Original string: %s\n",string); printf("Left %d characters: %s\n",16,left(string,16)); printf("Right %d characters: %s\n",18,right(string,18)); printf("Middle %d characters: %s\n",11,mid(string,13,11)); return(0); }
the_stack_data/206392549.c
#include <stdio.h> #include <math.h> int main() { long long int i,a,b,inc,countt,x; while(scanf("%lld %lld",&a,&b)==2) { countt=0; if(a==0 && b==0) break; for(i=a; i<=b; i++) { x=sqrt(i); if(x*x==i) countt=countt+1; else continue; } printf("%lld\n",countt); } return 0; }
the_stack_data/230657.c
/* Program to find the total numbers of words in a sentence */ #include <stdio.h> #include <string.h> #include <stdlib.h> //Function which calculate and return total numbers of words int count_words(char *sen) { int i=0,check=1,word=0; //until i is less then length of sen variable the loop will run while(strlen(sen)>i) { /*if sen[i]th index value is not equal to space and i is not the last index number because the last index no. contain null and null is not alphabet so we not need to treat it as a alphabet*/ if(sen[i]!=' '&&i!=strlen(sen)-1) { //if check is equal to 1(first time word occurrence after space) if(check==1) { //increment word and assign 0 to check word++; check=0; } } // if the sen[i]th index no. value is a space or null then run else else { //assign 1 to check check=1; } //increment i by 1 i++; } return word; } //driver code int main() { //initialize required variables char *sen,res; // dynamically locating the address in sen variable sen=(char*)malloc(sizeof(char)*1000); //checking whether the sen variable contain null if(sen==NULL) { fprintf(stderr, "malloc() failed to allocate memory\n"); // returning 1 to tell that the program didn't run successfully return 1; } printf("Enter a sentence: "); //taking input fgets(sen,1000,stdin); // resizing the sen variable length so memory wastage can be prevent sen=(char*)realloc(sen,strlen(sen)+1); // calling count_words function which will return total words in res variable res=count_words(sen); //printing the total words printf("Total number of words: %d",res); } /* Test case 1: Input: Enter a sentence: DSA is a Important Topic Output: Total number of words: 5 Test case 2: Input: Enter a sentence: Who are you? Output: Total number of words: 3 Time Complexity O(n) where n is the length of string */
the_stack_data/20449333.c
/* Copyright (C) 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include <pthread.h> #include <unistd.h> int pthread_setreuid_np (uid_t ruid, uid_t euid) { return setreuid (ruid, euid); }
the_stack_data/7950974.c
#include <stdio.h> #if OP1 void func1(void) { printf("%s: %s_OP1\n", __FILE__, __PRETTY_FUNCTION__); } #else void func1(void) { printf("%s: %s_NOT_OP1\n", __FILE__, __PRETTY_FUNCTION__); } #endif
the_stack_data/1156861.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> int main() { pid_t pid; int status, ret_val; if ((pid = fork()) > 0) { printf("parent PID : %d\n", getpid()); sleep(2); ret_val = waitpid(pid, &status, 0); printf("parent is waiting and terminated %d %d %d\n", ret_val, WIFEXITED(status), WEXITSTATUS(status)); exit(0); } else if (pid == 0) { printf("child PID: %d\n", getpid()); sleep(4); printf("child terminated\n"); exit(9); } else { fprintf(stderr, "fork error\n"); exit(1); } exit(0); }
the_stack_data/48443.c
/* * Copyright (C) 2004-2013 Lorenzo Pallara, [email protected] * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. */ #include <netinet/in.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <inttypes.h> #define TS_PACKET_SIZE 188 #define MAX_PID 8192 int main(int argc, char *argv[]) { unsigned int i; u_short temp; int byte_read; int fd_ts; /* File descriptor of ts file */ u_short pid; unsigned int buffer_size; u_short pid_map_table[MAX_PID]; /* PID map table for the TS packets */ unsigned char* packet_buffer; unsigned char* current_packet; /* Open ts file */ buffer_size = 0; if (argc >= 5) fd_ts = open(argv[1], O_RDONLY); else { fprintf(stderr, "Usage: 'tspidmapper input.ts [b:buffer_size_in_packets] PID1 to PID2 and PID3 to PID4 and ... '\n"); return 2; } if (fd_ts < 0) { fprintf(stderr, "Can't find file %s\n", argv[1]); return 2; } for (i = 0; i < MAX_PID; i++) { pid_map_table[i] = MAX_PID; } if ((argv[2] != 0) && (argv[2][0] == 'b') && (argv[2][1] == ':')) { buffer_size = atoi(&(argv[2][2])); if (buffer_size == 0) { fprintf(stderr, "invalid buffer size\n"); return 2; } i = 3; } else { i = 2; } for (; i < argc ; i+=4 ) { temp = atoi(argv[i]); if (temp < MAX_PID) { pid_map_table[temp] = atoi(argv[i+2]); fprintf(stderr, "Change %d to %d\n", temp, pid_map_table[temp]); } } if (buffer_size == 0) buffer_size = 1; /* Start to process the file */ buffer_size *= TS_PACKET_SIZE; packet_buffer = malloc(buffer_size); if (packet_buffer == NULL) { fprintf(stderr, "out of memory\n"); return 2; } byte_read = 1; while(byte_read) { /* Read next packets */ byte_read = read(fd_ts, packet_buffer, buffer_size); /* change pid */ for (i = 0; i < buffer_size; i += TS_PACKET_SIZE) { current_packet = packet_buffer + i; memcpy(&pid, current_packet + 1, 2); pid = ntohs(pid); pid = pid & 0x1fff; if (pid < MAX_PID) { if (pid_map_table[pid] != MAX_PID) { memcpy(&temp, current_packet + 1, 2); temp = ntohs(temp); temp = temp & 0xe000; temp = (pid_map_table[pid] & 0x1fff) | temp; temp = htons(temp); memcpy(current_packet + 1, &temp, 2); } } } /* Write packet buffer */ if (byte_read) write(STDOUT_FILENO, packet_buffer, buffer_size); } return 0; }
the_stack_data/129838.c
/* $OpenBSD: compress.c,v 1.1 2011/07/07 02:57:24 deraadt Exp $ */ /* compress.c -- compress a memory buffer * Copyright (C) 1995-2003 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h */ #define ZLIB_INTERNAL #include "zlib.h" /* =========================================================================== Compresses the source buffer into the destination buffer. The level parameter has the same meaning as in deflateInit. sourceLen is the byte length of the source buffer. Upon entry, destLen is the total size of the destination buffer, which must be at least 0.1% larger than sourceLen plus 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough memory, Z_BUF_ERROR if there was not enough room in the output buffer, Z_STREAM_ERROR if the level parameter is invalid. */ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) Bytef *dest; uLongf *destLen; const Bytef *source; uLong sourceLen; int level; { z_stream stream; int err; stream.next_in = (Bytef*)source; stream.avail_in = (uInt)sourceLen; #ifdef MAXSEG_64K /* Check for source > 64K on 16-bit machine: */ if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; #endif stream.next_out = dest; stream.avail_out = (uInt)*destLen; if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; stream.zalloc = (alloc_func)0; stream.zfree = (free_func)0; stream.opaque = (voidpf)0; err = deflateInit(&stream, level); if (err != Z_OK) return err; err = deflate(&stream, Z_FINISH); if (err != Z_STREAM_END) { deflateEnd(&stream); return err == Z_OK ? Z_BUF_ERROR : err; } *destLen = stream.total_out; err = deflateEnd(&stream); return err; } /* =========================================================================== */ int ZEXPORT compress (dest, destLen, source, sourceLen) Bytef *dest; uLongf *destLen; const Bytef *source; uLong sourceLen; { return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); } /* =========================================================================== If the default memLevel or windowBits for deflateInit() is changed, then this function needs to be updated. */ uLong ZEXPORT compressBound (sourceLen) uLong sourceLen; { return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; }
the_stack_data/22013703.c
/* Glidix Runtime Copyright (c) 2014-2017, Madd Games. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <strings.h> #include <ctype.h> #include <stddef.h> int strcasecmp(const char *s1, const char *s2) { while (1) { int c1 = tolower( (unsigned char) *s1++ ); int c2 = tolower( (unsigned char) *s2++ ); if (c1 == 0 || c1 != c2) return c1 - c2; }; }; int strncasecmp(const char *s1, const char *s2, size_t n) { while (1) { int c1 = tolower( (unsigned char) *s1++ ); int c2 = tolower( (unsigned char) *s2++ ); if (c1 == 0 || c1 != c2 || (!(n--))) return c1 - c2; }; };
the_stack_data/872668.c
#include <stdio.h> void Judge_Range(int, int, int); void Judge_Range(int a, int b, int c) { if(a < b) { if(b < c) { printf("Yes\n"); } else { printf("No\n"); } } else { printf("No\n"); } } int main() { int x, y, z; scanf("%d %d %d", &x, &y, &z); Judge_Range(x, y, z); return 0; }
the_stack_data/234518867.c
/*Exercise 2 - Selection Write a program to calculate the amount to be paid for a rented vehicle. • Input the distance the van has travelled • The first 30 km is at a rate of 50/= per km. • The remaining distance is calculated at the rate of 40/= per km. e.g. Distance -> 20 Amount = 20 x 50 = 1000 Distance -> 50 Amount = 30 x 50 + (50-30) x 40 = 2300*/ #include <stdio.h> int main() { int distance , x; printf("Input the distance the van has travelled:"); scanf("%d",&distance); if (distance < 30) { x = distance * 50; } if (distance > 30) { x = (distance * 30) + ((distance - 30) * 40.0); } printf("The cost is :%d",x); return 0; }
the_stack_data/198581715.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <locale.h> #define LIM 1000000 int main(void){ //Verificar todos os números perfeitos no intervalo [2,1000000]; setlocale(LC_ALL,""); int soma; for(int i=2; i <= LIM; i++){ for(int k=1; k < i; k++){ if(i%k == 0) soma += k; } if(soma == i) printf("O número %d é perfeito!\n", i); soma = 0; if(i == LIM) break; } printf("Esses são todos os número perfeitos no intervalo [2~1000000]"); system("pause"); return 0; }
the_stack_data/92328681.c
#include <stdio.h> #include <limits.h> int main() { printf("%10i\n", 1234567); printf("%-10i\n", 1234567); // - flag printf("%+i %+i\n", 123, -123); printf("% i \n% i\n", 123, -123); printf("%X\n", 17); printf("%#X\n", 17); printf("%05i\n", 123); printf("%*i\n", 7, 456); printf("\nPrecision\n"); printf("%.3d\n", 1024); printf("%.5d\n", 1024); printf("%.3f\n", 123456.1234567); printf("%.3f\n", 123456.1235); printf("%10.3f\n", 123.45678); //printf("%10i\n", 1234567); //printf("%10i\n", 1234567); //printf("%10i\n", 1234567); //printf("%10i\n", 1234567); //printf("%10i\n", 1234567); return 0; }
the_stack_data/464032.c
/* Satvik Choudhary * 111601021 * quickSort */ // Standard C libraries included. #include <stdio.h> #include <stdlib.h> #define inf 1000000000 // Value of the sentinentel. #define IN freopen("in.txt", "r", stdin) // Two useful functions which take input from file as if it comes from stdin #define OUT freopen("out.txt", "w", stdout) // Very helpful in debugging and checking cases. I would recommend this // even for checking out programs it will simplify the work of the checkers. #define swap(a, b) {int temp = a; a = b; b = temp;} int partitionFunc(int* a, int left, int right, int pivot){ int lp = left; // left pointer int rp = right+1; // right pointer while(1){ while(a[++lp] < pivot && lp < right); // move left until left pointer points to element less than pivot. while(rp>left && a[--rp] > pivot); // move right until right pointer points to element greater than pivot. if(lp >= rp) break; // complete array is divided into two parts. else swap(a[lp], a[rp]); // swap the elements pointed to by left and right pointers. } swap(a[rp], a[left]); // finally swap the pivot value. return rp; // returning the new index of the pivot. } void quickSort(int* a, int left, int right){ if(left < right){ int pivot = a[left]; int partition = partitionFunc(a, left, right, pivot); // partition the array on two sides of the pivot. quickSort(a, left, partition-1); // sort the left part of the partitioned array. quickSort(a, partition+1, right); // sort the right part of the partitioned array. } } int main(){ //IN; //OUT; int n; printf("Enter the length of array: "); scanf("%d", &n); int i = 0; int a[100000]; printf("Enter the elements: "); for(i=0; i<n; i++){ scanf("%d", &a[i]); } quickSort(a, 0, n-1); // quickSort call for full array sorting. for(i=0; i<n; i++){ printf("%d\n", a[i]); } return 0; }
the_stack_data/22352.c
/* * Copyright (C) 2018 by Martin Alejandro Ribelotta */ #define WEAK __attribute__ ((weak)) #define ALIAS(f) __attribute__ ((weak, alias (#f))) extern int main(void); extern void __libc_init_array(void); // extern void __libc_fini_array(void); // @Eric fix newlib commits extern void SystemInit(void); extern void _vStackTop(void); extern void __valid_user_code_checksum(void); void Reset_Handler(void); WEAK void NMI_Handler(void); WEAK void HardFault_Handler(void); WEAK void MemManage_Handler(void); WEAK void BusFault_Handler(void); WEAK void UsageFault_Handler(void); WEAK void SVC_Handler(void); WEAK void DebugMon_Handler(void); WEAK void PendSV_Handler(void); WEAK void SysTick_Handler(void); WEAK void initialise_monitor_handles(void); void initialise_monitor_handles(void) { } __attribute__ ((used,section(".isr_vector"))) void (* const g_pfnVectors[])(void) = { &_vStackTop, // The initial stack pointer Reset_Handler, // The reset handler NMI_Handler, // The NMI handler HardFault_Handler, // The hard fault handler MemManage_Handler, // The MPU fault handler BusFault_Handler, // The bus fault handler UsageFault_Handler, // The usage fault handler __valid_user_code_checksum, // Reserved 0, // Reserved 0, // Reserved 0, // Reserved SVC_Handler, // SVCall handler DebugMon_Handler, // Debug monitor handler 0, // Reserved PendSV_Handler, // The PendSV handler SysTick_Handler, // The SysTick handler }; __attribute__((section(".after_vectors"))) void data_init(unsigned int romstart, unsigned int start, unsigned int len) { unsigned int *pulDest = (unsigned int*) start; unsigned int *pulSrc = (unsigned int*) romstart; unsigned int loop; for (loop = 0; loop < len; loop = loop + 4) *pulDest++ = *pulSrc++; } __attribute__ ((section(".after_vectors"))) void bss_init(unsigned int start, unsigned int len) { unsigned int *pulDest = (unsigned int*) start; unsigned int loop; for (loop = 0; loop < len; loop = loop + 4) *pulDest++ = 0; } WEAK void _fini(void); void _fini(void) {} WEAK void _init(void); void _init(void) {} extern unsigned int __data_section_table; extern unsigned int __data_section_table_end; extern unsigned int __bss_section_table; // @suppress("Unused variable declaration in file scope") extern unsigned int __bss_section_table_end; void Reset_Handler(void) { __asm__ volatile("cpsid i"); //__asm__ __volatile__("cpsid i"); // @Eric fix newlib commits volatile unsigned int *RESET_CONTROL = (unsigned int *) 0x40053100; *(RESET_CONTROL + 0) = 0x10DF1000; *(RESET_CONTROL + 1) = 0x01DFF7FF; volatile unsigned int *NVIC_ICPR = (unsigned int *) 0xE000E280; unsigned int irqpendloop; for (irqpendloop = 0; irqpendloop < 8; irqpendloop++) { *(NVIC_ICPR + irqpendloop) = 0xFFFFFFFF; } __asm__ volatile("cpsie i"); unsigned int LoadAddr, ExeAddr, SectionLen; unsigned int *SectionTableAddr; SectionTableAddr = &__data_section_table; while (SectionTableAddr < &__data_section_table_end) { LoadAddr = *SectionTableAddr++; ExeAddr = *SectionTableAddr++; SectionLen = *SectionTableAddr++; data_init(LoadAddr, ExeAddr, SectionLen); } while (SectionTableAddr < &__bss_section_table_end) { ExeAddr = *SectionTableAddr++; SectionLen = *SectionTableAddr++; bss_init(ExeAddr, SectionLen); } SystemInit(); __libc_init_array(); initialise_monitor_handles(); main(); while (1) { __asm__ volatile("wfi"); } // @Eric fix newlib commits /* #ifdef USE_SEMIHOST initialise_monitor_handles(); #endif __libc_init_array(); main(); __libc_fini_array(); __asm__ __volatile__("bkpt 0"); while (1) { __asm__ __volatile__("wfi"); } */ } __attribute__ ((section(".after_vectors"))) void NMI_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void HardFault_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void MemManage_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void BusFault_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void UsageFault_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void SVC_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void DebugMon_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void PendSV_Handler(void) { while (1) { } } __attribute__ ((section(".after_vectors"))) void SysTick_Handler(void) { while (1) { } }
the_stack_data/37637383.c
// panic: invalid type: int // https://syzkaller.appspot.com/bug?id=fb5b4401752a2f746b7c589eaebfcbe06dee8375 // status:fixed // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include <endian.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/syscall.h> #include <sys/types.h> #include <unistd.h> uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x10, 2, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20000140 = 4; syscall(__NR_getsockopt, r[0], 1, 8, 0x20000040, 0x20000140); return 0; }
the_stack_data/11074895.c
#include <stdio.h> long int f(long int n){ if (n == 0) return 0; if(n % 2 == 0) //se resto é zero return 0 + f(n/2) * 10; return 1 + f(n/2) * 10; } int main(){ printf("%d\n", f(35000) ); printf("%d\n", f(128) ); }
the_stack_data/200143778.c
#include <stdlib.h> #include <stdio.h> int exists(char *fname) { FILE *file = fopen(fname, "r"); if (file) { fclose(file); return 1; } return 0; } int bytecount(FILE *file) { int start = ftell(file); fseek(file, 0, SEEK_END); int count = ftell(file); fseek(file, start, SEEK_SET); return count; } int main(int argc, char **argv) { char *srcfile = NULL; char *destfile = NULL; long maxbuffer = 10 * 1048576; // 10MB max buffer if (argc == 1) { printf("Usage: %s <source> [dest] [max buffer]\n", argv[0]); return 1; } // collect arguments if (argc >= 2) { srcfile = argv[1]; } if (argc >= 3) { destfile = argv[2]; } if (argc >= 4) { maxbuffer = labs(atol(argv[3])); if (maxbuffer < 3) maxbuffer = 0; } if (!exists(srcfile)) { perror("Error"); return 1; } if (destfile && exists(destfile)) { fprintf(stderr, "Error: destination file already exists: %s\n", destfile); return 1; } FILE *infile = fopen(srcfile, "rb"); if (!infile) { perror("Failed to open file"); return 1; } if (bytecount(infile) == 0) { fprintf(stderr, "Error: input file is empty.\n"); fclose(infile); return 1; } FILE *outfile = NULL; if (destfile) { outfile = fopen(destfile, "wb"); if (!outfile) { perror("Failed to open file"); fclose(infile); return 1; } } else { outfile = stdout; } char *buffer = NULL; long buffsize = 0; if (maxbuffer) { // contains a space after each byte, and each byte should be exactly 2 characters // this means that per byte, we will need 3 characters in our buffer // get a buffer size that's as big as possible within limits that's divisible by 3 for (long i = maxbuffer; i > 0; i--) { if (i % 3 == 0) { buffsize = i; break; } } buffer = calloc(buffsize, sizeof(char)); } long count = 0; char curr = fgetc(infile); while (curr != EOF) { if (buffsize) sprintf(buffer + (count * 3), "%02hhX", curr); else fprintf(outfile, "%02hhX ", curr); if (buffsize) { if (count == buffsize - 1) { count = 0; // filter out null characters, if any for (int i = 2; i < buffsize; i += 3) { if (buffer[i] == 0) buffer[i] = ' '; } fwrite(buffer, sizeof(char), buffsize, outfile); } else { count++; } } curr = fgetc(infile); } // flush the rest of the buffer to the file if there is some left over if (buffsize && count != 0) { for (int i = 2; i < buffsize; i += 3) { if (buffer[i] == 0) buffer[i] = ' '; } fwrite(buffer, sizeof(char), count * 3, outfile); } if (buffer) free(buffer); if (ferror(infile)) { perror("File read failed"); fclose(infile); if (destfile) fclose(outfile); return 1; } if (destfile && ferror(outfile)) { perror("File write failed"); fclose(infile); fclose(outfile); return 1; } fclose(infile); if (destfile) fclose(outfile); return 0; }
the_stack_data/134427.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define NUM_CHAR 256 typedef struct trienode{ struct trienode *children[NUM_CHAR]; bool terminal; } trienode; trienode *createnode(){ trienode *newnode = malloc(sizeof(* newnode)); for (int i = 0; i < NUM_CHAR;i++){ newnode->children[i] = NULL; } newnode->terminal = false; return newnode; } bool trieinsert(trienode **root, char *signedtext){ if(*root == NULL){ *root = createnode(); } unsigned char *text = (unsigned char *)signedtext; trienode *temp = *root; int length = strlen(signedtext); for (int i = 0; i < length;i++){ if(temp->children[text[i]] == NULL){ temp->children[text[i]] = createnode(); } temp = temp->children[text[i]]; } if(temp->terminal){ return false; } else{ temp->terminal = true; return true; } } void printtrie_rec(trienode *node, unsigned char *prefix, int length){ unsigned char newprefix[length + 2]; memcpy(newprefix, prefix, length); newprefix[length + 1] = 0; if(node->terminal){ printf("Word: %s\n", prefix); } for (int i = 0; i < NUM_CHAR;i++){ if(node->children[i]!=NULL){ newprefix[length] = i; printtrie_rec(node->children[i], newprefix, length + 1); } } } void printtrie(trienode *root){ if(root == NULL){ printf("Trie is empty!\n"); return; } printtrie_rec(root, NULL, 0); } int main(){ trienode *root = NULL; trieinsert(&root, "KIT"); trieinsert(&root, "CATTLE"); trieinsert(&root, "KIN"); trieinsert(&root, "CAT"); trieinsert(&root, "HAPPY"); printtrie(root); return 0; }
the_stack_data/113361.c
/* * pthreads_1.c * * Created on: Sep. 13, 2019 * Author: takis */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #define MAXCOUNT 2147483647 // simple delay function void short_delay(int count) { for (int i = 0; i != count; ++i) ; return; } // This is the thread function that will execute when the thread is created // it passes and receives data by void pointers void* threadFunction_1(void *value) { int *x = (int*) value; //cast the data passed to an int while (*x < MAXCOUNT) { short_delay(10); //sleep for a short delay ++(*x); //increment the value of x by 1 } return x; //return the pointer to x } void* threadFunction_2(void *value) { int *x = (int*) value; //cast the data passed to an int while (*x < MAXCOUNT) { short_delay(10); //sleep for a short delay ++(*x); //increment the value of x by 1 } return x; //return the pointer to x } int main() { int x_1 = 0, x_2 = 0, y = 0; pthread_t thread_1, thread_2; //this is our handle to the pthread // create the threads, returns 0 on the successful creation of each thread if (pthread_create(&thread_1, NULL, &threadFunction_1, &x_1) != 0) { printf("Failed to create the thread\n"); return 1; } if (pthread_create(&thread_2, NULL, &threadFunction_2, &x_2) != 0) { printf("Failed to create the thread\n"); return 1; } // threads successfully created, move on to perform main program loop const int num_loops = 10; // program will run for num_loops*100 milliseconds while (y != num_loops) { // loop and increment y, displaying values printf("The value of x_1=%d, x_2=%d and y=%d \n", x_1, x_2, y); usleep(100); // encourage the pthreads to run ++y; } // main loop completed, terminate all threads pthread_cancel(thread_1); pthread_cancel(thread_2); printf("Final: x_1=%d, x_2=%d, y=%d\n", x_1, x_2, y); return EXIT_SUCCESS; }
the_stack_data/1224297.c
#include <stdio.h> int main(int argc, char *argv[]) { // Static lenght array char string[] = "Hello world"; printf("%s %c %s %s %s\n", string, string[0], string, &string[0], string); char *pp = NULL; pp = string; for (unsigned int i = 0; i < sizeof (string) / sizeof (string[0]); i++) { printf("Value = %c, Address = %p\n", *pp, pp); pp = pp + 1; } int *p = NULL; int arr[] = {200,600,900,2000,3000}; p = arr; for (unsigned int i = 0; i < sizeof (arr) / sizeof (arr[0]); i++) { printf("Value = %d, Address = %p\n", *p, p); p = p + 1; } return 0; }
the_stack_data/75137209.c
#include <stdio.h> #include <string.h> static char *without_newline(char *s) { char *pos = strchr(s, '\n'); if (pos) { *pos = 0; } return s; } int main(void) { static char buf[16]; while (fgets(buf, sizeof(buf), stdin)) { const size_t len = strlen(buf); printf("%d: %s\n", (int)len, without_newline(buf)); } return 0; }
the_stack_data/808023.c
#include <stdio.h> #include <signal.h> #include <stdlib.h> #include <time.h> void nothing(int signum) { /* DO NOTHING */ } int main(void) { /* Looking to ignore the SIGINT signal */ signal(SIGINT, nothing); /* high overhead approach */ signal(SIGINT, SIG_IGN); /* better approach */ while (1); }
the_stack_data/89200705.c
/* Beeper functions*/ #include <stdint.h> void _beep_start(uint16_t freq); void _beep_stop(); void beep(uint32_t nFrequence, unsigned char duration) { _beep_start(1193180 / nFrequence); } void nosound() { _beep_stop(); }
the_stack_data/32208.c
//C file /* ************************************************ # # Copyright (c)2015,湖南大学信息科学与工程学院 # Filename: base_play_data.c # # Author: 陈宇翔 # Email: [email protected] # Create: 2015-08-30 14:49:21 # Last Modified: 2015-08-30 15:27:06 # version: v1.0 # # Description: 输入3个双精度实数,分别求出它们的和、 # 平均值、平方和以及平方和的开方,并输出所求出各个值。 # Input: # Output: #************************************************/ #include <stdio.h> #include <math.h> int main() { float a,b,c; scanf("%f %f %f",&a,&b,&c); float sum,mean,squ,sqroot; sum = a + b + c; mean = sum / 3.0; squ = a * a + b * b + c * c; sqroot = sqrt(squ); printf("%f,%f,%f,%f\n",sum,mean,squ,sqroot); return 0; }
the_stack_data/192330699.c
// PARAM: --disable ana.race.free #include <pthread.h> #include <stdlib.h> void *t_fun(void *arg) { int *p = (int *) arg; (*p)++; // NORACE return NULL; } int main(void) { pthread_t id; int *p = malloc(sizeof(int)); pthread_create(&id, NULL, t_fun, (void *) p); free(p); // NORACE pthread_join (id, NULL); return 0; }
the_stack_data/34513673.c
#include <stdio.h> #include <stdlib.h> #include <string.h> char* hacked = "Hacked!!!"; void vulnerable_function(char* string) { char buffer[100]; printf ("buffer: %p \n", &buffer); strcpy(buffer, string); } int main(int argc, char** argv) { printf("Main function!\n"); //Print addresses not to use gdb printf ("hacked: %p \n", hacked); size_t i; void (*ptr_to_puts)() = puts; for (i=0; i<sizeof ptr_to_puts; i++) printf("%.2x", ((unsigned char *)&ptr_to_puts)[i]); putchar('\n'); char name[100]; gets(name); vulnerable_function(name); return 0; }
the_stack_data/57950862.c
/* +-----------------------+ | Dipankar Das 20051554 | +-----------------------+ WAP to display the array elements in reverse order.*/ #include <stdio.h> #include <stdlib.h> void swap(int* a, int* b){ int t=*a; *a = *b; *b=t; } int main(int argc, char const *argv[]) { int n=0; printf("enter the number of ele.. "); scanf("%d",&n); int* arr = (int*)malloc(n*sizeof(int)); for(int i=0;i<n;i++) scanf("%d",arr+i); int l=0, r=n-1; while(l<r){ swap((arr+l), (arr+r)); l++; r--; } for(int i=0;i<n;i++) printf("%d ",*(arr+i)); printf("\n"); remove(argv[0]); return 0; }
the_stack_data/33180.c
// Copyright (c) 2015 Nuxi, https://nuxi.nl/ // // SPDX-License-Identifier: BSD-2-Clause #include <errno.h> #include <pthread.h> #include <threads.h> int mtx_trylock(mtx_t *mtx) { switch (pthread_mutex_trylock(mtx)) { case 0: return thrd_success; case EBUSY: return thrd_busy; default: return thrd_error; } }
the_stack_data/192331511.c
/* * basename.c - find the rightmost component of a pathname. */ #include <stdio.h> /* * Return a pointer to the basename of a full path (everthing to the * right of the rightmost '/'. */ char * basename(path) char *path; { char *retval; extern char *strrchr(); if (NULL == path) return(NULL); return ((NULL == (retval = strrchr(path, '/'))) ? path : (retval + 1)); } /* basename() */ #ifdef TEST main(argc, argv) int argc; char *argv[]; { while (--argc > 0) printf("%s\n", basename(argv[argc])); } /* main() */ #endif /* TEST */
the_stack_data/51700241.c
#include <stdio.h> int main(){ int a=8; int b=10; float c=5.8; int *p1=&a; //p1 stores the address of a int *p2=&b; //p2 stores the address of b float *p3=&c; // p3 stores the address of c //address and pointers for a printf("The address of a is %p.\n", &a); printf("Using a pointer the address of a is %p.\n", p1); // this is for the address of a // Dereferencing p1 printf("By dereferencing the pointer, a = %d.\n\n", *p1); // the * indicates the actual value //address and pointers for b printf("The address of b is %p.\n", &b); printf("Using a pointer the address of b is %p.\n", p2); // this is for the address of a printf("By dereferencing the pointer, b = %d.\n\n", *p2); //address and pointers for c printf("The address of c is %p.\n", &c); printf("Using a pointer the address of c is %p.\n", p3); // this is for the address of a printf("By dereferencing the pointer, c = %f.\n\n", *p3); //addition of pointers printf("The sum of a and b is %d.\n\n", *p1+*p2); p1=p2; //the address of p1 is now equal to the address of p2 printf("The address of p1 after switching to p2 is now %p.\n\n", p1); //pointer array int meatballs[5] = {4,53,7,89,54}; printf("\n*(meatballs+2) \t %d.", *(meatballs+2)); return 0; }
the_stack_data/37638395.c
/* ** SQLCipher ** http://sqlcipher.net ** ** Copyright (c) 2008 - 2013, ZETETIC LLC ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in the ** documentation and/or other materials provided with the distribution. ** * Neither the name of the ZETETIC LLC nor the ** names of its contributors may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY ZETETIC LLC ''AS IS'' AND ANY ** EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL ZETETIC LLC BE LIABLE FOR ANY ** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** */ /* BEGIN SQLCIPHER */ #ifdef SQLITE_HAS_CODEC #include "sqlcipher.h" #include "crypto.h" #if defined(__unix__) || defined(__APPLE__) || defined(_AIX) #include <errno.h> #include <unistd.h> #include <sys/resource.h> #include <sys/mman.h> #elif defined(_WIN32) #include <windows.h> #endif static volatile unsigned int default_flags = DEFAULT_CIPHER_FLAGS; static volatile unsigned char hmac_salt_mask = HMAC_SALT_MASK; static volatile int default_kdf_iter = PBKDF2_ITER; static volatile int default_page_size = 4096; static volatile int default_plaintext_header_sz = 0; static volatile int default_hmac_algorithm = SQLCIPHER_HMAC_SHA512; static volatile int default_kdf_algorithm = SQLCIPHER_PBKDF2_HMAC_SHA512; #ifndef OMIT_MEM_SECURITY static volatile int mem_security_on = 1; static volatile int mem_security_initialized = 0; static volatile int mem_security_activated = 0; #endif static volatile unsigned int sqlcipher_activate_count = 0; static volatile sqlite3_mem_methods default_mem_methods; static sqlite3_mutex* sqlcipher_provider_mutex = NULL; static sqlcipher_provider *default_provider = NULL; /* the default implementation of SQLCipher uses a cipher_ctx to keep track of read / write state separately. The following struct and associated functions are defined here */ typedef struct { int derive_key; int pass_sz; unsigned char *key; unsigned char *hmac_key; unsigned char *pass; char *keyspec; } cipher_ctx; struct codec_ctx { int store_pass; int kdf_iter; int fast_kdf_iter; int kdf_salt_sz; int key_sz; int iv_sz; int block_sz; int page_sz; int keyspec_sz; int reserve_sz; int hmac_sz; int plaintext_header_sz; int hmac_algorithm; int kdf_algorithm; unsigned int skip_read_hmac; unsigned int need_kdf_salt; unsigned int flags; unsigned char *kdf_salt; unsigned char *hmac_kdf_salt; unsigned char *buffer; Btree *pBt; cipher_ctx *read_ctx; cipher_ctx *write_ctx; sqlcipher_provider *provider; void *provider_ctx; }; #ifndef OMIT_MEM_SECURITY static int sqlcipher_mem_init(void *pAppData) { return default_mem_methods.xInit(pAppData); } static void sqlcipher_mem_shutdown(void *pAppData) { default_mem_methods.xShutdown(pAppData); } static void *sqlcipher_mem_malloc(int n) { void *ptr = default_mem_methods.xMalloc(n); if(mem_security_on) { CODEC_TRACE("sqlcipher_mem_malloc: calling sqlcipher_mlock(%p,%d)\n", ptr, n); sqlcipher_mlock(ptr, n); if(!mem_security_activated) mem_security_activated = 1; } return ptr; } static int sqlcipher_mem_size(void *p) { return default_mem_methods.xSize(p); } static void sqlcipher_mem_free(void *p) { int sz; if(mem_security_on) { sz = sqlcipher_mem_size(p); CODEC_TRACE("sqlcipher_mem_free: calling sqlcipher_memset(%p,0,%d) and sqlcipher_munlock(%p, %d) \n", p, sz, p, sz); sqlcipher_memset(p, 0, sz); sqlcipher_munlock(p, sz); if(!mem_security_activated) mem_security_activated = 1; } default_mem_methods.xFree(p); } static void *sqlcipher_mem_realloc(void *p, int n) { return default_mem_methods.xRealloc(p, n); } static int sqlcipher_mem_roundup(int n) { return default_mem_methods.xRoundup(n); } static sqlite3_mem_methods sqlcipher_mem_methods = { sqlcipher_mem_malloc, sqlcipher_mem_free, sqlcipher_mem_realloc, sqlcipher_mem_size, sqlcipher_mem_roundup, sqlcipher_mem_init, sqlcipher_mem_shutdown, 0 }; void sqlcipher_init_memmethods() { if(mem_security_initialized) return; if(sqlite3_config(SQLITE_CONFIG_GETMALLOC, &default_mem_methods) != SQLITE_OK || sqlite3_config(SQLITE_CONFIG_MALLOC, &sqlcipher_mem_methods) != SQLITE_OK) { mem_security_on = mem_security_activated = 0; } mem_security_initialized = 1; } #endif /* OMIT_MEM_SECURITY */ int sqlcipher_register_provider(sqlcipher_provider *p) { CODEC_TRACE_MUTEX("sqlcipher_register_provider: entering sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_enter(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_register_provider: entered sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); if(default_provider != NULL && default_provider != p) { /* only free the current registerd provider if it has been initialized and it isn't a pointer to the same provider passed to the function (i.e. protect against a caller calling register twice for the same provider) */ sqlcipher_free(default_provider, sizeof(sqlcipher_provider)); } default_provider = p; CODEC_TRACE_MUTEX("sqlcipher_register_provider: leaving sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_leave(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_register_provider: left sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); return SQLITE_OK; } /* return a pointer to the currently registered provider. This will allow an application to fetch the current registered provider and make minor changes to it */ sqlcipher_provider* sqlcipher_get_provider() { return default_provider; } void sqlcipher_activate() { CODEC_TRACE_MUTEX("sqlcipher_activate: entering static master mutex\n"); sqlite3_mutex_enter(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_activate: entered static master mutex\n"); if(sqlcipher_provider_mutex == NULL) { /* allocate a new mutex to guard access to the provider */ CODEC_TRACE_MUTEX("sqlcipher_activate: allocating sqlcipher provider mutex\n"); sqlcipher_provider_mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST); CODEC_TRACE_MUTEX("sqlcipher_activate: allocated sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); } /* check to see if there is a provider registered at this point if there no provider registered at this point, register the default provider */ if(sqlcipher_get_provider() == NULL) { sqlcipher_provider *p = sqlcipher_malloc(sizeof(sqlcipher_provider)); #if defined(SQLCIPHER_CRYPTO_CUSTOM) extern int sqlcipher_custom_setup(sqlcipher_provider *p); sqlcipher_custom_setup(p); #elif defined (SQLCIPHER_CRYPTO_CC) extern int sqlcipher_cc_setup(sqlcipher_provider *p); sqlcipher_cc_setup(p); #elif defined (SQLCIPHER_CRYPTO_LIBTOMCRYPT) extern int sqlcipher_ltc_setup(sqlcipher_provider *p); sqlcipher_ltc_setup(p); #elif defined (SQLCIPHER_CRYPTO_OPENSSL) extern int sqlcipher_openssl_setup(sqlcipher_provider *p); sqlcipher_openssl_setup(p); #else #error "NO DEFAULT SQLCIPHER CRYPTO PROVIDER DEFINED" #endif CODEC_TRACE("sqlcipher_activate: calling sqlcipher_register_provider(%p)\n", p); sqlcipher_register_provider(p); CODEC_TRACE("sqlcipher_activate: called sqlcipher_register_provider(%p)\n",p); } sqlcipher_activate_count++; /* increment activation count */ CODEC_TRACE_MUTEX("sqlcipher_activate: leaving static master mutex\n"); sqlite3_mutex_leave(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_activate: left static master mutex\n"); } void sqlcipher_deactivate() { CODEC_TRACE_MUTEX("sqlcipher_deactivate: entering static master mutex\n"); sqlite3_mutex_enter(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_deactivate: entered static master mutex\n"); sqlcipher_activate_count--; /* if no connections are using sqlcipher, cleanup globals */ if(sqlcipher_activate_count < 1) { CODEC_TRACE_MUTEX("sqlcipher_deactivate: entering sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_enter(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_deactivate: entered sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); if(default_provider != NULL) { sqlcipher_free(default_provider, sizeof(sqlcipher_provider)); default_provider = NULL; } CODEC_TRACE_MUTEX("sqlcipher_deactivate: leaving sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_leave(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_deactivate: left sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); /* last connection closed, free provider mutex*/ CODEC_TRACE_MUTEX("sqlcipher_deactivate: freeing sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_free(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_deactivate: freed sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlcipher_provider_mutex = NULL; sqlcipher_activate_count = 0; /* reset activation count */ } CODEC_TRACE_MUTEX("sqlcipher_deactivate: leaving static master mutex\n"); sqlite3_mutex_leave(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_deactivate: left static master mutex\n"); } /* constant time memset using volitile to avoid having the memset optimized out by the compiler. Note: As suggested by Joachim Schipper ([email protected]) */ void* sqlcipher_memset(void *v, unsigned char value, int len) { #ifndef OMIT_MEM_SECURITY if (v == NULL) return v; unsigned long val = 0; int i; for (i = 0; i < sizeof(unsigned long); i++) { val = (val << 8) | (value & 0xff); } int len2 = len % sizeof(unsigned long); len = len / sizeof(unsigned long); volatile unsigned long *aa = (unsigned long *) v; for (i = 0; i < len; i++) { *aa++ = val; } volatile unsigned char *a = (unsigned char *) aa; for (i = 0; i < len2; i++) { *a++ = value; } return v; #else return memset(v, value, len); #endif } /* constant time memory check tests every position of a memory segement matches a single value (i.e. the memory is all zeros) returns 0 if match, 1 of no match */ int sqlcipher_ismemset(const void *v, unsigned char value, int len) { unsigned long val = 0; int i; for (i = 0; i < sizeof(unsigned long); i++) { val = (val << 8) | (value & 0xff); } int len2 = len % sizeof(unsigned long); len = len / sizeof(unsigned long); #ifndef OMIT_MEM_SECURITY int result = 0; const unsigned long *aa = (const unsigned long *) v; for (i = 0; i < len; i++) { result |= *aa++ ^ val; } const unsigned char *a = (const unsigned char *) aa; for (i = 0; i < len2; i++) { result |= *a++ ^ value; } return (result != 0); #else const unsigned long *aa = (const unsigned long *) v; for (i = 0; i < len; i++) { if (*aa++ != val) return 1; } const unsigned char *a = (const unsigned char *) aa; for (i = 0; i < len2; i++) { if (*a++ != value) return 1; } return 0; #endif } /* constant time memory comparison routine. returns 0 if match, 1 if no match */ int sqlcipher_memcmp(const void *v0, const void *v1, int len) { #ifndef OMIT_MEM_SECURITY int len2 = len % sizeof(unsigned long); len = len / sizeof(unsigned long); int i, result = 0; const unsigned long *aa0 = (const unsigned long *) v0; const unsigned long *aa1 = (const unsigned long *) v1; for (i = 0; i < len; i++) { result |= *aa0++ ^ *aa1++; } const unsigned char *a0 = (const unsigned char *) aa0; const unsigned char *a1 = (const unsigned char *) aa1; for (i = 0; i < len2; i++) { result |= *a0++ ^ *a1++; } return (result != 0); #else return memcmp(v0, v1, len); #endif } void sqlcipher_mlock(void *ptr, int sz) { #ifndef OMIT_MEMLOCK #if defined(__unix__) || defined(__APPLE__) int rc; unsigned long pagesize = sysconf(_SC_PAGESIZE); unsigned long offset = (unsigned long) ptr % pagesize; if(ptr == NULL || sz == 0) return; CODEC_TRACE("sqlcipher_mem_lock: calling mlock(%p,%lu); _SC_PAGESIZE=%lu\n", ptr - offset, sz + offset, pagesize); rc = mlock(ptr - offset, sz + offset); if(rc!=0) { CODEC_TRACE("sqlcipher_mem_lock: mlock(%p,%lu) returned %d errno=%d\n", ptr - offset, sz + offset, rc, errno); } #elif defined(_WIN32) #if !(defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP)) int rc; CODEC_TRACE("sqlcipher_mem_lock: calling VirtualLock(%p,%d)\n", ptr, sz); rc = VirtualLock(ptr, sz); if(rc==0) { CODEC_TRACE("sqlcipher_mem_lock: VirtualLock(%p,%d) returned %d LastError=%d\n", ptr, sz, rc, GetLastError()); } #endif #endif #endif } void sqlcipher_munlock(void *ptr, int sz) { #ifndef OMIT_MEMLOCK #if defined(__unix__) || defined(__APPLE__) int rc; unsigned long pagesize = sysconf(_SC_PAGESIZE); unsigned long offset = (unsigned long) ptr % pagesize; if(ptr == NULL || sz == 0) return; CODEC_TRACE("sqlcipher_mem_unlock: calling munlock(%p,%lu)\n", ptr - offset, sz + offset); rc = munlock(ptr - offset, sz + offset); if(rc!=0) { CODEC_TRACE("sqlcipher_mem_unlock: munlock(%p,%lu) returned %d errno=%d\n", ptr - offset, sz + offset, rc, errno); } #elif defined(_WIN32) #if !(defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP)) int rc; CODEC_TRACE("sqlcipher_mem_lock: calling VirtualUnlock(%p,%d)\n", ptr, sz); rc = VirtualUnlock(ptr, sz); if(!rc) { CODEC_TRACE("sqlcipher_mem_unlock: VirtualUnlock(%p,%d) returned %d LastError=%d\n", ptr, sz, rc, GetLastError()); } #endif #endif #endif } /** * Free and wipe memory. Uses SQLites internal sqlite3_free so that memory * can be countend and memory leak detection works in the test suite. * If ptr is not null memory will be freed. * If sz is greater than zero, the memory will be overwritten with zero before it is freed * If sz is > 0, and not compiled with OMIT_MEMLOCK, system will attempt to unlock the * memory segment so it can be paged */ void sqlcipher_free(void *ptr, int sz) { #ifndef OMIT_MEM_SECURITY if(ptr) { CODEC_TRACE("sqlcipher_free: calling sqlcipher_memset(%p,0,%d)\n", ptr, sz); sqlcipher_memset(ptr, 0, sz); sqlcipher_munlock(ptr, sz); } #endif sqlite3_free(ptr); } /** * allocate memory. Uses sqlite's internall malloc wrapper so memory can be * reference counted and leak detection works. Unless compiled with OMIT_MEMLOCK * attempts to lock the memory pages so sensitive information won't be swapped */ void* sqlcipher_malloc(int sz) { void *ptr; CODEC_TRACE("sqlcipher_malloc: calling sqlite3Malloc(%d)\n", sz); ptr = sqlite3Malloc(sz); CODEC_TRACE("sqlcipher_malloc: calling sqlcipher_memset(%p,0,%d)\n", ptr, sz); sqlcipher_memset(ptr, 0, sz); #ifndef OMIT_MEM_SECURITY sqlcipher_mlock(ptr, sz); #endif return ptr; } /** * Initialize new cipher_ctx struct. This function will allocate memory * for the cipher context and for the key * * returns SQLITE_OK if initialization was successful * returns SQLITE_NOMEM if an error occured allocating memory */ static int sqlcipher_cipher_ctx_init(codec_ctx *ctx, cipher_ctx **iCtx) { cipher_ctx *c_ctx; CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating context\n"); *iCtx = (cipher_ctx *) sqlcipher_malloc(sizeof(cipher_ctx)); c_ctx = *iCtx; if(c_ctx == NULL) return SQLITE_NOMEM; CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating key\n"); c_ctx->key = (unsigned char *) sqlcipher_malloc(ctx->key_sz); CODEC_TRACE("sqlcipher_cipher_ctx_init: allocating hmac_key\n"); c_ctx->hmac_key = (unsigned char *) sqlcipher_malloc(ctx->key_sz); if(c_ctx->key == NULL) return SQLITE_NOMEM; if(c_ctx->hmac_key == NULL) return SQLITE_NOMEM; return SQLITE_OK; } /** * Free and wipe memory associated with a cipher_ctx */ static void sqlcipher_cipher_ctx_free(codec_ctx* ctx, cipher_ctx **iCtx) { cipher_ctx *c_ctx = *iCtx; CODEC_TRACE("cipher_ctx_free: entered iCtx=%p\n", iCtx); sqlcipher_free(c_ctx->key, ctx->key_sz); sqlcipher_free(c_ctx->hmac_key, ctx->key_sz); sqlcipher_free(c_ctx->pass, c_ctx->pass_sz); sqlcipher_free(c_ctx->keyspec, ctx->keyspec_sz); sqlcipher_free(c_ctx, sizeof(cipher_ctx)); } static int sqlcipher_codec_ctx_reserve_setup(codec_ctx *ctx) { int base_reserve = ctx->iv_sz; /* base reserve size will be IV only */ int reserve = base_reserve; ctx->hmac_sz = ctx->provider->get_hmac_sz(ctx->provider_ctx, ctx->hmac_algorithm); if(sqlcipher_codec_ctx_get_use_hmac(ctx)) reserve += ctx->hmac_sz; /* if reserve will include hmac, update that size */ /* calculate the amount of reserve needed in even increments of the cipher block size */ reserve = ((reserve % ctx->block_sz) == 0) ? reserve : ((reserve / ctx->block_sz) + 1) * ctx->block_sz; CODEC_TRACE("sqlcipher_codec_ctx_reserve_setup: base_reserve=%d block_sz=%d md_size=%d reserve=%d\n", base_reserve, ctx->block_sz, ctx->hmac_sz, reserve); ctx->reserve_sz = reserve; return SQLITE_OK; } /** * Compare one cipher_ctx to another. * * returns 0 if all the parameters (except the derived key data) are the same * returns 1 otherwise */ static int sqlcipher_cipher_ctx_cmp(cipher_ctx *c1, cipher_ctx *c2) { int are_equal = ( c1->pass_sz == c2->pass_sz && ( c1->pass == c2->pass || !sqlcipher_memcmp((const unsigned char*)c1->pass, (const unsigned char*)c2->pass, c1->pass_sz) )); CODEC_TRACE("sqlcipher_cipher_ctx_cmp: entered \ c1=%p c2=%p \ c1->pass_sz=%d c2->pass_sz=%d \ c1->pass=%p c2->pass=%p \ c1->pass=%s c2->pass=%s \ sqlcipher_memcmp=%d \ are_equal=%d \ \n", c1, c2, c1->pass_sz, c2->pass_sz, c1->pass, c2->pass, c1->pass, c2->pass, (c1->pass == NULL || c2->pass == NULL) ? -1 : sqlcipher_memcmp( (const unsigned char*)c1->pass, (const unsigned char*)c2->pass, c1->pass_sz), are_equal ); return !are_equal; /* return 0 if they are the same, 1 otherwise */ } /** * Copy one cipher_ctx to another. For instance, assuming that read_ctx is a * fully initialized context, you could copy it to write_ctx and all yet data * and pass information across * * returns SQLITE_OK if initialization was successful * returns SQLITE_NOMEM if an error occured allocating memory */ static int sqlcipher_cipher_ctx_copy(codec_ctx *ctx, cipher_ctx *target, cipher_ctx *source) { void *key = target->key; void *hmac_key = target->hmac_key; CODEC_TRACE("sqlcipher_cipher_ctx_copy: entered target=%p, source=%p\n", target, source); sqlcipher_free(target->pass, target->pass_sz); sqlcipher_free(target->keyspec, ctx->keyspec_sz); memcpy(target, source, sizeof(cipher_ctx)); target->key = key; /* restore pointer to previously allocated key data */ memcpy(target->key, source->key, ctx->key_sz); target->hmac_key = hmac_key; /* restore pointer to previously allocated hmac key data */ memcpy(target->hmac_key, source->hmac_key, ctx->key_sz); if(source->pass && source->pass_sz) { target->pass = sqlcipher_malloc(source->pass_sz); if(target->pass == NULL) return SQLITE_NOMEM; memcpy(target->pass, source->pass, source->pass_sz); } if(source->keyspec) { target->keyspec = sqlcipher_malloc(ctx->keyspec_sz); if(target->keyspec == NULL) return SQLITE_NOMEM; memcpy(target->keyspec, source->keyspec, ctx->keyspec_sz); } return SQLITE_OK; } /** * Set the keyspec for the cipher_ctx * * returns SQLITE_OK if assignment was successfull * returns SQLITE_NOMEM if an error occured allocating memory */ static int sqlcipher_cipher_ctx_set_keyspec(codec_ctx *ctx, cipher_ctx *c_ctx, const unsigned char *key) { /* free, zero existing pointers and size */ sqlcipher_free(c_ctx->keyspec, ctx->keyspec_sz); c_ctx->keyspec = NULL; c_ctx->keyspec = sqlcipher_malloc(ctx->keyspec_sz); if(c_ctx->keyspec == NULL) return SQLITE_NOMEM; c_ctx->keyspec[0] = 'x'; c_ctx->keyspec[1] = '\''; cipher_bin2hex(key, ctx->key_sz, c_ctx->keyspec + 2); cipher_bin2hex(ctx->kdf_salt, ctx->kdf_salt_sz, c_ctx->keyspec + (ctx->key_sz * 2) + 2); c_ctx->keyspec[ctx->keyspec_sz - 1] = '\''; return SQLITE_OK; } int sqlcipher_codec_get_store_pass(codec_ctx *ctx) { return ctx->store_pass; } void sqlcipher_codec_set_store_pass(codec_ctx *ctx, int value) { ctx->store_pass = value; } void sqlcipher_codec_get_pass(codec_ctx *ctx, void **zKey, int *nKey) { *zKey = ctx->read_ctx->pass; *nKey = ctx->read_ctx->pass_sz; } static void sqlcipher_set_derive_key(codec_ctx *ctx, int derive) { if(ctx->read_ctx != NULL) ctx->read_ctx->derive_key = 1; if(ctx->write_ctx != NULL) ctx->write_ctx->derive_key = 1; } /** * Set the passphrase for the cipher_ctx * * returns SQLITE_OK if assignment was successfull * returns SQLITE_NOMEM if an error occured allocating memory */ static int sqlcipher_cipher_ctx_set_pass(cipher_ctx *ctx, const void *zKey, int nKey) { /* free, zero existing pointers and size */ sqlcipher_free(ctx->pass, ctx->pass_sz); ctx->pass = NULL; ctx->pass_sz = 0; if(zKey && nKey) { /* if new password is provided, copy it */ ctx->pass_sz = nKey; ctx->pass = sqlcipher_malloc(nKey); if(ctx->pass == NULL) return SQLITE_NOMEM; memcpy(ctx->pass, zKey, nKey); } return SQLITE_OK; } int sqlcipher_codec_ctx_set_pass(codec_ctx *ctx, const void *zKey, int nKey, int for_ctx) { cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx; int rc; if((rc = sqlcipher_cipher_ctx_set_pass(c_ctx, zKey, nKey)) != SQLITE_OK) return rc; c_ctx->derive_key = 1; if(for_ctx == 2) if((rc = sqlcipher_cipher_ctx_copy(ctx, for_ctx ? ctx->read_ctx : ctx->write_ctx, c_ctx)) != SQLITE_OK) return rc; return SQLITE_OK; } const char* sqlcipher_codec_ctx_get_cipher(codec_ctx *ctx) { return ctx->provider->get_cipher(ctx->provider_ctx); } /* set the global default KDF iteration */ void sqlcipher_set_default_kdf_iter(int iter) { default_kdf_iter = iter; } int sqlcipher_get_default_kdf_iter() { return default_kdf_iter; } int sqlcipher_codec_ctx_set_kdf_iter(codec_ctx *ctx, int kdf_iter) { ctx->kdf_iter = kdf_iter; sqlcipher_set_derive_key(ctx, 1); return SQLITE_OK; } int sqlcipher_codec_ctx_get_kdf_iter(codec_ctx *ctx) { return ctx->kdf_iter; } int sqlcipher_codec_ctx_set_fast_kdf_iter(codec_ctx *ctx, int fast_kdf_iter) { ctx->fast_kdf_iter = fast_kdf_iter; sqlcipher_set_derive_key(ctx, 1); return SQLITE_OK; } int sqlcipher_codec_ctx_get_fast_kdf_iter(codec_ctx *ctx) { return ctx->fast_kdf_iter; } /* set the global default flag for HMAC */ void sqlcipher_set_default_use_hmac(int use) { if(use) default_flags |= CIPHER_FLAG_HMAC; else default_flags &= ~CIPHER_FLAG_HMAC; } int sqlcipher_get_default_use_hmac() { return (default_flags & CIPHER_FLAG_HMAC) != 0; } void sqlcipher_set_hmac_salt_mask(unsigned char mask) { hmac_salt_mask = mask; } unsigned char sqlcipher_get_hmac_salt_mask() { return hmac_salt_mask; } /* set the codec flag for whether this individual database should be using hmac */ int sqlcipher_codec_ctx_set_use_hmac(codec_ctx *ctx, int use) { if(use) { sqlcipher_codec_ctx_set_flag(ctx, CIPHER_FLAG_HMAC); } else { sqlcipher_codec_ctx_unset_flag(ctx, CIPHER_FLAG_HMAC); } return sqlcipher_codec_ctx_reserve_setup(ctx); } int sqlcipher_codec_ctx_get_use_hmac(codec_ctx *ctx) { return (ctx->flags & CIPHER_FLAG_HMAC) != 0; } /* the length of plaintext header size must be: * 1. greater than or equal to zero * 2. a multiple of the cipher block size * 3. less than the usable size of the first database page */ int sqlcipher_set_default_plaintext_header_size(int size) { default_plaintext_header_sz = size; return SQLITE_OK; } int sqlcipher_codec_ctx_set_plaintext_header_size(codec_ctx *ctx, int size) { if(size >= 0 && (size % ctx->block_sz) == 0 && size < (ctx->page_sz - ctx->reserve_sz)) { ctx->plaintext_header_sz = size; return SQLITE_OK; } return SQLITE_ERROR; } int sqlcipher_get_default_plaintext_header_size() { return default_plaintext_header_sz; } int sqlcipher_codec_ctx_get_plaintext_header_size(codec_ctx *ctx) { return ctx->plaintext_header_sz; } /* manipulate HMAC algorithm */ int sqlcipher_set_default_hmac_algorithm(int algorithm) { default_hmac_algorithm = algorithm; return SQLITE_OK; } int sqlcipher_codec_ctx_set_hmac_algorithm(codec_ctx *ctx, int algorithm) { ctx->hmac_algorithm = algorithm; return sqlcipher_codec_ctx_reserve_setup(ctx); } int sqlcipher_get_default_hmac_algorithm() { return default_hmac_algorithm; } int sqlcipher_codec_ctx_get_hmac_algorithm(codec_ctx *ctx) { return ctx->hmac_algorithm; } /* manipulate KDF algorithm */ int sqlcipher_set_default_kdf_algorithm(int algorithm) { default_kdf_algorithm = algorithm; return SQLITE_OK; } int sqlcipher_codec_ctx_set_kdf_algorithm(codec_ctx *ctx, int algorithm) { ctx->kdf_algorithm = algorithm; return SQLITE_OK; } int sqlcipher_get_default_kdf_algorithm() { return default_kdf_algorithm; } int sqlcipher_codec_ctx_get_kdf_algorithm(codec_ctx *ctx) { return ctx->kdf_algorithm; } int sqlcipher_codec_ctx_set_flag(codec_ctx *ctx, unsigned int flag) { ctx->flags |= flag; return SQLITE_OK; } int sqlcipher_codec_ctx_unset_flag(codec_ctx *ctx, unsigned int flag) { ctx->flags &= ~flag; return SQLITE_OK; } int sqlcipher_codec_ctx_get_flag(codec_ctx *ctx, unsigned int flag) { return (ctx->flags & flag) != 0; } void sqlcipher_codec_ctx_set_error(codec_ctx *ctx, int error) { CODEC_TRACE("sqlcipher_codec_ctx_set_error: ctx=%p, error=%d\n", ctx, error); sqlite3pager_error(ctx->pBt->pBt->pPager, error); ctx->pBt->pBt->db->errCode = error; } int sqlcipher_codec_ctx_get_reservesize(codec_ctx *ctx) { return ctx->reserve_sz; } void* sqlcipher_codec_ctx_get_data(codec_ctx *ctx) { return ctx->buffer; } static int sqlcipher_codec_ctx_init_kdf_salt(codec_ctx *ctx) { sqlite3_file *fd = sqlite3PagerFile(ctx->pBt->pBt->pPager); if(!ctx->need_kdf_salt) { return SQLITE_OK; /* don't reload salt when not needed */ } /* read salt from header, if present, otherwise generate a new random salt */ CODEC_TRACE("sqlcipher_codec_ctx_init_kdf_salt: obtaining salt\n"); if(fd == NULL || fd->pMethods == 0 || sqlite3OsRead(fd, ctx->kdf_salt, ctx->kdf_salt_sz, 0) != SQLITE_OK) { CODEC_TRACE("sqlcipher_codec_ctx_init_kdf_salt: unable to read salt from file header, generating random\n"); if(ctx->provider->random(ctx->provider_ctx, ctx->kdf_salt, ctx->kdf_salt_sz) != SQLITE_OK) return SQLITE_ERROR; } ctx->need_kdf_salt = 0; return SQLITE_OK; } int sqlcipher_codec_ctx_set_kdf_salt(codec_ctx *ctx, unsigned char *salt, int size) { if(size >= ctx->kdf_salt_sz) { memcpy(ctx->kdf_salt, salt, ctx->kdf_salt_sz); ctx->need_kdf_salt = 0; return SQLITE_OK; } return SQLITE_ERROR; } int sqlcipher_codec_ctx_get_kdf_salt(codec_ctx *ctx, void** salt) { int rc = SQLITE_OK; if(ctx->need_kdf_salt) { rc = sqlcipher_codec_ctx_init_kdf_salt(ctx); } *salt = ctx->kdf_salt; return rc; } void sqlcipher_codec_get_keyspec(codec_ctx *ctx, void **zKey, int *nKey) { *zKey = ctx->read_ctx->keyspec; *nKey = ctx->keyspec_sz; } int sqlcipher_codec_ctx_set_pagesize(codec_ctx *ctx, int size) { if(!((size != 0) && ((size & (size - 1)) == 0)) || size < 512 || size > 65536) { CODEC_TRACE(("cipher_page_size not a power of 2 and between 512 and 65536 inclusive\n")); return SQLITE_ERROR; } /* attempt to free the existing page buffer */ sqlcipher_free(ctx->buffer,ctx->page_sz); ctx->page_sz = size; /* pre-allocate a page buffer of PageSize bytes. This will be used as a persistent buffer for encryption and decryption operations to avoid overhead of multiple memory allocations*/ ctx->buffer = sqlcipher_malloc(size); if(ctx->buffer == NULL) return SQLITE_NOMEM; return SQLITE_OK; } int sqlcipher_codec_ctx_get_pagesize(codec_ctx *ctx) { return ctx->page_sz; } void sqlcipher_set_default_pagesize(int page_size) { default_page_size = page_size; } int sqlcipher_get_default_pagesize() { return default_page_size; } void sqlcipher_set_mem_security(int on) { #ifndef OMIT_MEM_SECURITY mem_security_on = on; mem_security_activated = 0; #endif } int sqlcipher_get_mem_security() { #ifndef OMIT_MEM_SECURITY return mem_security_on && mem_security_activated; #else return 0; #endif } int sqlcipher_codec_ctx_init(codec_ctx **iCtx, Db *pDb, Pager *pPager, const void *zKey, int nKey) { int rc; codec_ctx *ctx; CODEC_TRACE("sqlcipher_codec_ctx_init: allocating context\n"); *iCtx = sqlcipher_malloc(sizeof(codec_ctx)); ctx = *iCtx; if(ctx == NULL) return SQLITE_NOMEM; ctx->pBt = pDb->pBt; /* assign pointer to database btree structure */ /* allocate space for salt data. Then read the first 16 bytes directly off the database file. This is the salt for the key derivation function. If we get a short read allocate a new random salt value */ CODEC_TRACE("sqlcipher_codec_ctx_init: allocating kdf_salt\n"); ctx->kdf_salt_sz = FILE_HEADER_SZ; ctx->kdf_salt = sqlcipher_malloc(ctx->kdf_salt_sz); if(ctx->kdf_salt == NULL) return SQLITE_NOMEM; /* allocate space for separate hmac salt data. We want the HMAC derivation salt to be different than the encryption key derivation salt */ CODEC_TRACE("sqlcipher_codec_ctx_init: allocating hmac_kdf_salt\n"); ctx->hmac_kdf_salt = sqlcipher_malloc(ctx->kdf_salt_sz); if(ctx->hmac_kdf_salt == NULL) return SQLITE_NOMEM; /* setup default flags */ ctx->flags = default_flags; /* defer attempt to read KDF salt until first use */ ctx->need_kdf_salt = 1; /* setup the crypto provider */ CODEC_TRACE("sqlcipher_codec_ctx_init: allocating provider\n"); ctx->provider = (sqlcipher_provider *) sqlcipher_malloc(sizeof(sqlcipher_provider)); if(ctx->provider == NULL) return SQLITE_NOMEM; /* make a copy of the provider to be used for the duration of the context */ CODEC_TRACE_MUTEX("sqlcipher_codec_ctx_init: entering sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_enter(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_codec_ctx_init: entered sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); memcpy(ctx->provider, default_provider, sizeof(sqlcipher_provider)); CODEC_TRACE_MUTEX("sqlcipher_codec_ctx_init: leaving sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); sqlite3_mutex_leave(sqlcipher_provider_mutex); CODEC_TRACE_MUTEX("sqlcipher_codec_ctx_init: left sqlcipher provider mutex %p\n", sqlcipher_provider_mutex); CODEC_TRACE("sqlcipher_codec_ctx_init: calling provider ctx_init\n"); if((rc = ctx->provider->ctx_init(&ctx->provider_ctx)) != SQLITE_OK) return rc; ctx->key_sz = ctx->provider->get_key_sz(ctx->provider_ctx); ctx->iv_sz = ctx->provider->get_iv_sz(ctx->provider_ctx); ctx->block_sz = ctx->provider->get_block_sz(ctx->provider_ctx); /* establic the size for a hex-formated key specification, containing the raw encryption key and the salt used to generate it format. will be x'hexkey...hexsalt' so oversize by 3 bytes */ ctx->keyspec_sz = ((ctx->key_sz + ctx->kdf_salt_sz) * 2) + 3; /* Always overwrite page size and set to the default because the first page of the database in encrypted and thus sqlite can't effectively determine the pagesize. this causes an issue in cases where bytes 16 & 17 of the page header are a power of 2 as reported by John Lehman */ CODEC_TRACE("sqlcipher_codec_ctx_init: calling sqlcipher_codec_ctx_set_pagesize with %d\n", default_page_size); if((rc = sqlcipher_codec_ctx_set_pagesize(ctx, default_page_size)) != SQLITE_OK) return rc; /* establish settings for the KDF iterations and fast (HMAC) KDF iterations */ CODEC_TRACE("sqlcipher_codec_ctx_init: setting default_kdf_iter\n"); if((rc = sqlcipher_codec_ctx_set_kdf_iter(ctx, default_kdf_iter)) != SQLITE_OK) return rc; CODEC_TRACE("sqlcipher_codec_ctx_init: setting fast_kdf_iter\n"); if((rc = sqlcipher_codec_ctx_set_fast_kdf_iter(ctx, FAST_PBKDF2_ITER)) != SQLITE_OK) return rc; /* set the default HMAC and KDF algorithms which will determine the reserve size */ CODEC_TRACE("sqlcipher_codec_ctx_init: calling sqlcipher_codec_ctx_set_hmac_algorithm with %d\n", default_hmac_algorithm); if((rc = sqlcipher_codec_ctx_set_hmac_algorithm(ctx, default_hmac_algorithm)) != SQLITE_OK) return rc; /* Note that use_hmac is a special case that requires recalculation of page size so we call set_use_hmac to perform setup */ CODEC_TRACE("sqlcipher_codec_ctx_init: setting use_hmac\n"); if((rc = sqlcipher_codec_ctx_set_use_hmac(ctx, default_flags & CIPHER_FLAG_HMAC)) != SQLITE_OK) return rc; CODEC_TRACE("sqlcipher_codec_ctx_init: calling sqlcipher_codec_ctx_set_kdf_algorithm with %d\n", default_kdf_algorithm); if((rc = sqlcipher_codec_ctx_set_kdf_algorithm(ctx, default_kdf_algorithm)) != SQLITE_OK) return rc; /* setup the default plaintext header size */ CODEC_TRACE("sqlcipher_codec_ctx_init: calling sqlcipher_codec_ctx_set_plaintext_header_size with %d\n", default_plaintext_header_sz); if((rc = sqlcipher_codec_ctx_set_plaintext_header_size(ctx, default_plaintext_header_sz)) != SQLITE_OK) return rc; /* initialize the read and write sub-contexts. this must happen after key_sz is established */ CODEC_TRACE("sqlcipher_codec_ctx_init: initializing read_ctx\n"); if((rc = sqlcipher_cipher_ctx_init(ctx, &ctx->read_ctx)) != SQLITE_OK) return rc; CODEC_TRACE("sqlcipher_codec_ctx_init: initializing write_ctx\n"); if((rc = sqlcipher_cipher_ctx_init(ctx, &ctx->write_ctx)) != SQLITE_OK) return rc; /* set the key material on one of the sub cipher contexts and sync them up */ CODEC_TRACE("sqlcipher_codec_ctx_init: setting pass key\n"); if((rc = sqlcipher_codec_ctx_set_pass(ctx, zKey, nKey, 0)) != SQLITE_OK) return rc; CODEC_TRACE("sqlcipher_codec_ctx_init: copying write_ctx to read_ctx\n"); if((rc = sqlcipher_cipher_ctx_copy(ctx, ctx->write_ctx, ctx->read_ctx)) != SQLITE_OK) return rc; return SQLITE_OK; } /** * Free and wipe memory associated with a cipher_ctx, including the allocated * read_ctx and write_ctx. */ void sqlcipher_codec_ctx_free(codec_ctx **iCtx) { codec_ctx *ctx = *iCtx; CODEC_TRACE("codec_ctx_free: entered iCtx=%p\n", iCtx); sqlcipher_free(ctx->kdf_salt, ctx->kdf_salt_sz); sqlcipher_free(ctx->hmac_kdf_salt, ctx->kdf_salt_sz); sqlcipher_free(ctx->buffer, 0); ctx->provider->ctx_free(&ctx->provider_ctx); sqlcipher_free(ctx->provider, sizeof(sqlcipher_provider)); sqlcipher_cipher_ctx_free(ctx, &ctx->read_ctx); sqlcipher_cipher_ctx_free(ctx, &ctx->write_ctx); sqlcipher_free(ctx, sizeof(codec_ctx)); } /** convert a 32bit unsigned integer to little endian byte ordering */ static void sqlcipher_put4byte_le(unsigned char *p, u32 v) { p[0] = (u8)v; p[1] = (u8)(v>>8); p[2] = (u8)(v>>16); p[3] = (u8)(v>>24); } static int sqlcipher_page_hmac(codec_ctx *ctx, cipher_ctx *c_ctx, Pgno pgno, unsigned char *in, int in_sz, unsigned char *out) { unsigned char pgno_raw[sizeof(pgno)]; /* we may convert page number to consistent representation before calculating MAC for compatibility across big-endian and little-endian platforms. Note: The public release of sqlcipher 2.0.0 to 2.0.6 had a bug where the bytes of pgno were used directly in the MAC. SQLCipher convert's to little endian by default to preserve backwards compatibility on the most popular platforms, but can optionally be configured to use either big endian or native byte ordering via pragma. */ if(ctx->flags & CIPHER_FLAG_LE_PGNO) { /* compute hmac using little endian pgno*/ sqlcipher_put4byte_le(pgno_raw, pgno); } else if(ctx->flags & CIPHER_FLAG_BE_PGNO) { /* compute hmac using big endian pgno */ sqlite3Put4byte(pgno_raw, pgno); /* sqlite3Put4byte converts 32bit uint to big endian */ } else { /* use native byte ordering */ memcpy(pgno_raw, &pgno, sizeof(pgno)); } /* include the encrypted page data, initialization vector, and page number in HMAC. This will prevent both tampering with the ciphertext, manipulation of the IV, or resequencing otherwise valid pages out of order in a database */ return ctx->provider->hmac( ctx->provider_ctx, ctx->hmac_algorithm, c_ctx->hmac_key, ctx->key_sz, in, in_sz, (unsigned char*) &pgno_raw, sizeof(pgno), out); } /* * ctx - codec context * pgno - page number in database * size - size in bytes of input and output buffers * mode - 1 to encrypt, 0 to decrypt * in - pointer to input bytes * out - pouter to output bytes */ int sqlcipher_page_cipher(codec_ctx *ctx, int for_ctx, Pgno pgno, int mode, int page_sz, unsigned char *in, unsigned char *out) { cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx; unsigned char *iv_in, *iv_out, *hmac_in, *hmac_out, *out_start; int size; /* calculate some required positions into various buffers */ size = page_sz - ctx->reserve_sz; /* adjust size to useable size and memset reserve at end of page */ iv_out = out + size; iv_in = in + size; /* hmac will be written immediately after the initialization vector. the remainder of the page reserve will contain random bytes. note, these pointers are only valid when using hmac */ hmac_in = in + size + ctx->iv_sz; hmac_out = out + size + ctx->iv_sz; out_start = out; /* note the original position of the output buffer pointer, as out will be rewritten during encryption */ CODEC_TRACE("codec_cipher:entered pgno=%d, mode=%d, size=%d\n", pgno, mode, size); CODEC_HEXDUMP("codec_cipher: input page data", in, page_sz); /* the key size should never be zero. If it is, error out. */ if(ctx->key_sz == 0) { CODEC_TRACE("codec_cipher: error possible context corruption, key_sz is zero for pgno=%d\n", pgno); goto error; } if(mode == CIPHER_ENCRYPT) { /* start at front of the reserve block, write random data to the end */ if(ctx->provider->random(ctx->provider_ctx, iv_out, ctx->reserve_sz) != SQLITE_OK) goto error; } else { /* CIPHER_DECRYPT */ memcpy(iv_out, iv_in, ctx->iv_sz); /* copy the iv from the input to output buffer */ } if((ctx->flags & CIPHER_FLAG_HMAC) && (mode == CIPHER_DECRYPT) && !ctx->skip_read_hmac) { if(sqlcipher_page_hmac(ctx, c_ctx, pgno, in, size + ctx->iv_sz, hmac_out) != SQLITE_OK) { CODEC_TRACE("codec_cipher: hmac operation on decrypt failed for pgno=%d\n", pgno); goto error; } CODEC_TRACE("codec_cipher: comparing hmac on in=%p out=%p hmac_sz=%d\n", hmac_in, hmac_out, ctx->hmac_sz); if(sqlcipher_memcmp(hmac_in, hmac_out, ctx->hmac_sz) != 0) { /* the hmac check failed */ if(sqlcipher_ismemset(in, 0, page_sz) == 0) { /* first check if the entire contents of the page is zeros. If so, this page resulted from a short read (i.e. sqlite attempted to pull a page after the end of the file. these short read failures must be ignored for autovaccum mode to work so wipe the output buffer and return SQLITE_OK to skip the decryption step. */ CODEC_TRACE("codec_cipher: zeroed page (short read) for pgno %d, encryption but returning SQLITE_OK\n", pgno); sqlcipher_memset(out, 0, page_sz); return SQLITE_OK; } else { /* if the page memory is not all zeros, it means the there was data and a hmac on the page. since the check failed, the page was either tampered with or corrupted. wipe the output buffer, and return SQLITE_ERROR to the caller */ CODEC_TRACE("codec_cipher: hmac check failed for pgno=%d returning SQLITE_ERROR\n", pgno); goto error; } } } if(ctx->provider->cipher(ctx->provider_ctx, mode, c_ctx->key, ctx->key_sz, iv_out, in, size, out) != SQLITE_OK) { CODEC_TRACE("codec_cipher: cipher operation mode=%d failed for pgno=%d returning SQLITE_ERROR\n", mode, pgno); goto error; }; if((ctx->flags & CIPHER_FLAG_HMAC) && (mode == CIPHER_ENCRYPT)) { if(sqlcipher_page_hmac(ctx, c_ctx, pgno, out_start, size + ctx->iv_sz, hmac_out) != SQLITE_OK) { CODEC_TRACE("codec_cipher: hmac operation on encrypt failed for pgno=%d\n", pgno); goto error; }; } CODEC_HEXDUMP("codec_cipher: output page data", out_start, page_sz); return SQLITE_OK; error: sqlcipher_memset(out, 0, page_sz); return SQLITE_ERROR; } /** * Derive an encryption key for a cipher contex key based on the raw password. * * If the raw key data is formated as x'hex' and there are exactly enough hex chars to fill * the key (i.e 64 hex chars for a 256 bit key) then the key data will be used directly. * Else, if the raw key data is formated as x'hex' and there are exactly enough hex chars to fill * the key and the salt (i.e 92 hex chars for a 256 bit key and 16 byte salt) then it will be unpacked * as the key followed by the salt. * * Otherwise, a key data will be derived using PBKDF2 * * returns SQLITE_OK if initialization was successful * returns SQLITE_ERROR if the key could't be derived (for instance if pass is NULL or pass_sz is 0) */ static int sqlcipher_cipher_ctx_key_derive(codec_ctx *ctx, cipher_ctx *c_ctx) { int rc; CODEC_TRACE("cipher_ctx_key_derive: entered c_ctx->pass=%s, c_ctx->pass_sz=%d \ ctx->kdf_salt=%p ctx->kdf_salt_sz=%d ctx->kdf_iter=%d \ ctx->hmac_kdf_salt=%p, ctx->fast_kdf_iter=%d ctx->key_sz=%d\n", c_ctx->pass, c_ctx->pass_sz, ctx->kdf_salt, ctx->kdf_salt_sz, ctx->kdf_iter, ctx->hmac_kdf_salt, ctx->fast_kdf_iter, ctx->key_sz); if(c_ctx->pass && c_ctx->pass_sz) { /* if key material is present on the context for derivation */ /* if necessary, initialize the salt from the header or random source */ if(ctx->need_kdf_salt) { if((rc = sqlcipher_codec_ctx_init_kdf_salt(ctx)) != SQLITE_OK) return rc; } if (c_ctx->pass_sz == ((ctx->key_sz * 2) + 3) && sqlite3StrNICmp((const char *)c_ctx->pass ,"x'", 2) == 0 && cipher_isHex(c_ctx->pass + 2, ctx->key_sz * 2)) { int n = c_ctx->pass_sz - 3; /* adjust for leading x' and tailing ' */ const unsigned char *z = c_ctx->pass + 2; /* adjust lead offset of x' */ CODEC_TRACE("cipher_ctx_key_derive: using raw key from hex\n"); cipher_hex2bin(z, n, c_ctx->key); } else if (c_ctx->pass_sz == (((ctx->key_sz + ctx->kdf_salt_sz) * 2) + 3) && sqlite3StrNICmp((const char *)c_ctx->pass ,"x'", 2) == 0 && cipher_isHex(c_ctx->pass + 2, (ctx->key_sz + ctx->kdf_salt_sz) * 2)) { const unsigned char *z = c_ctx->pass + 2; /* adjust lead offset of x' */ CODEC_TRACE("cipher_ctx_key_derive: using raw key from hex\n"); cipher_hex2bin(z, (ctx->key_sz * 2), c_ctx->key); cipher_hex2bin(z + (ctx->key_sz * 2), (ctx->kdf_salt_sz * 2), ctx->kdf_salt); } else { CODEC_TRACE("cipher_ctx_key_derive: deriving key using full PBKDF2 with %d iterations\n", ctx->kdf_iter); if(ctx->provider->kdf(ctx->provider_ctx, ctx->kdf_algorithm, c_ctx->pass, c_ctx->pass_sz, ctx->kdf_salt, ctx->kdf_salt_sz, ctx->kdf_iter, ctx->key_sz, c_ctx->key) != SQLITE_OK) return SQLITE_ERROR; } /* set the context "keyspec" containing the hex-formatted key and salt to be used when attaching databases */ if((rc = sqlcipher_cipher_ctx_set_keyspec(ctx, c_ctx, c_ctx->key)) != SQLITE_OK) return rc; /* if this context is setup to use hmac checks, generate a seperate and different key for HMAC. In this case, we use the output of the previous KDF as the input to this KDF run. This ensures a distinct but predictable HMAC key. */ if(ctx->flags & CIPHER_FLAG_HMAC) { int i; /* start by copying the kdf key into the hmac salt slot then XOR it with the fixed hmac salt defined at compile time this ensures that the salt passed in to derive the hmac key, while easy to derive and publically known, is not the same as the salt used to generate the encryption key */ memcpy(ctx->hmac_kdf_salt, ctx->kdf_salt, ctx->kdf_salt_sz); for(i = 0; i < ctx->kdf_salt_sz; i++) { ctx->hmac_kdf_salt[i] ^= hmac_salt_mask; } CODEC_TRACE("cipher_ctx_key_derive: deriving hmac key from encryption key using PBKDF2 with %d iterations\n", ctx->fast_kdf_iter); if(ctx->provider->kdf(ctx->provider_ctx, ctx->kdf_algorithm, c_ctx->key, ctx->key_sz, ctx->hmac_kdf_salt, ctx->kdf_salt_sz, ctx->fast_kdf_iter, ctx->key_sz, c_ctx->hmac_key) != SQLITE_OK) return SQLITE_ERROR; } c_ctx->derive_key = 0; return SQLITE_OK; }; return SQLITE_ERROR; } int sqlcipher_codec_key_derive(codec_ctx *ctx) { /* derive key on first use if necessary */ if(ctx->read_ctx->derive_key) { if(sqlcipher_cipher_ctx_key_derive(ctx, ctx->read_ctx) != SQLITE_OK) return SQLITE_ERROR; } if(ctx->write_ctx->derive_key) { if(sqlcipher_cipher_ctx_cmp(ctx->write_ctx, ctx->read_ctx) == 0) { /* the relevant parameters are the same, just copy read key */ if(sqlcipher_cipher_ctx_copy(ctx, ctx->write_ctx, ctx->read_ctx) != SQLITE_OK) return SQLITE_ERROR; } else { if(sqlcipher_cipher_ctx_key_derive(ctx, ctx->write_ctx) != SQLITE_OK) return SQLITE_ERROR; } } /* TODO: wipe and free passphrase after key derivation */ if(ctx->store_pass != 1) { sqlcipher_cipher_ctx_set_pass(ctx->read_ctx, NULL, 0); sqlcipher_cipher_ctx_set_pass(ctx->write_ctx, NULL, 0); } return SQLITE_OK; } int sqlcipher_codec_key_copy(codec_ctx *ctx, int source) { if(source == CIPHER_READ_CTX) { return sqlcipher_cipher_ctx_copy(ctx, ctx->write_ctx, ctx->read_ctx); } else { return sqlcipher_cipher_ctx_copy(ctx, ctx->read_ctx, ctx->write_ctx); } } const char* sqlcipher_codec_get_cipher_provider(codec_ctx *ctx) { return ctx->provider->get_provider_name(ctx->provider_ctx); } static int sqlcipher_check_connection(const char *filename, char *key, int key_sz, char *sql, int *user_version, char** journal_mode) { int rc; sqlite3 *db = NULL; sqlite3_stmt *statement = NULL; char *query_journal_mode = "PRAGMA journal_mode;"; char *query_user_version = "PRAGMA user_version;"; rc = sqlite3_open(filename, &db); if(rc != SQLITE_OK) goto cleanup; rc = sqlite3_key(db, key, key_sz); if(rc != SQLITE_OK) goto cleanup; rc = sqlite3_exec(db, sql, NULL, NULL, NULL); if(rc != SQLITE_OK) goto cleanup; /* start by querying the user version. this will fail if the key is incorrect */ rc = sqlite3_prepare(db, query_user_version, -1, &statement, NULL); if(rc != SQLITE_OK) goto cleanup; rc = sqlite3_step(statement); if(rc == SQLITE_ROW) { *user_version = sqlite3_column_int(statement, 0); } else { goto cleanup; } sqlite3_finalize(statement); rc = sqlite3_prepare(db, query_journal_mode, -1, &statement, NULL); if(rc != SQLITE_OK) goto cleanup; rc = sqlite3_step(statement); if(rc == SQLITE_ROW) { *journal_mode = sqlite3_mprintf("%s", sqlite3_column_text(statement, 0)); } else { goto cleanup; } rc = SQLITE_OK; /* cleanup will finalize open statement */ cleanup: if(statement) sqlite3_finalize(statement); if(db) sqlite3_close(db); return rc; } int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) { int i, pass_sz, keyspec_sz, nRes, user_version, rc, oflags; Db *pDb = 0; sqlite3 *db = ctx->pBt->db; const char *db_filename = sqlite3_db_filename(db, "main"); char *set_user_version = NULL, *pass = NULL, *attach_command = NULL, *migrated_db_filename = NULL, *keyspec = NULL, *temp = NULL, *journal_mode = NULL, *set_journal_mode = NULL, *pragma_compat = NULL; Btree *pDest = NULL, *pSrc = NULL; const char* commands[5]; sqlite3_file *srcfile, *destfile; #if defined(_WIN32) || defined(SQLITE_OS_WINRT) LPWSTR w_db_filename = NULL, w_migrated_db_filename = NULL; int w_db_filename_sz = 0, w_migrated_db_filename_sz = 0; #endif pass_sz = keyspec_sz = rc = user_version = 0; if(!db_filename || sqlite3Strlen30(db_filename) < 1) goto cleanup; /* exit immediately if this is an in memory database */ /* pull the provided password / key material off the current codec context */ pass_sz = ctx->read_ctx->pass_sz; pass = sqlcipher_malloc(pass_sz+1); memset(pass, 0, pass_sz+1); memcpy(pass, ctx->read_ctx->pass, pass_sz); /* Version 4 - current, no upgrade required, so exit immediately */ rc = sqlcipher_check_connection(db_filename, pass, pass_sz, "", &user_version, &journal_mode); if(rc == SQLITE_OK){ printf("No upgrade required - exiting\n"); goto cleanup; } for(i = 3; i > 0; i--) { pragma_compat = sqlite3_mprintf("PRAGMA cipher_compatibility = %d;", i); rc = sqlcipher_check_connection(db_filename, pass, pass_sz, pragma_compat, &user_version, &journal_mode); if(rc == SQLITE_OK) { CODEC_TRACE("Version %d format found\n", i); goto migrate; } if(pragma_compat) sqlcipher_free(pragma_compat, sqlite3Strlen30(pragma_compat)); pragma_compat = NULL; } /* if we exit the loop normally we failed to determine the version, this is an error */ CODEC_TRACE("Upgrade format not determined\n"); goto handle_error; migrate: temp = sqlite3_mprintf("%s-migrated", db_filename); /* overallocate migrated_db_filename, because sqlite3OsOpen will read past the null terminator * to determine whether the filename was URI formatted */ migrated_db_filename = sqlcipher_malloc(sqlite3Strlen30(temp)+2); memcpy(migrated_db_filename, temp, sqlite3Strlen30(temp)); sqlcipher_free(temp, sqlite3Strlen30(temp)); attach_command = sqlite3_mprintf("ATTACH DATABASE '%s' as migrate KEY '%q';", migrated_db_filename, pass); set_user_version = sqlite3_mprintf("PRAGMA migrate.user_version = %d;", user_version); commands[0] = pragma_compat; commands[1] = "PRAGMA journal_mode = delete;"; /* force journal mode to DELETE, we will set it back later if different */ commands[2] = attach_command; commands[3] = "SELECT sqlcipher_export('migrate');"; commands[4] = set_user_version; for(i = 0; i < ArraySize(commands); i++){ rc = sqlite3_exec(db, commands[i], NULL, NULL, NULL); if(rc != SQLITE_OK){ CODEC_TRACE("migration step %d failed error code %d\n", i, rc); goto handle_error; } } if( !db->autoCommit ){ CODEC_TRACE("cannot migrate from within a transaction"); goto handle_error; } if( db->nVdbeActive>1 ){ CODEC_TRACE("cannot migrate - SQL statements in progress"); goto handle_error; } pDest = db->aDb[0].pBt; pDb = &(db->aDb[db->nDb-1]); pSrc = pDb->pBt; nRes = sqlite3BtreeGetOptimalReserve(pSrc); /* unset the BTS_PAGESIZE_FIXED flag to avoid SQLITE_READONLY */ pDest->pBt->btsFlags &= ~BTS_PAGESIZE_FIXED; rc = sqlite3BtreeSetPageSize(pDest, default_page_size, nRes, 0); CODEC_TRACE("set btree page size to %d res %d rc %d\n", default_page_size, nRes, rc); if( rc!=SQLITE_OK ) goto handle_error; #if defined (SQLCIPHER_PREPROCESSED) extern int sqlite3CodecAttach(sqlite3*, int, const void*, int); extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*); #endif /* SQLCIPHER_PREPROCESSED */ sqlite3CodecGetKey(db, db->nDb - 1, (void**)&keyspec, &keyspec_sz); sqlite3CodecAttach(db, 0, keyspec, keyspec_sz); srcfile = sqlite3PagerFile(pSrc->pBt->pPager); destfile = sqlite3PagerFile(pDest->pBt->pPager); sqlite3OsClose(srcfile); sqlite3OsClose(destfile); #if defined(_WIN32) || defined(SQLITE_OS_WINRT) CODEC_TRACE("performing windows MoveFileExA\n"); w_db_filename_sz = MultiByteToWideChar(CP_UTF8, 0, (LPCCH) db_filename, -1, NULL, 0); w_db_filename = sqlcipher_malloc(w_db_filename_sz * sizeof(wchar_t)); w_db_filename_sz = MultiByteToWideChar(CP_UTF8, 0, (LPCCH) db_filename, -1, (const LPWSTR) w_db_filename, w_db_filename_sz); w_migrated_db_filename_sz = MultiByteToWideChar(CP_UTF8, 0, (LPCCH) migrated_db_filename, -1, NULL, 0); w_migrated_db_filename = sqlcipher_malloc(w_migrated_db_filename_sz * sizeof(wchar_t)); w_migrated_db_filename_sz = MultiByteToWideChar(CP_UTF8, 0, (LPCCH) migrated_db_filename, -1, (const LPWSTR) w_migrated_db_filename, w_migrated_db_filename_sz); if(!MoveFileExW(w_migrated_db_filename, w_db_filename, MOVEFILE_REPLACE_EXISTING)) { CODEC_TRACE("move error"); rc = SQLITE_ERROR; CODEC_TRACE("error occurred while renaming %d\n", rc); goto handle_error; } #else CODEC_TRACE("performing POSIX rename\n"); if ((rc = rename(migrated_db_filename, db_filename)) != 0) { CODEC_TRACE("error occurred while renaming %d\n", rc); goto handle_error; } #endif CODEC_TRACE("renamed migration database %s to main database %s: %d\n", migrated_db_filename, db_filename, rc); rc = sqlite3OsOpen(db->pVfs, migrated_db_filename, srcfile, SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|SQLITE_OPEN_MAIN_DB, &oflags); CODEC_TRACE("reopened migration database: %d\n", rc); if( rc!=SQLITE_OK ) goto handle_error; rc = sqlite3OsOpen(db->pVfs, db_filename, destfile, SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|SQLITE_OPEN_MAIN_DB, &oflags); CODEC_TRACE("reopened main database: %d\n", rc); if( rc!=SQLITE_OK ) goto handle_error; sqlite3pager_reset(pDest->pBt->pPager); CODEC_TRACE("reset pager\n"); rc = sqlite3_exec(db, "DETACH DATABASE migrate;", NULL, NULL, NULL); CODEC_TRACE("DETACH DATABASE called %d\n", rc); if(rc != SQLITE_OK) goto cleanup; rc = sqlite3OsDelete(db->pVfs, migrated_db_filename, 0); CODEC_TRACE("deleted migration database: %d\n", rc); if( rc!=SQLITE_OK ) goto handle_error; sqlite3ResetAllSchemasOfConnection(db); CODEC_TRACE("reset all schemas\n"); set_journal_mode = sqlite3_mprintf("PRAGMA journal_mode = %s;", journal_mode); rc = sqlite3_exec(db, set_journal_mode, NULL, NULL, NULL); CODEC_TRACE("%s: %d\n", set_journal_mode, rc); if( rc!=SQLITE_OK ) goto handle_error; goto cleanup; handle_error: CODEC_TRACE("An error occurred attempting to migrate the database - last error %d\n", rc); rc = SQLITE_ERROR; cleanup: if(pass) sqlcipher_free(pass, pass_sz); if(attach_command) sqlcipher_free(attach_command, sqlite3Strlen30(attach_command)); if(migrated_db_filename) sqlcipher_free(migrated_db_filename, sqlite3Strlen30(migrated_db_filename)); if(set_user_version) sqlcipher_free(set_user_version, sqlite3Strlen30(set_user_version)); if(set_journal_mode) sqlcipher_free(set_journal_mode, sqlite3Strlen30(set_journal_mode)); if(journal_mode) sqlcipher_free(journal_mode, sqlite3Strlen30(journal_mode)); if(pragma_compat) sqlcipher_free(pragma_compat, sqlite3Strlen30(pragma_compat)); #if defined(_WIN32) || defined(SQLITE_OS_WINRT) if(w_db_filename) sqlcipher_free(w_db_filename, w_db_filename_sz); if(w_migrated_db_filename) sqlcipher_free(w_migrated_db_filename, w_migrated_db_filename_sz); #endif return rc; } int sqlcipher_codec_add_random(codec_ctx *ctx, const char *zRight, int random_sz){ const char *suffix = &zRight[random_sz-1]; int n = random_sz - 3; /* adjust for leading x' and tailing ' */ if (n > 0 && sqlite3StrNICmp((const char *)zRight ,"x'", 2) == 0 && sqlite3StrNICmp(suffix, "'", 1) == 0 && n % 2 == 0) { int rc = 0; int buffer_sz = n / 2; unsigned char *random; const unsigned char *z = (const unsigned char *)zRight + 2; /* adjust lead offset of x' */ CODEC_TRACE("sqlcipher_codec_add_random: using raw random blob from hex\n"); random = sqlcipher_malloc(buffer_sz); memset(random, 0, buffer_sz); cipher_hex2bin(z, n, random); rc = ctx->provider->add_random(ctx->provider_ctx, random, buffer_sz); sqlcipher_free(random, buffer_sz); return rc; } return SQLITE_ERROR; } int sqlcipher_codec_fips_status(codec_ctx *ctx) { return ctx->provider->fips_status(ctx->provider_ctx); } const char* sqlcipher_codec_get_provider_version(codec_ctx *ctx) { return ctx->provider->get_provider_version(ctx->provider_ctx); } int sqlcipher_codec_hmac_sha1(const codec_ctx *ctx, const unsigned char *hmac_key, int key_sz, unsigned char* in, int in_sz, unsigned char *in2, int in2_sz, unsigned char *out) { return ctx->provider->hmac(ctx->provider_ctx, SQLCIPHER_HMAC_SHA1, (unsigned char *)hmac_key, key_sz, in, in_sz, in2, in2_sz, out); } #endif /* END SQLCIPHER */
the_stack_data/64199300.c
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<time.h> int main(int argc,char* argv[]){ struct tm* t; time_t timer; int hour=0; int min=0; char cmd[512]={0}; if(argc<4){ puts("Usage : [hour] [min] [execute program](24시간제)"); exit(EXIT_FAILURE); } hour=atoi(argv[1]); min=atoi(argv[2]); sprintf(cmd,"./%s",argv[3]); while(1){ sleep(30); timer=time(0); t=localtime(&timer); if(hour==t->tm_hour && t->tm_min==min){ system(cmd); sleep(60); } } return EXIT_SUCCESS; }
the_stack_data/1235045.c
#include<stdio.h> int main() { printf("Hello World"); }
the_stack_data/45906.c
#include "printf.h" typedef void (*putcf) (void*,char); static putcf stdout_putf; static void* stdout_putp; #ifdef PRINTF_LONG_SUPPORT static void uli2a(unsigned long int num, unsigned int base, int uc,char * bf) { int n=0; unsigned int d=1; while (num/d >= base) d*=base; while (d!=0) { int dgt = num / d; num%=d; d/=base; if (n || dgt>0|| d==0) { *bf++ = dgt+(dgt<10 ? '0' : (uc ? 'A' : 'a')-10); ++n; } } *bf=0; } static void li2a (long num, char * bf) { if (num<0) { num=-num; *bf++ = '-'; } uli2a(num,10,0,bf); } #endif static void ui2a(unsigned int num, unsigned int base, int uc,char * bf) { int n=0; unsigned int d=1; while (num/d >= base) d*=base; while (d!=0) { int dgt = num / d; num%= d; d/=base; if (n || dgt>0 || d==0) { *bf++ = dgt+(dgt<10 ? '0' : (uc ? 'A' : 'a')-10); ++n; } } *bf=0; } static void i2a (int num, char * bf) { if (num<0) { num=-num; *bf++ = '-'; } ui2a(num,10,0,bf); } static int a2d(char ch) { if (ch>='0' && ch<='9') return ch-'0'; else if (ch>='a' && ch<='f') return ch-'a'+10; else if (ch>='A' && ch<='F') return ch-'A'+10; else return -1; } static char a2i(char ch, char** src,int base,int* nump) { char* p= *src; int num=0; int digit; while ((digit=a2d(ch))>=0) { if (digit>base) break; num=num*base+digit; ch=*p++; } *src=p; *nump=num; return ch; } static void putchw(void* putp,putcf putf,int n, char z, char* bf) { char fc=z? '0' : ' '; char ch; char* p=bf; while (*p++ && n > 0) n--; while (n-- > 0) putf(putp,fc); while ((ch= *bf++)) putf(putp,ch); } void tfp_format(void* putp,putcf putf,char *fmt, va_list va) { char bf[12]; char ch; while ((ch=*(fmt++))) { if (ch!='%') putf(putp,ch); else { char lz=0; #ifdef PRINTF_LONG_SUPPORT char lng=0; #endif int w=0; ch=*(fmt++); if (ch=='0') { ch=*(fmt++); lz=1; } if (ch>='0' && ch<='9') { ch=a2i(ch,&fmt,10,&w); } #ifdef PRINTF_LONG_SUPPORT if (ch=='l') { ch=*(fmt++); lng=1; } #endif switch (ch) { case 0: goto abort; case 'u' : { #ifdef PRINTF_LONG_SUPPORT if (lng) uli2a(va_arg(va, unsigned long int),10,0,bf); else #endif ui2a(va_arg(va, unsigned int),10,0,bf); putchw(putp,putf,w,lz,bf); break; } case 'd' : { #ifdef PRINTF_LONG_SUPPORT if (lng) li2a(va_arg(va, unsigned long int),bf); else #endif i2a(va_arg(va, int),bf); putchw(putp,putf,w,lz,bf); break; } case 'x': case 'X' : #ifdef PRINTF_LONG_SUPPORT if (lng) uli2a(va_arg(va, unsigned long int),16,(ch=='X'),bf); else #endif ui2a(va_arg(va, unsigned int),16,(ch=='X'),bf); putchw(putp,putf,w,lz,bf); break; case 'c' : putf(putp,(char)(va_arg(va, int))); break; case 's' : putchw(putp,putf,w,0,va_arg(va, char*)); break; case '%' : putf(putp,ch); default: break; } } } abort:; } void init_printf(void* putp,void (*putf) (void*,char)) { stdout_putf=putf; stdout_putp=putp; } void tfp_printf(char *fmt, ...) { va_list va; va_start(va,fmt); tfp_format(stdout_putp,stdout_putf,fmt,va); va_end(va); } static void putcp(void* p,char c) { *(*((char**)p))++ = c; } void tfp_sprintf(char* s,char *fmt, ...) { va_list va; va_start(va,fmt); tfp_format(&s,putcp,fmt,va); putcp(&s,0); va_end(va); }
the_stack_data/90763063.c
/* file: maketoclines.c G. Moody 29 October 2002 Create TOC entries from man page name lines */ #include <stdio.h> #include <string.h> main() { static char buf[200], *p, *q; while (fgets(buf, sizeof(buf), stdin)) { if ((p = strstr(buf, " \\- ")) == NULL) continue; *p = '\0'; p += 4; if ((q = strstr(p, "\t")) == NULL) continue; *q = '\0'; q++; q[strlen(q) - 1] = '\0'; printf("\\contentsline {section}{\\textbf{%s}: %s}{%s}\n", buf, p, q); } }
the_stack_data/92327697.c
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ /* Plugin declarations */ const char * variables = "library module author description url"; const char * functions = "boot halt grow_seq grow_rnd hit_seq hit_rnd miss_seq miss_rnd delete_seq delete_rnd replace_seq replace_rnd kbench"; /* Plugin definitions */ const char * library = "Python"; const char * module = "python/hashtable"; const char * author = "Don Owens ([email protected])"; const char * description = "hash table implementation bundled with Python (based on cfuhash library)"; const char * url = "http://python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz"; /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */