stb.c
This file
Path
tests/stb.c
3,330 lines · 122.0 KiB · C
Last changed by
Merge branch 'master' into workingSean Barrettbefore adoptiond940053
History of this fileTake it
1/*2 * Unit tests for "stb.h"3 */45#define _CRT_SECURE_NO_WARNINGS6//#include <windows.h>7#include <stdio.h>8#include <string.h>9#include <time.h>10#include <assert.h>11#include <stdlib.h>1213#ifdef _WIN3214#include <crtdbg.h>15#endif1617//#define STB_FASTMALLOC18#ifdef _DEBUG19#define STB_MALLOC_WRAPPER_DEBUG20#endif21#ifndef _M_AMD6422#define STB_NPTR23#endif24#define STB_DEFINE25#include "stb.h"2627//#include "stb_file.h"28//#include "stb_pixel32.h"2930//#define DEBUG_BLOCK31#ifdef DEBUG_BLOCK32#include <conio.h>33#endif3435#ifdef STB_FASTMALLOC36#error "can't use FASTMALLOC with threads"37#endif3839int count;40void c(int truth, char *error)41{42 if (!truth) {43 fprintf(stderr, "Test failed: %s\n", error);44 ++count;45 }46}474849#if 050void show(void)51{52 #ifdef _WIN3253 SYSTEM_INFO x;54 GetSystemInfo(&x);55 printf("%d\n", x.dwPageSize);56 #endif57}58#endif5960void test_classes(void)61{62 unsigned char size_base[32], size_shift[32];63 int class_to_pages[256];64 int class_to_size[256], cl;65 int lg, size, wasted_pages;66 int kAlignShift = 3;67 int kAlignment = 1 << kAlignShift;68 int kMaxSize = 8 * 4096;69 int kPageShift = 12;70 int kPageSize = (1 << kPageShift);71 int next_class = 1;72 int alignshift = kAlignShift;73 int last_lg = -1;7475 for (lg = 0; lg < kAlignShift; lg++) {76 size_base[lg] = 1;77 size_shift[lg] = kAlignShift;78 }7980 for (size = kAlignment; size <= kMaxSize; size += (1 << alignshift)) {81 int lg = stb_log2_floor(size);82 if (lg > last_lg) {83 // Increase alignment every so often.84 //85 // Since we double the alignment every time size doubles and86 // size >= 128, this means that space wasted due to alignment is87 // at most 16/128 i.e., 12.5%. Plus we cap the alignment at 25688 // bytes, so the space wasted as a percentage starts falling for89 // sizes > 2K.90 if ((lg >= 7) && (alignshift < 8)) {91 alignshift++;92 }93 size_base[lg] = next_class - ((size-1) >> alignshift);94 size_shift[lg] = alignshift;95 }9697 class_to_size[next_class] = size;98 last_lg = lg;99100 next_class++;101 }102103 // Initialize the number of pages we should allocate to split into104 // small objects for a given class.105 wasted_pages = 0;106 for (cl = 1; cl < next_class; cl++) {107 // Allocate enough pages so leftover is less than 1/8 of total.108 // This bounds wasted space to at most 12.5%.109 size_t psize = kPageSize;110 const size_t s = class_to_size[cl];111 while ((psize % s) > (psize >> 3)) {112 psize += kPageSize;113 }114 class_to_pages[cl] = (int) (psize >> kPageShift);115 wasted_pages += (int) psize;116 }117118 printf("TCMalloc can waste as much as %d memory on one-shot allocations\n", wasted_pages);119120121 return;122}123124#ifdef STB_STUA125void test_script(void)126{127 stua_run_script(128 "var g = (2+3)*5 + 3*(2+1) + ((7)); \n"129 "func sprint(x) _print(x) _print(' ') x end;\n"130 "func foo(y) var q = func(x) sprint(x) end; q end;\n "131 "var z=foo(5); z(77);\n"132 "func counter(z) func(x) z=z+1 end end\n"133 "var q=counter(0), p=counter(5);\n"134 "sprint(q()) sprint(p()) sprint(q()) sprint(p()) sprint(q()) sprint(p())\n"135 "var x=2222;\n"136 "if 1 == 2 then 3333 else 4444 end; => x; sprint(x);\n"137 "var x1 = sprint(1.5e3); \n"138 "var x2 = sprint(.5); \n"139 "var x3 = sprint(1.); \n"140 "var x4 = sprint(1.e3); \n"141 "var x5 = sprint(1e3); \n"142 "var x6 = sprint(0.5e3); \n"143 "var x7 = sprint(.5e3); \n"144 " func sum(x,y) x+y end \n"145 " func sumfunc(a) sum+{x=a} end \n"146 " var q = sumfunc(3) \n"147 " var p = sumfunc(20) \n"148 " var d = sprint(q(5)) - sprint(q(8)) \n"149 " var e = sprint(p(5)) - sprint(p(8)) \n"150 " func test3(x) \n"151 " sprint(x) \n"152 " x = x+3 \n"153 " sprint(x) \n"154 " x+5 \n"155 " end \n"156 " var y = test3(4); \n"157 " func fib(x) \n"158 " if x < 3 then \n"159 " 1 \n"160 " else \n"161 " fib(x-1) + fib(x-2); \n"162 " end \n"163 " end \n"164 " \n"165 " func fib2(x) \n"166 " var a=1 \n"167 " var b=1 \n"168 " sprint(a) \n"169 " sprint(b) \n"170 " while x > 2 do \n"171 " var c=a+b \n"172 " a=b \n"173 " b=c \n"174 " sprint(b) \n"175 " x=x-1 \n"176 " end \n"177 " b \n"178 " end \n"179 " \n"180 " func assign(z) \n"181 " var y = { 'this', 'is', 'a', 'lame', 'day', 'to', 'die'} \n"182 " y[3] = z \n"183 " var i = 0 \n"184 " while y[i] != nil do \n"185 " sprint(y[i]) \n"186 " i = i+1 \n"187 " end \n"188 " end \n"189 " \n"190 " sprint(fib(12)); \n"191 " assign(\"good\"); \n"192 " fib2(20); \n"193 " sprint('ok'); \n"194 " sprint(-5); \n"195 " // final comment with no newline"196 );197}198#endif199200#ifdef STB_THREADS201extern void __stdcall Sleep(unsigned long);202203void * thread_1(void *x)204{205 Sleep(80);206 printf("thread 1\n"); fflush(stdout);207 return (void *) 2;208}209210void * thread_2(void *y)211{212 stb_work(thread_1, NULL, y);213 Sleep(50);214 printf("thread 2\n"); fflush(stdout);215 return (void *) 3;216}217218stb_semaphore stest;219stb_mutex mutex;220volatile int tc1, tc2;221222void *thread_3(void *p)223{224 stb_mutex_begin(mutex);225 ++tc1;226 stb_mutex_end(mutex);227 stb_sem_waitfor(stest);228 stb_mutex_begin(mutex);229 ++tc2;230 stb_mutex_end(mutex);231 return NULL;232}233234void test_threads(void)235{236 volatile int a=0,b=0;237 //stb_work_numthreads(2);238 stb_work(thread_2, (void *) &a, (void *) &b);239 while (a==0 || b==0) {240 Sleep(10);241 //printf("a=%d b=%d\n", a, b);242 }243 c(a==2 && b == 3, "stb_thread");244 stb_work_numthreads(4);245 stest = stb_sem_new(8);246 mutex = stb_mutex_new();247 stb_work(thread_3, NULL, NULL);248 stb_work(thread_3, NULL, NULL);249 stb_work(thread_3, NULL, NULL);250 stb_work(thread_3, NULL, NULL);251 stb_work(thread_3, NULL, NULL);252 stb_work(thread_3, NULL, NULL);253 stb_work(thread_3, NULL, NULL);254 stb_work(thread_3, NULL, NULL);255 while (tc1 < 4)256 Sleep(10);257 c(tc1 == 4, "stb_work 1");258 stb_sem_release(stest);259 stb_sem_release(stest);260 stb_sem_release(stest);261 stb_sem_release(stest);262 stb_sem_release(stest);263 stb_sem_release(stest);264 stb_sem_release(stest);265 stb_sem_release(stest);266 Sleep(40);267 while (tc1 != 8 || tc2 != 8)268 Sleep(10);269 c(tc1 == 8 && tc2 == 8, "stb_work 2");270 stb_work_numthreads(2);271 stb_work(thread_3, NULL, NULL);272 stb_work(thread_3, NULL, NULL);273 stb_work(thread_3, NULL, NULL);274 stb_work(thread_3, NULL, NULL);275 while (tc1 < 10)276 Sleep(10);277 c(tc1 == 10, "stb_work 1");278 stb_sem_release(stest);279 stb_sem_release(stest);280 stb_sem_release(stest);281 stb_sem_release(stest);282283 Sleep(100);284 stb_sem_delete(stest);285 stb_mutex_delete(mutex);286}287#else288void test_threads(void)289{290}291#endif292293void *thread4(void *p)294{295 return NULL;296}297298#ifdef STB_THREADS299stb_threadqueue *tq;300stb_sync synch;301stb_mutex msum;302303volatile int thread_sum;304305void *consume1(void *p)306{307 volatile int *q = (volatile int *) p;308 for(;;) {309 int z;310 stb_threadq_get_block(tq, &z);311 stb_mutex_begin(msum);312 thread_sum += z;313 *q += z;314 stb_mutex_end(msum);315 stb_sync_reach(synch);316 } 317}318319void test_threads2(void)320{321 int array[256],i,n=0;322 volatile int which[4];323 synch = stb_sync_new();324 stb_sync_set_target(synch,2);325 stb_work_reach(thread4, NULL, NULL, synch);326 stb_sync_reach_and_wait(synch);327 printf("ok\n");328329 tq = stb_threadq_new(4, 1, TRUE,TRUE);330 msum = stb_mutex_new();331 thread_sum = 0;332 stb_sync_set_target(synch, 65);333 for (i=0; i < 4; ++i) {334 which[i] = 0;335 stb_create_thread(consume1, (int *) &which[i]);336 }337 for (i=1; i <= 64; ++i) {338 array[i] = i;339 n += i;340 stb_threadq_add_block(tq, &array[i]);341 }342 stb_sync_reach_and_wait(synch);343 stb_barrier();344 c(thread_sum == n, "stb_threadq 1");345 c(which[0] + which[1] + which[2] + which[3] == n, "stb_threadq 2");346 printf("(Distribution: %d %d %d %d)\n", which[0], which[1], which[2], which[3]);347348 stb_sync_delete(synch);349 stb_threadq_delete(tq);350 stb_mutex_delete(msum);351}352#else353void test_threads2(void)354{355}356#endif357358char tc[] = "testing compression test quick test voila woohoo what the hell";359360unsigned char storage1[1 << 23];361int test_compression(unsigned char *buffer, int length)362{363 unsigned char *storage2;364 int c_len = stb_compress(storage1, buffer, length);365 int dc_len;366 printf("Compressed %d to %d\n", length, c_len);367 dc_len = stb_decompress_length(storage1);368 storage2 = malloc(dc_len);369 dc_len = stb_decompress(storage2, storage1, c_len);370 if (dc_len != length) { free(storage2); return -1; }371 if (memcmp(buffer, storage2, length) != 0) { free(storage2); return -1; }372 free(storage2);373 return c_len;374}375376#if 0377int test_en_compression(char *buffer, int length)378{379 int c_len = stb_en_compress(storage1, buffer, length);380 int dc_len;381 printf("Encompressed %d to %d\n", length, c_len);382 dc_len = stb_en_decompress(storage2, storage1, c_len);383 if (dc_len != length) return -1;384 if (memcmp(buffer, storage2, length) != 0) return -1;385 return c_len;386}387#endif388389#define STR_x "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"390#define STR_y "yyyyyyyyyyyyyyyyyy"391392#define STR_xy STR_x STR_y393#define STR_xyyxy STR_xy STR_y STR_xy394395#define STR_1 "testing"396#define STR_2 STR_xyyxy STR_xy STR_xyyxy STR_xyyxy STR_xy STR_xyyxy397#define STR_3 "buh"398399char buffer[] = STR_1 "\r\n" STR_2 STR_2 STR_2 "\n" STR_3;400char str1[] = STR_1;401char str2[] = STR_2 STR_2 STR_2;402char str3[] = STR_3;403404int sum(short *s)405{406 int i,total=0;407 for (i=0; i < stb_arr_len(s); ++i)408 total += s[i];409 return total;410}411412stb_uint stb_adler32_old(stb_uint adler32, stb_uchar *buffer, stb_uint buflen)413{414 const stb_uint ADLER_MOD = 65521;415 stb_uint s1 = adler32 & 0xffff;416 stb_uint s2 = adler32 >> 16;417418 while (buflen-- > 0) { // NOTE: much faster implementations are possible!419 s1 += *buffer++; if (s1 > ADLER_MOD) s1 -= ADLER_MOD;420 s2 += s1 ; if (s2 > ADLER_MOD) s2 -= ADLER_MOD;421 }422 return (s2 << 16) + s1;423}424425int sample_test[3][5] =426{427 { 1,2,3,4,5 },428 { 6,7,8,9,10, },429 { 11,12,13,14,15 },430};431432typedef struct { unsigned short x,y,z; } struct1;433typedef struct { double a; int x,y,z; } struct2;434435char *args_raw[] = { "foo", "-dxrf", "bar", "-ts" };436char *args[8];437438void do_compressor(int,char**);439void test_sha1(void);440441int alloc_num, alloc_size;442void dumpfunc(void *ptr, int sz, char *file, int line)443{444 printf("%p (%6d) -- %3d:%s\n", ptr, sz, line, file);445 alloc_size += sz;446 alloc_num += 1;447}448449char *expects(stb_matcher *m, char *s, int result, int len, char *str)450{451 int res2,len2=0;452 res2 = stb_lex(m, s, &len2);453 c(result == res2 && len == len2, str);454 return s + len;455}456457void test_lex(void)458{459 stb_matcher *m = stb_lex_matcher();460 // tok_en5 .3 20.1 20. .20 .1461 char *s = "tok_en5.3 20.1 20. .20.1";462463 stb_lex_item(m, "[a-zA-Z_][a-zA-Z0-9_]*", 1 );464 stb_lex_item(m, "[0-9]*\\.?[0-9]*" , 2 );465 stb_lex_item(m, "[\r\n\t ]+" , 3 );466 stb_lex_item(m, "." , -99 );467 s=expects(m,s,1,7, "stb_lex 1");468 s=expects(m,s,2,2, "stb_lex 2");469 s=expects(m,s,3,1, "stb_lex 3");470 s=expects(m,s,2,4, "stb_lex 4");471 s=expects(m,s,3,1, "stb_lex 5");472 s=expects(m,s,2,3, "stb_lex 6");473 s=expects(m,s,3,1, "stb_lex 7");474 s=expects(m,s,2,3, "stb_lex 8");475 s=expects(m,s,2,2, "stb_lex 9");476 s=expects(m,s,0,0, "stb_lex 10");477 stb_matcher_free(m);478}479480typedef struct Btest481{482 struct Btest stb_bst_fields(btest_);483 int v;484} Btest;485486stb_bst(Btest, btest_, BT2,bt2,v, int, a - b)487488void bst_test(void)489{490 Btest *root = NULL, *t;491 int items[500], sorted[500];492 int i,j,z;493 for (z=0; z < 10; ++z) {494 for (i=0; i < 500; ++i)495 items[i] = stb_rand() & 0xfffffff;496497 // check for collisions, and retrry if so498 memcpy(sorted, items, sizeof(sorted));499 qsort(sorted, 500, sizeof(sorted[0]), stb_intcmp(0));500 for (i=1; i < 500; ++i)501 if (sorted[i-1] == sorted[i])502 break;503 if (i != 500) { --z; break; }504505 for (i=0; i < 500; ++i) {506 t = malloc(sizeof(*t));507 t->v = items[i];508 root = btest_insert(root, t);509 #ifdef STB_DEBUG510 btest__validate(root,1);511 #endif512 for (j=0; j <= i; ++j)513 c(btest_find(root, items[j]) != NULL, "stb_bst 1");514 for ( ; j < 500; ++j)515 c(btest_find(root, items[j]) == NULL, "stb_bst 2");516 }517518 t = btest_first(root);519 for (i=0; i < 500; ++i)520 t = btest_next(root,t);521 c(t == NULL, "stb_bst 5");522 t = btest_last(root);523 for (i=0; i < 500; ++i)524 t = btest_prev(root,t);525 c(t == NULL, "stb_bst 6");526527 memcpy(sorted, items, sizeof(sorted));528 qsort(sorted, 500, sizeof(sorted[0]), stb_intcmp(0));529 t = btest_first(root);530 for (i=0; i < 500; ++i) {531 assert(t->v == sorted[i]);532 t = btest_next(root, t);533 }534 assert(t == NULL);535536 if (z==1)537 stb_reverse(items, 500, sizeof(items[0]));538 else if (z)539 stb_shuffle(items, 500, sizeof(items[0]), stb_rand());540541 for (i=0; i < 500; ++i) {542 t = btest_find(root, items[i]);543 assert(t != NULL);544 root = btest_remove(root, t);545 c(btest_find(root, items[i]) == NULL, "stb_bst 5");546 #ifdef STB_DEBUG547 btest__validate(root, 1);548 #endif549 for (j=0; j <= i; ++j)550 c(btest_find(root, items[j]) == NULL, "stb_bst 3");551 for ( ; j < 500; ++j)552 c(btest_find(root, items[j]) != NULL, "stb_bst 4");553 free(t);554 }555 }556}557558extern void stu_uninit(void);559560stb_define_sort(sort_int, int, *a < *b)561562stb_rand_define(prime_rand, 1)563void test_packed_floats(void);564void test_parser_generator(void);565566void rec_print(stb_dirtree2 *d, int depth)567{568 int i;569 for (i=0; i < depth; ++i) printf(" ");570 printf("%s (%d)\n", d->relpath, stb_arr_len(d->files));571 for (i=0; i < stb_arr_len(d->subdirs); ++i)572 rec_print(d->subdirs[i], depth+1);573 d->weight = (float) stb_arr_len(d->files);574}575576#ifdef MAIN_TEST577int main(int argc, char **argv)578{579 char *z;580 stb__wchar buffer7[1024],buffer9[1024];581 char buffer8[4096];582 FILE *f;583 char *p1 = "foo/bar\\baz/test.xyz";584 char *p2 = "foo/.bar";585 char *p3 = "foo.bar";586 char *p4 = "foo/bar";587 char *wildcards[] = { "*foo*", "*bar", "baz", "*1*2*3*", "*/CVS/repository", "*oof*" };588 char **s;589 char buf[256], *p;590 int n,len2,*q,i;591 stb_matcher *mt=NULL;592593 if (argc > 1) {594 do_compressor(argc,argv);595 return 0;596 }597 test_classes();598 //show();599600 //stb_malloc_check_counter(2,2);601 //_CrtSetBreakAlloc(10398);602603 stbprint("Checking {!if} the {$fancy} print function {#works}? - should\n");604 stbprint(" - align\n");605 stbprint("But {#3this}} {one}} - shouldn't\n");606607 #if 0608 {609 int i;610 char **s = stb_readdir_recursive("/sean", NULL);611 stb_dirtree *d = stb_dirtree_from_files_relative("", s, stb_arr_len(s));612 stb_dirtree **e;613 rec_print(d, 0);614 e = stb_summarize_tree(d,12,4);615 for (i=0; i < stb_arr_len(e); ++i) {616 printf("%s\n", e[i]->fullpath);617 }618 stb_arr_free(e);619620 stb_fatal("foo");621 }622 #endif623624 stb_("Started stb.c");625 test_threads2();626 test_threads();627628 for (i=0; i < 1023 && 5+77*i < 0xd800; ++i)629 buffer7[i] = 5+77*i;630 buffer7[i++] = 0xd801;631 buffer7[i++] = 0xdc02;632 buffer7[i++] = 0xdbff;633 buffer7[i++] = 0xdfff;634 buffer7[i] = 0;635 p = stb_to_utf8(buffer8, buffer7, sizeof(buffer8));636 c(p != NULL, "stb_to_utf8");637 if (p != NULL) {638 stb_from_utf8(buffer9, buffer8, sizeof(buffer9)/2);639 c(!memcmp(buffer7, buffer9, i*2), "stb_from_utf8");640 }641642 z = "foo.*[bd]ak?r";643 c( stb_regex(z, "muggle man food is barfy") == 1, "stb_regex 1");644 c( stb_regex("foo.*bar", "muggle man food is farfy") == 0, "stb_regex 2");645 c( stb_regex("[^a-zA-Z]foo[^a-zA-Z]", "dfoobar xfood") == 0, "stb_regex 3");646 c( stb_regex(z, "muman foob is bakrfy") == 1, "stb_regex 4");647 z = "foo.*[bd]bk?r";648 c( stb_regex(z, "muman foob is bakrfy") == 0, "stb_regex 5");649 c( stb_regex(z, "muman foob is bbkrfy") == 1, "stb_regex 6");650651 stb_regex(NULL,NULL);652653 #if 0654 test_parser_generator();655 stb_wrapper_listall(dumpfunc);656 if (alloc_num) 657 printf("Memory still in use: %d allocations of %d bytes.\n", alloc_num, alloc_size);658 #endif659660 test_script();661 p = stb_file("sieve.stua", NULL);662 if (p) {663 stua_run_script(p); 664 free(p);665 }666 stua_uninit();667668 //stb_wrapper_listall(dumpfunc);669 printf("Memory still in use: %d allocations of %d bytes.\n", alloc_num, alloc_size);670671 c(stb_alloc_count_alloc == stb_alloc_count_free, "stb_alloc 0");672673 bst_test();674675 c(stb_alloc_count_alloc == stb_alloc_count_free, "stb_alloc 0");676677#if 0678 // stb_block679 {680 int inuse=0, freespace=0;681 int *x = malloc(10000*sizeof(*x));682 stb_block *b = stb_block_new(1, 10000);683 #define BLOCK_COUNT 1000684 int *p = malloc(sizeof(*p) * BLOCK_COUNT);685 int *l = malloc(sizeof(*l) * BLOCK_COUNT);686 int i, n, k = 0;687688 memset(x, 0, 10000 * sizeof(*x));689690 n = 0;691 while (n < BLOCK_COUNT && k < 1000) {692 l[n] = 16 + (rand() & 31);693 p[n] = stb_block_alloc(b, l[n], 0);694 if (p[n] == 0)695 break;696 inuse += l[n];697698 freespace = 0;699 for (i=0; i < b->len; ++i)700 freespace += b->freelist[i].len;701 assert(freespace + inuse == 9999);702703 for (i=0; i < l[n]; ++i)704 x[ p[n]+i ] = p[n];705 ++n;706707 if (k > 20) {708 int sz;709 i = (stb_rand() % n);710 sz = l[i];711 stb_block_free(b, p[i], sz);712 inuse -= sz;713 p[i] = p[n-1];714 l[i] = l[n-1];715 --n;716717 freespace = 0;718 for (i=0; i < b->len; ++i)719 freespace += b->freelist[i].len;720 assert(freespace + inuse == 9999);721 }722723724 ++k;725726 // validate727 if ((k % 50) == 0) {728 int j;729 for (j=0; j < n; ++j) {730 for (i=0; i < l[j]; ++i)731 assert(x[ p[j]+i ] == p[j]);732 }733 }734735 if ((k % 200) == 0) {736 stb_block_compact_freelist(b);737 }738 }739740 for (i=0; i < n; ++i)741 stb_block_free(b, p[i], l[i]);742743 stb_block_destroy(b);744 free(p);745 free(l);746 free(x);747 }748749 blockfile_test();750#endif751752 mt = stb_lex_matcher();753 for (i=0; i < 5; ++i)754 stb_lex_item_wild(mt, wildcards[i], i+1);755756 c(1==stb_lex(mt, "this is a foo in the middle",NULL), "stb_matcher_match 1");757 c(0==stb_lex(mt, "this is a bar in the middle",NULL), "stb_matcher_match 2");758 c(0==stb_lex(mt, "this is a baz in the middle",NULL), "stb_matcher_match 3");759 c(2==stb_lex(mt, "this is a bar",NULL), "stb_matcher_match 4");760 c(0==stb_lex(mt, "this is a baz",NULL), "stb_matcher_match 5");761 c(3==stb_lex(mt, "baz",NULL), "stb_matcher_match 6");762 c(4==stb_lex(mt, "1_2_3_4",NULL), "stb_matcher_match 7");763 c(0==stb_lex(mt, "1 3 3 3 3 2 ",NULL), "stb_matcher_match 8");764 c(4==stb_lex(mt, "1 3 3 3 2 3 ",NULL), "stb_matcher_match 9");765 c(5==stb_lex(mt, "C:/sean/prj/old/gdmag/mipmap/hqp/adol-c/CVS/Repository",NULL), "stb_matcher_match 10");766 stb_matcher_free(mt);767768 {769 #define SSIZE 500000770 static int arr[SSIZE],arr2[SSIZE];771 int i,good;772 for (i=0; i < SSIZE; ++i)773 arr2[i] = stb_rand();774 memcpy(arr,arr2,sizeof(arr));775 printf("stb_define_sort:\n");776 sort_int(arr, SSIZE);777 good = 1;778 for (i=0; i+1 < SSIZE; ++i)779 if (arr[i] > arr[i+1])780 good = 0;781 c(good, "stb_define_sort");782 printf("qsort:\n");783 qsort(arr2, SSIZE, sizeof(arr2[0]), stb_intcmp(0));784 printf("done\n");785 // check for bugs786 memset(arr, 0, sizeof(arr[0]) * 1000);787 sort_int(arr, 1000);788 }789790791 c(stb_alloc_count_alloc == stb_alloc_count_free, "stb_alloc -2");792793 c( stb_is_prime( 2), "stb_is_prime 1");794 c( stb_is_prime( 3), "stb_is_prime 2");795 c( stb_is_prime( 5), "stb_is_prime 3");796 c( stb_is_prime( 7), "stb_is_prime 4");797 c(!stb_is_prime( 9), "stb_is_prime 5");798 c( stb_is_prime(11), "stb_is_prime 6");799 c(!stb_is_prime(25), "stb_is_prime 7");800 c(!stb_is_prime(27), "stb_is_prime 8");801 c( stb_is_prime(29), "stb_is_prime 9");802 c( stb_is_prime(31), "stb_is_prime a");803 c(!stb_is_prime(33), "stb_is_prime b");804 c(!stb_is_prime(35), "stb_is_prime c");805 c(!stb_is_prime(36), "stb_is_prime d");806807 for (n=7; n < 64; n += 3) {808 int i;809 stb_perfect s;810 unsigned int *p = malloc(n * sizeof(*p));811 for (i=0; i < n; ++i)812 p[i] = i*i;813 c(stb_perfect_create(&s, p, n), "stb_perfect_hash 1");814 stb_perfect_destroy(&s);815 for (i=0; i < n; ++i)816 p[i] = stb_rand();817 c(stb_perfect_create(&s, p, n), "stb_perfect_hash 2");818 stb_perfect_destroy(&s);819 for (i=0; i < n; ++i)820 p[i] = (0x80000000 >> stb_log2_ceil(n>>1)) * i;821 c(stb_perfect_create(&s, p, n), "stb_perfect_hash 2");822 stb_perfect_destroy(&s);823 for (i=0; i < n; ++i)824 p[i] = (int) malloc(1024);825 c(stb_perfect_create(&s, p, n), "stb_perfect_hash 3");826 stb_perfect_destroy(&s);827 for (i=0; i < n; ++i)828 free((void *) p[i]);829 free(p);830 }831 printf("Maximum attempts required to find perfect hash: %d\n",832 stb_perfect_hash_max_failures);833834 p = "abcdefghijklmnopqrstuvwxyz";835 c(stb_ischar('c', p), "stb_ischar 1");836 c(stb_ischar('x', p), "stb_ischar 2");837 c(!stb_ischar('#', p), "stb_ischar 3");838 c(!stb_ischar('X', p), "stb_ischar 4");839 p = "0123456789";840 c(!stb_ischar('c', p), "stb_ischar 5");841 c(!stb_ischar('x', p), "stb_ischar 6");842 c(!stb_ischar('#', p), "stb_ischar 7");843 c(!stb_ischar('X', p), "stb_ischar 8");844 p = "#####";845 c(!stb_ischar('c', p), "stb_ischar a");846 c(!stb_ischar('x', p), "stb_ischar b");847 c(stb_ischar('#', p), "stb_ischar c");848 c(!stb_ischar('X', p), "stb_ischar d");849 p = "xXyY";850 c(!stb_ischar('c', p), "stb_ischar e");851 c(stb_ischar('x', p), "stb_ischar f");852 c(!stb_ischar('#', p), "stb_ischar g");853 c(stb_ischar('X', p), "stb_ischar h");854855 c(stb_alloc_count_alloc == stb_alloc_count_free, "stb_alloc 1");856857 q = stb_wordwrapalloc(15, "How now brown cow. Testinglishously. Okey dokey");858 // How now brown859 // cow. Testinglis860 // hously. Okey861 // dokey862 c(stb_arr_len(q) == 8, "stb_wordwrap 8");863 c(q[2] == 14 && q[3] == 15, "stb_wordwrap 9");864 c(q[4] == 29 && q[5] == 12, "stb_wordwrap 10");865 stb_arr_free(q);866867 q = stb_wordwrapalloc(20, "How now brown cow. Testinglishously. Okey dokey");868 // How now brown cow.869 // Testinglishously.870 // Okey dokey871 c(stb_arr_len(q) == 6, "stb_wordwrap 1");872 c(q[0] == 0 && q[1] == 18, "stb_wordwrap 2");873 c(q[2] == 19 && q[3] == 17, "stb_wordwrap 3");874 c(q[4] == 37 && q[5] == 10, "stb_wordwrap 4");875 stb_arr_free(q);876877 q = stb_wordwrapalloc(12, "How now brown cow. Testinglishously. Okey dokey");878 // How now879 // brown cow.880 // Testinglisho881 // usly. Okey882 // dokey883 c(stb_arr_len(q) == 10, "stb_wordwrap 5");884 c(q[4] == 19 && q[5] == 12, "stb_wordwrap 6");885 c(q[6] == 31 && q[3] == 10, "stb_wordwrap 7");886 stb_arr_free(q);887888 //test_script();889890 //test_packed_floats();891892 c(stb_alloc_count_alloc == stb_alloc_count_free, "stb_alloc 0");893 if (stb_alloc_count_alloc != stb_alloc_count_free) {894 printf("%d allocs, %d frees\n", stb_alloc_count_alloc, stb_alloc_count_free);895 }896 test_lex();897898 mt = stb_regex_matcher(".*foo.*bar.*");899 c(stb_matcher_match(mt, "foobarx") == 1, "stb_matcher_match 1");900 c(stb_matcher_match(mt, "foobar") == 1, "stb_matcher_match 2");901 c(stb_matcher_match(mt, "foo bar") == 1, "stb_matcher_match 3");902 c(stb_matcher_match(mt, "fo foo ba ba bar ba") == 1, "stb_matcher_match 4");903 c(stb_matcher_match(mt, "fo oo oo ba ba bar foo") == 0, "stb_matcher_match 5");904 stb_free(mt);905906 mt = stb_regex_matcher(".*foo.?bar.*");907 c(stb_matcher_match(mt, "abfoobarx") == 1, "stb_matcher_match 6");908 c(stb_matcher_match(mt, "abfoobar") == 1, "stb_matcher_match 7");909 c(stb_matcher_match(mt, "abfoo bar") == 1, "stb_matcher_match 8");910 c(stb_matcher_match(mt, "abfoo bar") == 0, "stb_matcher_match 9");911 c(stb_matcher_match(mt, "abfo foo ba ba bar ba") == 0, "stb_matcher_match 10");912 c(stb_matcher_match(mt, "abfo oo oo ba ba bar foo") == 0, "stb_matcher_match 11");913 stb_free(mt);914915 mt = stb_regex_matcher(".*m((foo|bar)*baz)m.*");916 c(stb_matcher_match(mt, "abfoobarx") == 0, "stb_matcher_match 12");917 c(stb_matcher_match(mt, "a mfoofoofoobazm d") == 1, "stb_matcher_match 13");918 c(stb_matcher_match(mt, "a mfoobarbazfoom d") == 0, "stb_matcher_match 14");919 c(stb_matcher_match(mt, "a mbarbarfoobarbazm d") == 1, "stb_matcher_match 15");920 c(stb_matcher_match(mt, "a mfoobarfoo bazm d") == 0, "stb_matcher_match 16");921 c(stb_matcher_match(mt, "a mm foobarfoobarfoobar ") == 0, "stb_matcher_match 17");922 stb_free(mt);923924 mt = stb_regex_matcher("f*|z");925 c(stb_matcher_match(mt, "fz") == 0, "stb_matcher_match 0a");926 c(stb_matcher_match(mt, "ff") == 1, "stb_matcher_match 0b");927 c(stb_matcher_match(mt, "z") == 1, "stb_matcher_match 0c");928 stb_free(mt);929930 mt = stb_regex_matcher("m(f|z*)n");931 c(stb_matcher_match(mt, "mfzn") == 0, "stb_matcher_match 0d");932 c(stb_matcher_match(mt, "mffn") == 0, "stb_matcher_match 0e");933 c(stb_matcher_match(mt, "mzn") == 1, "stb_matcher_match 0f");934 c(stb_matcher_match(mt, "mn") == 1, "stb_matcher_match 0g");935 c(stb_matcher_match(mt, "mzfn") == 0, "stb_matcher_match 0f");936937 c(stb_matcher_find(mt, "manmanmannnnnnnmmmmmmmmm ") == 0, "stb_matcher_find 1");938 c(stb_matcher_find(mt, "manmanmannnnnnnmmmmmmmmm ") == 0, "stb_matcher_find 2");939 c(stb_matcher_find(mt, "manmanmannnnnnnmmmmmmmmmffzzz ") == 0, "stb_matcher_find 3");940 c(stb_matcher_find(mt, "manmanmannnnnnnmmmmmmmmmnfzzz ") == 1, "stb_matcher_find 4");941 c(stb_matcher_find(mt, "mmmfn aanmannnnnnnmmmmmm fzzz ") == 1, "stb_matcher_find 5");942 c(stb_matcher_find(mt, "mmmzzn anmannnnnnnmmmmmm fzzz ") == 1, "stb_matcher_find 6");943 c(stb_matcher_find(mt, "mm anmannnnnnnmmmmmm fzmzznzz ") == 1, "stb_matcher_find 7");944 c(stb_matcher_find(mt, "mm anmannnnnnnmmmmmm fzmzzfnzz ") == 0, "stb_matcher_find 8");945 c(stb_matcher_find(mt, "manmfnmannnnnnnmmmmmmmmmffzzz ") == 1, "stb_matcher_find 9");946 stb_free(mt);947948 mt = stb_regex_matcher(".*m((foo|bar)*|baz)m.*");949 c(stb_matcher_match(mt, "abfoobarx") == 0, "stb_matcher_match 18");950 c(stb_matcher_match(mt, "a mfoofoofoobazm d") == 0, "stb_matcher_match 19");951 c(stb_matcher_match(mt, "a mfoobarbazfoom d") == 0, "stb_matcher_match 20");952 c(stb_matcher_match(mt, "a mbazm d") == 1, "stb_matcher_match 21");953 c(stb_matcher_match(mt, "a mfoobarfoom d") == 1, "stb_matcher_match 22");954 c(stb_matcher_match(mt, "a mm foobarfoobarfoobar ") == 1, "stb_matcher_match 23");955 stb_free(mt);956957 mt = stb_regex_matcher("[a-fA-F]..[^]a-zA-Z]");958 c(stb_matcher_match(mt, "Axx1") == 1, "stb_matcher_match 24");959 c(stb_matcher_match(mt, "Fxx1") == 1, "stb_matcher_match 25");960 c(stb_matcher_match(mt, "Bxx]") == 0, "stb_matcher_match 26");961 c(stb_matcher_match(mt, "Cxxz") == 0, "stb_matcher_match 27");962 c(stb_matcher_match(mt, "gxx[") == 0, "stb_matcher_match 28");963 c(stb_matcher_match(mt, "-xx0") == 0, "stb_matcher_match 29");964 stb_free(mt);965966 c(stb_wildmatch("foo*bar", "foobarx") == 0, "stb_wildmatch 0a");967 c(stb_wildmatch("foo*bar", "foobar") == 1, "stb_wildmatch 1a");968 c(stb_wildmatch("foo*bar", "foo bar") == 1, "stb_wildmatch 2a");969 c(stb_wildmatch("foo*bar", "fo foo ba ba bar ba") == 0, "stb_wildmatch 3a");970 c(stb_wildmatch("foo*bar", "fo oo oo ba ba ar foo") == 0, "stb_wildmatch 4a");971972 c(stb_wildmatch("*foo*bar*", "foobar") == 1, "stb_wildmatch 1b");973 c(stb_wildmatch("*foo*bar*", "foo bar") == 1, "stb_wildmatch 2b");974 c(stb_wildmatch("*foo*bar*", "fo foo ba ba bar ba") == 1, "stb_wildmatch 3b");975 c(stb_wildmatch("*foo*bar*", "fo oo oo ba ba ar foo") == 0, "stb_wildmatch 4b");976977 c(stb_wildmatch("foo*bar*", "foobarx") == 1, "stb_wildmatch 1c");978 c(stb_wildmatch("foo*bar*", "foobabar") == 1, "stb_wildmatch 2c");979 c(stb_wildmatch("foo*bar*", "fo foo ba ba bar ba") == 0, "stb_wildmatch 3c");980 c(stb_wildmatch("foo*bar*", "fo oo oo ba ba ar foo") == 0, "stb_wildmatch 4c");981982 c(stb_wildmatch("*foo*bar", "foobar") == 1, "stb_wildmatch 1d");983 c(stb_wildmatch("*foo*bar", "foo bar") == 1, "stb_wildmatch 2d");984 c(stb_wildmatch("*foo*bar", "fo foo ba ba bar ba") == 0, "stb_wildmatch 3d");985 c(stb_wildmatch("*foo*bar", "fo oo oo ba ba ar foo") == 0, "stb_wildmatch 4d");986987 c(stb_wildfind("foo*bar", "xyfoobarx") == 2, "stb_wildfind 0a");988 c(stb_wildfind("foo*bar", "aaafoobar") == 3, "stb_wildfind 1a");989 c(stb_wildfind("foo*bar", "foo bar") == 0, "stb_wildfind 2a");990 c(stb_wildfind("foo*bar", "fo foo ba ba bar ba") == 3, "stb_wildfind 3a");991 c(stb_wildfind("foo*bar", "fo oo oo ba ba ar foo") == -1, "stb_wildfind 4a");992993 c(stb_wildmatch("*foo*;*bar*", "foobar") == 1, "stb_wildmatch 1e");994 c(stb_wildmatch("*foo*;*bar*", "afooa") == 1, "stb_wildmatch 2e");995 c(stb_wildmatch("*foo*;*bar*", "abara") == 1, "stb_wildmatch 3e");996 c(stb_wildmatch("*foo*;*bar*", "abaza") == 0, "stb_wildmatch 4e");997 c(stb_wildmatch("*foo*;*bar*", "foboar") == 0, "stb_wildmatch 5e");998999 test_sha1();10001001 n = sizeof(args_raw)/sizeof(args_raw[0]);1002 memcpy(args, args_raw, sizeof(args_raw));1003 s = stb_getopt(&n, args);1004 c(n >= 1 && !strcmp(args[1], "bar" ), "stb_getopt 1");1005 c(stb_arr_len(s) >= 2 && !strcmp(s[2] , "r" ), "stb_getopt 2");1006 stb_getopt_free(s);10071008 n = sizeof(args_raw)/sizeof(args_raw[0]);1009 memcpy(args, args_raw, sizeof(args_raw));1010 s = stb_getopt_param(&n, args, "f");1011 c(stb_arr_len(s) >= 3 && !strcmp(s[3] , "fbar"), "stb_getopt 3");1012 stb_getopt_free(s);10131014 n = sizeof(args_raw)/sizeof(args_raw[0]);1015 memcpy(args, args_raw, sizeof(args_raw));1016 s = stb_getopt_param(&n, args, "x");1017 c(stb_arr_len(s) >= 2 && !strcmp(s[1] , "xrf" ), "stb_getopt 4");1018 stb_getopt_free(s);10191020 n = sizeof(args_raw)/sizeof(args_raw[0]);1021 memcpy(args, args_raw, sizeof(args_raw));1022 s = stb_getopt_param(&n, args, "s");1023 c(s == NULL && n == 0 , "stb_getopt 5");1024 stb_getopt_free(s);10251026#if 01027 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, -1, -1) == 1, "stb_csample_int 1");1028 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, 1, -3) == 2, "stb_csample_int 2");1029 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, 12, -2) == 5, "stb_csample_int 3");1030 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, 15, 1) == 10, "stb_csample_int 4");1031 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, 5, 4) == 15, "stb_csample_int 5");1032 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, 3, 3) == 14, "stb_csample_int 6");1033 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, -2, 5) == 11, "stb_csample_int 7");1034 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, -7, 0) == 1, "stb_csample_int 8");1035 c(*stb_csample_int(sample_test[0], 1, 5, 5, 3, 2, 1) == 8, "stb_csample_int 9");1036#endif10371038 c(!strcmp(stb_splitpath(buf, p1, STB_PATH ), "foo/bar\\baz/"), "stb_splitpath 1");1039 c(!strcmp(stb_splitpath(buf, p1, STB_FILE ), "test"), "stb_splitpath 2");1040 c(!strcmp(stb_splitpath(buf, p1, STB_EXT ), ".xyz"), "stb_splitpath 3");1041 c(!strcmp(stb_splitpath(buf, p1, STB_PATH_FILE ), "foo/bar\\baz/test"), "stb_splitpath 4");1042 c(!strcmp(stb_splitpath(buf, p1, STB_FILE_EXT ), "test.xyz"), "stb_splitpath 5");10431044 c(!strcmp(stb_splitpath(buf, p2, STB_PATH ), "foo/"), "stb_splitpath 6");1045 c(!strcmp(stb_splitpath(buf, p2, STB_FILE ), ""), "stb_splitpath 7");1046 c(!strcmp(stb_splitpath(buf, p2, STB_EXT ), ".bar"), "stb_splitpath 8");1047 c(!strcmp(stb_splitpath(buf, p2, STB_PATH_FILE ), "foo/"), "stb_splitpath 9");1048 c(!strcmp(stb_splitpath(buf, p2, STB_FILE_EXT ), ".bar"), "stb_splitpath 10");10491050 c(!strcmp(stb_splitpath(buf, p3, STB_PATH ), "./"), "stb_splitpath 11");1051 c(!strcmp(stb_splitpath(buf, p3, STB_FILE ), "foo"), "stb_splitpath 12");1052 c(!strcmp(stb_splitpath(buf, p3, STB_EXT ), ".bar"), "stb_splitpath 13");1053 c(!strcmp(stb_splitpath(buf, p3, STB_PATH_FILE ), "foo"), "stb_splitpath 14");10541055 c(!strcmp(stb_splitpath(buf, p4, STB_PATH ), "foo/"), "stb_splitpath 16");1056 c(!strcmp(stb_splitpath(buf, p4, STB_FILE ), "bar"), "stb_splitpath 17");1057 c(!strcmp(stb_splitpath(buf, p4, STB_EXT ), ""), "stb_splitpath 18");1058 c(!strcmp(stb_splitpath(buf, p4, STB_PATH_FILE ), "foo/bar"), "stb_splitpath 19");1059 c(!strcmp(stb_splitpath(buf, p4, STB_FILE_EXT ), "bar"), "stb_splitpath 20");10601061 c(!strcmp(p=stb_dupreplace("testfootffooo foo fox", "foo", "brap"), "testbraptfbrapo brap fox"), "stb_dupreplace 1"); free(p);1062 c(!strcmp(p=stb_dupreplace("testfootffooo foo fox", "foo", "" ), "testtfo fox" ), "stb_dupreplace 2"); free(p);1063 c(!strcmp(p=stb_dupreplace("abacab", "a", "aba"), "abababacabab" ), "stb_dupreplace 3"); free(p);106410651066#if 01067 m = stb_mml_parse("<a><b><c>x</c><d>y</d></b><e><&f></e></a>");1068 c(m != NULL, "stb_mml_parse 1");1069 if (m) {1070 c(!strcmp(m->child[0]->child[0]->child[1]->tag, "d"), "stb_mml_parse 2");1071 c(!strcmp(m->child[0]->child[1]->leaf_data, "<&f>"), "stb_mml_parse 3");1072 }1073 if (m)1074 stb_mml_free(m);1075 c(stb_alloc_count_alloc == stb_alloc_count_free, "stb_alloc 1");1076 if (stb_alloc_count_alloc != stb_alloc_count_free) {1077 printf("%d allocs, %d frees\n", stb_alloc_count_alloc, stb_alloc_count_free);1078 }1079#endif10801081 c(stb_linear_remap(3.0f,0,8,1,2) == 1.375, "stb_linear_remap()");10821083 c(stb_bitreverse(0x1248fec8) == 0x137f1248, "stb_bitreverse() 1");1084 c(stb_bitreverse8(0x4e) == 0x72, "stb_bitreverse8() 1");1085 c(stb_bitreverse8(0x31) == 0x8c, "stb_bitreverse8() 2");1086 for (n=1; n < 255; ++n) {1087 unsigned int m = stb_bitreverse8((uint8) n);1088 c(stb_bitreverse8((uint8) m) == (unsigned int) n, "stb_bitreverse8() 3");1089 }10901091 for (n=2; n <= 31; ++n) {1092 c(stb_is_pow2 ((1 << n) ) == 1 , "stb_is_pow2() 1");1093 c(stb_is_pow2 ((1 << n)+1) == 0 , "stb_is_pow2() 2");1094 c(stb_is_pow2 ((1 << n)-1) == 0 , "stb_is_pow2() 3");10951096 c(stb_log2_floor((1 << n) ) == n , "stb_log2_floor() 1");1097 c(stb_log2_floor((1 << n)+1) == n , "stb_log2_floor() 2");1098 c(stb_log2_floor((1 << n)-1) == n-1, "stb_log2_floor() 3");10991100 c(stb_log2_ceil ((1 << n) ) == n , "stb_log2_ceil() 1");1101 c(stb_log2_ceil ((1 << n)+1) == n+1, "stb_log2_ceil() 2");1102 c(stb_log2_ceil ((1 << n)-1) == n , "stb_log2_ceil() 3");11031104 c(stb_bitreverse(1 << n) == 1U << (31-n), "stb_bitreverse() 2");1105 }11061107 c(stb_log2_floor(0) == -1, "stb_log2_floor() 4");1108 c(stb_log2_ceil (0) == -1, "stb_log2_ceil () 4");11091110 c(stb_log2_floor(-1) == 31, "stb_log2_floor() 5");1111 c(stb_log2_ceil (-1) == 32, "stb_log2_ceil () 5");11121113 c(stb_bitcount(0xffffffff) == 32, "stb_bitcount() 1");1114 c(stb_bitcount(0xaaaaaaaa) == 16, "stb_bitcount() 2");1115 c(stb_bitcount(0x55555555) == 16, "stb_bitcount() 3");1116 c(stb_bitcount(0x00000000) == 0, "stb_bitcount() 4");11171118 c(stb_lowbit8(0xf0) == 4, "stb_lowbit8 1");1119 c(stb_lowbit8(0x10) == 4, "stb_lowbit8 2");1120 c(stb_lowbit8(0xf3) == 0, "stb_lowbit8 3");1121 c(stb_lowbit8(0xf8) == 3, "stb_lowbit8 4");1122 c(stb_lowbit8(0x60) == 5, "stb_lowbit8 5");11231124 for (n=0; n < sizeof(buf); ++n)1125 buf[n] = 0;11261127 for (n = 0; n < 200000; ++n) {1128 unsigned int k = stb_rand();1129 int i,z=0;1130 for (i=0; i < 32; ++i)1131 if (k & (1 << i)) ++z;1132 c(stb_bitcount(k) == z, "stb_bitcount() 5");11331134 buf[k >> 24] = 1;11351136 if (k != 0) {1137 if (stb_is_pow2(k)) {1138 c(stb_log2_floor(k) == stb_log2_ceil(k), "stb_is_pow2() 1");1139 c(k == 1U << stb_log2_floor(k), "stb_is_pow2() 2");1140 } else {1141 c(stb_log2_floor(k) == stb_log2_ceil(k)-1, "stb_is_pow2() 3");1142 }1143 }11441145 c(stb_bitreverse(stb_bitreverse(n)) == (uint32) n, "stb_bitreverse() 3");1146 }11471148 // make sure reasonable coverage from stb_rand()1149 for (n=0; n < sizeof(buf); ++n)1150 c(buf[n] != 0, "stb_rand()");11511152 for (n=0; n < sizeof(buf); ++n)1153 buf[n] = 0;11541155 for (n=0; n < 60000; ++n) {1156 float z = (float) stb_frand();1157 int n = (int) (z * sizeof(buf));1158 c(z >= 0 && z < 1, "stb_frand() 1");1159 c(n >= 0 && n < sizeof(buf), "stb_frand() 2");1160 buf[n] = 1;1161 }11621163 // make sure reasonable coverage from stb_frand(),1164 // e.g. that the range remap isn't incorrect1165 for (n=0; n < sizeof(buf); ++n)1166 c(buf[n] != 0, "stb_frand()");1167 11681169 // stb_arr1170 {1171 short *s = NULL;11721173 c(sum(s) == 0, "stb_arr 1");11741175 stb_arr_add(s); s[0] = 3;1176 stb_arr_push(s,7);11771178 c( stb_arr_valid(s,1), "stb_arr 2");1179 c(!stb_arr_valid(s,2), "stb_arr 3");11801181 // force a realloc1182 stb_arr_push(s,0);1183 stb_arr_push(s,0);1184 stb_arr_push(s,0);1185 stb_arr_push(s,0);11861187 c(sum(s) == 10, "stb_arr 4");1188 stb_arr_push(s,0);1189 s[0] = 1; s[1] = 5; s[2] = 20;1190 c(sum(s) == 26, "stb_arr 5");1191 stb_arr_setlen(s,2);1192 c(sum(s) == 6, "stb_arr 6");1193 stb_arr_setlen(s,1);1194 c(sum(s) == 1, "stb_arr 7");1195 stb_arr_setlen(s,0);1196 c(sum(s) == 0, "stb_arr 8");11971198 stb_arr_push(s,3);1199 stb_arr_push(s,4);1200 stb_arr_push(s,5);1201 stb_arr_push(s,6);1202 stb_arr_push(s,7);1203 stb_arr_deleten(s,1,3);1204 c(stb_arr_len(s)==2 && sum(s) == 10, "stb_arr_9");12051206 stb_arr_push(s,2);1207 // 3 7 21208 stb_arr_insertn(s,2,2);1209 // 3 7 x x 21210 s[2] = 5;1211 s[3] = 6;1212 c(s[0]==3 && s[1] == 7 && s[2] == 5 && s[3] == 6 && s[4] == 2, "stb_arr 10");1213 stb_arr_free(s);1214 }12151216 #if 11217 f= stb_fopen("data/stb.test", "wb");1218 fwrite(buffer, 1, sizeof(buffer)-1, f);1219 stb_fclose(f, stb_keep_yes);1220 #ifndef WIN321221 sleep(1); // andLinux has some synchronization problem here1222 #endif1223 #else1224 f= fopen("data/stb.test", "wb");1225 fwrite(buffer, 1, sizeof(buffer)-1, f);1226 fclose(f);1227 #endif1228 if (!stb_fexists("data/stb.test")) {1229 fprintf(stderr, "Error: couldn't open file just written, or stb_fexists() is broken.\n");1230 }12311232 f = fopen("data/stb.test", "rb");1233 // f = NULL; // test stb_fatal()1234 if (!f) { stb_fatal("Error: couldn't open file just written\n"); }1235 else {1236 char temp[4];1237 int len1 = stb_filelen(f), len2;1238 int n1,n2;1239 if (fread(temp,1,4,f) == 0) {1240 int n = ferror(f);1241 if (n) { stb_fatal("Error reading from stream: %d", n); }1242 if (feof(f)) stb_fatal("Weird, read 0 bytes and hit eof");1243 stb_fatal("Read 0, but neither feof nor ferror is true");1244 }1245 fclose(f);1246 p = stb_file("data/stb.test", &len2);1247 if (p == NULL) stb_fatal("Error: stb_file() failed");1248 c(len1 == sizeof(buffer)-1, "stb_filelen()");1249 c(len2 == sizeof(buffer)-1, "stb_file():n");1250 c(memcmp(p, buffer, sizeof(buffer)-1) == 0, "stb_file()");1251 c(strcmp(p, buffer)==0, "stb_file() terminated");1252 free(p);12531254 s = stb_stringfile("data/stb.test", &n1);1255 c(n1 == 3, "stb_stringfile():n");1256 n2 = 0;1257 while (s[n2]) ++n2;1258 c(n1 == n2, "stb_stringfile():n length matches the non-NULL strings");1259 if (n2 == 3) {1260 c(strcmp(s[0],str1)==0, "stb_stringfile()[0]");1261 c(strcmp(s[1],str2)==0, "stb_stringfile()[1]");1262 c(strcmp(s[2],str3)==0, "stb_stringfile()[2] (no terminating newlines)");1263 }1264 free(s);12651266 f = fopen("data/stb.test", "rb");1267 stb_fgets(buf, sizeof(buf), f);1268 //c(strcmp(buf, str1)==0, "stb_fgets()");1269 p = stb_fgets_malloc(f);1270 n1 = strlen(p);1271 n2 = strlen(str2);1272 c(strcmp(p, str2)==0, "stb_fgets_malloc()");1273 free(p);1274 stb_fgets(buf, sizeof(buf), f);1275 c(strcmp(buf, str3)==0, "stb_fgets()3");1276 }12771278 c( stb_prefix("foobar", "foo"), "stb_prefix() 1");1279 c(!stb_prefix("foo", "foobar"), "stb_prefix() 2");1280 c( stb_prefix("foob", "foob" ), "stb_prefix() 3");12811282 stb_strncpy(buf, "foobar", 6); c(strcmp(buf,"fooba" )==0, "stb_strncpy() 1");1283 stb_strncpy(buf, "foobar", 8); c(strcmp(buf,"foobar")==0, "stb_strncpy() 2");12841285 c(!strcmp(p=stb_duplower("FooBar"), "foobar"), "stb_duplower()"); free(p);1286 strcpy(buf, "FooBar");1287 stb_tolower(buf);1288 c(!strcmp(buf, "foobar"), "stb_tolower()");12891290 p = stb_strtok(buf, "foo=ba*r", "#=*");1291 c(!strcmp(buf, "foo" ), "stb_strtok() 1");1292 c(!strcmp(p , "ba*r"), "stb_strtok() 2");1293 p = stb_strtok(buf, "foobar", "#=*");1294 c(*p == 0, "stb_strtok() 3");12951296 c(!strcmp(stb_skipwhite(" \t\n foo"), "foo"), "stb_skipwhite()");12971298 s = stb_tokens("foo == ba*r", "#=*", NULL);1299 c(!strcmp(s[0], "foo "), "stb_tokens() 1");1300 c(!strcmp(s[1], " ba"), "stb_tokens() 2");1301 c(!strcmp(s[2], "r"), "stb_tokens() 3");1302 c(s[3] == 0, "stb_tokens() 4");1303 free(s);13041305 s = stb_tokens_allowempty("foo == ba*r", "#=*", NULL);1306 c(!strcmp(s[0], "foo "), "stb_tokens_allowempty() 1");1307 c(!strcmp(s[1], "" ), "stb_tokens_allowempty() 2");1308 c(!strcmp(s[2], " ba"), "stb_tokens_allowempty() 3");1309 c(!strcmp(s[3], "r"), "stb_tokens_allowempty() 4");1310 c(s[4] == 0, "stb_tokens_allowempty() 5");1311 free(s);13121313 s = stb_tokens_stripwhite("foo == ba*r", "#=*", NULL);1314 c(!strcmp(s[0], "foo"), "stb_tokens_stripwhite() 1");1315 c(!strcmp(s[1], "" ), "stb_tokens_stripwhite() 2");1316 c(!strcmp(s[2], "ba"), "stb_tokens_stripwhite() 3");1317 c(!strcmp(s[3], "r"), "stb_tokens_stripwhite() 4");1318 c(s[4] == 0, "stb_tokens_stripwhite() 5");1319 free(s);13201321 s = stb_tokens_quoted("foo =\"=\" ba*\"\"r \" foo\" bah ", "#=*", NULL);1322 c(!strcmp(s[0], "foo"), "stb_tokens_quoted() 1");1323 c(!strcmp(s[1], "= ba"), "stb_tokens_quoted() 2");1324 c(!strcmp(s[2], "\"r foo bah"), "stb_tokens_quoted() 3");1325 c(s[3] == 0, "stb_tokens_quoted() 4");1326 free(s);132713281329 p = stb_file("stb.h", &len2);1330 if (p) {1331 uint32 z = stb_adler32_old(1, p, len2);1332 uint32 x = stb_adler32 (1, p, len2);1333 c(z == x, "stb_adler32() 1");1334 memset(p,0xff,len2);1335 z = stb_adler32_old((65520<<16) + 65520, p, len2);1336 x = stb_adler32 ((65520<<16) + 65520, p, len2);1337 c(z == x, "stb_adler32() 2");1338 free(p);1339 }13401341 // stb_hheap1342 {1343 #define HHEAP_COUNT 1000001344 void **p = malloc(sizeof(*p) * HHEAP_COUNT);1345 int i, j;1346 #if 01347 stb_hheap *h2, *h = stb_newhheap(sizeof(struct1),0);13481349 for (i=0; i < HHEAP_COUNT; ++i)1350 p[i] = stb_halloc(h);1351 stb_shuffle(p, HHEAP_COUNT, sizeof(*p), stb_rand());1352 for (i=0; i < HHEAP_COUNT; ++i)1353 stb_hfree(p[i]);13541355 c(h->num_alloc == 0, "stb_hheap 1");1356 stb_delhheap(h);13571358 h = stb_newhheap(sizeof(struct1),0);1359 h2 = stb_newhheap(sizeof(struct2),8);13601361 for (i=0; i < HHEAP_COUNT; ++i) {1362 if (i & 1)1363 p[i] = stb_halloc(h);1364 else {1365 p[i] = stb_halloc(h2);1366 c((((int) p[i]) & 4) == 0, "stb_hheap 2");1367 }1368 }13691370 stb_shuffle(p, HHEAP_COUNT, sizeof(*p), stb_rand());1371 for (i=0; i < HHEAP_COUNT; ++i)1372 stb_hfree(p[i]);13731374 c(h->num_alloc == 0, "stb_hheap 3");1375 c(h2->num_alloc == 0, "stb_hheap 4");13761377 stb_delhheap(h);1378 stb_delhheap(h2);1379 #else1380 for (i=0; i < HHEAP_COUNT; ++i)1381 p[i] = malloc(32);1382 stb_shuffle(p, HHEAP_COUNT, sizeof(*p), stb_rand());1383 for (i=0; i < HHEAP_COUNT; ++i)1384 free(p[i]);1385 #endif13861387 // now use the same array of pointers to do pointer set operations1388 for (j=100; j < HHEAP_COUNT; j += 25000) {1389 stb_ps *ps = NULL;1390 for (i=0; i < j; ++i)1391 ps = stb_ps_add(ps, p[i]);13921393 for (i=0; i < HHEAP_COUNT; ++i)1394 c(stb_ps_find(ps, p[i]) == (i < j), "stb_ps 1");1395 c(stb_ps_count(ps) == j, "stb_ps 1b");13961397 for (i=j; i < HHEAP_COUNT; ++i)1398 ps = stb_ps_add(ps, p[i]);13991400 for (i=0; i < j; ++i)1401 ps = stb_ps_remove(ps, p[i]);14021403 for (i=0; i < HHEAP_COUNT; ++i)1404 c(stb_ps_find(ps, p[i]) == !(i < j), "stb_ps 2");14051406 stb_ps_delete(ps);1407 }14081409 #define HHEAP_COUNT2 1001410 // now use the same array of pointers to do pointer set operations1411 for (j=1; j < 40; ++j) {1412 stb_ps *ps = NULL;1413 for (i=0; i < j; ++i)1414 ps = stb_ps_add(ps, p[i]);14151416 for (i=0; i < HHEAP_COUNT2; ++i)1417 c(stb_ps_find(ps, p[i]) == (i < j), "stb_ps 3");1418 c(stb_ps_count(ps) == j, "stb_ps 3b");14191420 for (i=j; i < HHEAP_COUNT2; ++i)1421 ps = stb_ps_add(ps, p[i]);14221423 for (i=0; i < j; ++i)1424 ps = stb_ps_remove(ps, p[i]);14251426 for (i=0; i < HHEAP_COUNT2; ++i)1427 c(stb_ps_find(ps, p[i]) == !(i < j), "stb_ps 4");14281429 stb_ps_delete(ps);1430 }14311432 free(p);1433 }143414351436 n = test_compression(tc, sizeof(tc));1437 c(n >= 0, "stb_compress()/stb_decompress() 1");14381439 p = stb_file("stb.h", &len2);1440 if (p) {1441 FILE *f = fopen("data/stb_h.z", "wb");1442 if (stb_compress_stream_start(f)) {1443 int i;1444 void *q;1445 int len3;14461447 for (i=0; i < len2; ) {1448 int n = stb_rand() % 10;1449 if (n <= 6) n = 1 + stb_rand()%16;1450 else if (n <= 8) n = 20 + stb_rand() % 1000;1451 else n = 15000;1452 if (i + n > len2) n = len2 - i;1453 stb_write(p + i, n);1454 i += n;1455 }1456 stb_compress_stream_end(1);14571458 q = stb_decompress_fromfile("data/stb_h.z", &len3);1459 c(len3 == len2, "stb_compress_stream 2");1460 if (len2 == len3)1461 c(!memcmp(p,q,len2), "stb_compress_stream 3");1462 if (q) free(q);1463 } else {1464 c(0, "stb_compress_stream 1");1465 }14661467 free(p);1468 stb_compress_window(65536*4);1469 }14701471 p = stb_file("stb.h", &len2);1472 if (p) {1473 n = test_compression(p, len2);1474 c(n >= 0, "stb_compress()/stb_decompress() 2");1475 #if 01476 n = test_en_compression(p, len2);1477 c(n >= 0, "stb_en_compress()/stb_en_decompress() 2");1478 #endif1479 free(p);1480 } else {1481 fprintf(stderr, "No stb.h to compression test.\n");1482 }14831484 p = stb_file("data/test.bmp", &len2);1485 if (p) {1486 n = test_compression(p, len2);1487 c(n == 106141, "stb_compress()/stb_decompress() 4");1488 #if 01489 n = test_en_compression(p, len2);1490 c(n >= 0, "stb_en_compress()/stb_en_decompress() 4");1491 #endif1492 free(p);1493 }14941495 // the hardcoded compressed lengths being verified _could_1496 // change if you changed the compressor parameters; but pure1497 // performance optimizations shouldn't change them1498 p = stb_file("data/cantrbry.zip", &len2);1499 if (p) {1500 n = test_compression(p, len2);1501 c(n == 642787, "stb_compress()/stb_decompress() 3");1502 #if 01503 n = test_en_compression(p, len2);1504 c(n >= 0, "stb_en_compress()/stb_en_decompress() 3");1505 #endif1506 free(p);1507 }15081509 p = stb_file("data/bible.txt", &len2);1510 if (p) {1511 n = test_compression(p, len2);1512 c(n == 2022520, "stb_compress()/stb_decompress() 4");1513 #if 01514 n = test_en_compression(p, len2);1515 c(n >= 0, "stb_en_compress()/stb_en_decompress() 4");1516 #endif1517 free(p);1518 }15191520 {1521 int len = 1 << 25, o=0; // 32MB1522 char *buffer = malloc(len);1523 int i;1524 for (i=0; i < 8192; ++i)1525 buffer[o++] = (char) stb_rand();1526 for (i=0; i < (1 << 15); ++i)1527 buffer[o++] = 1;1528 for (i=0; i < 64; ++i)1529 buffer[o++] = buffer[i];1530 for (i=0; i < (1 << 21); ++i)1531 buffer[o++] = 2;1532 for (i=0; i < 64; ++i)1533 buffer[o++] = buffer[i];1534 for (i=0; i < (1 << 21); ++i)1535 buffer[o++] = 3;1536 for (i=0; i < 8192; ++i)1537 buffer[o++] = buffer[i];1538 for (i=0; i < (1 << 21); ++i)1539 buffer[o++] = 4;1540 assert(o < len);1541 stb_compress_window(1 << 24);1542 i = test_compression(buffer, len);1543 c(n >= 0, "stb_compress() 6");1544 free(buffer);1545 }15461547 #ifdef STB_THREADS1548 stb_thread_cleanup();1549 #endif1550 stb_ischar(0,NULL);1551 stb_wrapper_listall(dumpfunc);1552 printf("Memory still in use: %d allocations of %d bytes.\n", alloc_num, alloc_size);15531554 // force some memory checking1555 for (n=1; n < 20; ++n)1556 malloc(1 << n);15571558 printf("Finished stb.c with %d errors.\n", count);15591560 #ifdef _MSC_VER1561 if (count)1562 __asm int 3;1563 #endif15641565 return 0;1566}15671568#endif156915701571157215731574// NIST test vectors15751576struct1577{1578 int length;1579 char *message;1580 char *digest;1581} sha1_tests[] =1582{1583{ 24,1584"616263",1585"a9993e364706816aba3e25717850c26c9cd0d89d",1586},{1587 1304,1588"ec29561244ede706b6eb30a1c371d74450a105c3f9735f7fa9fe38cf67f304a5736a106e"1589"92e17139a6813b1c81a4f3d3fb9546ab4296fa9f722826c066869edacd73b25480351858"1590"13e22634a9da44000d95a281ff9f264ecce0a931222162d021cca28db5f3c2aa24945ab1"1591"e31cb413ae29810fd794cad5dfaf29ec43cb38d198fe4ae1da2359780221405bd6712a53"1592"05da4b1b737fce7cd21c0eb7728d08235a9011",1593"970111c4e77bcc88cc20459c02b69b4aa8f58217",1594},{1595 2096,1596"5fc2c3f6a7e79dc94be526e5166a238899d54927ce470018fbfd668fd9dd97cbf64e2c91"1597"584d01da63be3cc9fdff8adfefc3ac728e1e335b9cdc87f069172e323d094b47fa1e652a"1598"fe4d6aa147a9f46fda33cacb65f3aa12234746b9007a8c85fe982afed7815221e43dba55"1599"3d8fe8a022cdac1b99eeeea359e5a9d2e72e382dffa6d19f359f4f27dc3434cd27daeeda"1600"8e38594873398678065fbb23665aba9309d946135da0e4a4afdadff14db18e85e71dd93c"1601"3bf9faf7f25c8194c4269b1ee3d9934097ab990025d9c3aaf63d5109f52335dd3959d38a"1602"e485050e4bbb6235574fc0102be8f7a306d6e8de6ba6becf80f37415b57f9898a5824e77"1603"414197422be3d36a6080",1604 "0423dc76a8791107d14e13f5265b343f24cc0f19",1605},{1606 2888,1607"0f865f46a8f3aed2da18482aa09a8f390dc9da07d51d1bd10fe0bf5f3928d5927d08733d"1608"32075535a6d1c8ac1b2dc6ba0f2f633dc1af68e3f0fa3d85e6c60cb7b56c239dc1519a00"1609"7ea536a07b518ecca02a6c31b46b76f021620ef3fc6976804018380e5ab9c558ebfc5cb1"1610"c9ed2d974722bf8ab6398f1f2b82fa5083f85c16a5767a3a07271d67743f00850ce8ec42"1611"8c7f22f1cf01f99895c0c844845b06a06cecb0c6cf83eb55a1d4ebc44c2c13f6f7aa5e0e"1612"08abfd84e7864279057abc471ee4a45dbbb5774afa24e51791a0eada11093b88681fe30b"1613"aa3b2e94113dc63342c51ca5d1a6096d0897b626e42cb91761058008f746f35465465540"1614"ad8c6b8b60f7e1461b3ce9e6529625984cb8c7d46f07f735be067588a0117f23e34ff578"1615"00e2bbe9a1605fde6087fb15d22c5d3ac47566b8c448b0cee40373e5ba6eaa21abee7136"1616"6afbb27dbbd300477d70c371e7b8963812f5ed4fb784fb2f3bd1d3afe883cdd47ef32bea"1617"ea",1618 "6692a71d73e00f27df976bc56df4970650d90e45",1619},{1620 3680,1621"4893f1c763625f2c6ce53aacf28026f14b3cd8687e1a1d3b60a81e80fcd1e2b038f9145a"1622"b64a0718f948f7c3c9ac92e3d86fb669a5257da1a18c776291653688338210a3242120f1"1623"01788e8acc9110db9258b1554bf3d26602516ea93606a25a7f566c0c758fb39ecd9d876b"1624"c5d8abc1c3205095382c2474cb1f8bbdb45c2c0e659cb0fc703ec607a5de6bcc7a28687d"1625"b1ee1c8f34797bb2441d5706d210df8c2d7d65dbded36414d063c117b52a51f7a4eb9cac"1626"0782e008b47459ed5acac0bc1f20121087f992ad985511b33c866d18e63f585478ee5a5e"1627"654b19d81231d98683ae3f0533565aba43dce408d7e3c4c6be11d8f05165f29c9dcb2030"1628"c4ee31d3a04e7421aa92c3231a1fc07e50e95fea7389a5e65891afaba51cf55e36a9d089"1629"bf293accb356d5d06547307d6e41456d4ed146a056179971c56521c83109bf922866186e"1630"184a99a96c7bb96df8937e35970e438412a2b8d744cf2ad87cb605d4232e976f9f151697"1631"76e4e5b6b786132c966b25fc56d815c56c819af5e159aa39f8a93d38115f5580cda93bc0"1632"73c30b39920e726fe861b72483a3f886269ab7a8eefe952f35d25c4eb7f443f4f3f26e43"1633"d51fb54591e6a6dad25fcdf5142033084e5624bdd51435e77dea86b8",1634 "dc5859dd5163c4354d5d577b855fa98e37f04384",1635},{1636 4472,1637"cf494c18a4e17bf03910631471bca5ba7edea8b9a63381e3463517961749848eb03abefd"1638"4ce676dece3740860255f57c261a558aa9c7f11432f549a9e4ce31d8e17c79450ce2ccfc"1639"148ad904aedfb138219d7052088520495355dadd90f72e6f69f9c6176d3d45f113f275b7"1640"fbc2a295784d41384cd7d629b23d1459a22e45fd5097ec9bf65fa965d3555ec77367903c"1641"32141065fc24da5c56963d46a2da3c279e4035fb2fb1c0025d9dda5b9e3443d457d92401"1642"a0d3f58b48469ecb1862dc975cdbe75ca099526db8b0329b03928206f084c633c04eef5e"1643"8e377f118d30edf592504be9d2802651ec78aeb02aea167a03fc3e23e5fc907c324f283f"1644"89ab37e84687a9c74ccf055402db95c29ba2c8d79b2bd4fa96459f8e3b78e07e923b8119"1645"8267492196ecb71e01c331f8df245ec5bdf8d0e05c91e63bb299f0f6324895304dda721d"1646"39410458f117c87b7dd6a0ee734b79fcbe482b2c9e9aa0cef03a39d4b0c86de3bc34b4aa"1647"dabfa373fd2258f7c40c187744d237080762382f547a36adb117839ca72f8ebbc5a20a07"1648"e86f4c8bb923f5787698d278f6db0040e76e54645bb0f97083995b34b9aa445fc4244550"1649"58795828dd00c32471ec402a307f5aa1b37b1a86d6dae3bcbfbe9ba41cab0beeabf489af"1650"0073d4b3837d3f14b815120bc3602d072b5aeefcdec655fe756b660eba7dcf34675acbce"1651"317746270599424b9248791a0780449c1eabbb9459cc1e588bfd74df9b1b711c85c09d8a"1652"a171b309281947e8f4b6ac438753158f4f36fa",1653 "4c17926feb6e87f5bca7890d8a5cde744f231dab",1654},{1655 5264,1656"8236153781bd2f1b81ffe0def1beb46f5a70191142926651503f1b3bb1016acdb9e7f7ac"1657"ced8dd168226f118ff664a01a8800116fd023587bfba52a2558393476f5fc69ce9c65001"1658"f23e70476d2cc81c97ea19caeb194e224339bcb23f77a83feac5096f9b3090c51a6ee6d2"1659"04b735aa71d7e996d380b80822e4dfd43683af9c7442498cacbea64842dfda238cb09992"1660"7c6efae07fdf7b23a4e4456e0152b24853fe0d5de4179974b2b9d4a1cdbefcbc01d8d311"1661"b5dda059136176ea698ab82acf20dd490be47130b1235cb48f8a6710473cfc923e222d94"1662"b582f9ae36d4ca2a32d141b8e8cc36638845fbc499bce17698c3fecae2572dbbd4705524"1663"30d7ef30c238c2124478f1f780483839b4fb73d63a9460206824a5b6b65315b21e3c2f24"1664"c97ee7c0e78faad3df549c7ca8ef241876d9aafe9a309f6da352bec2caaa92ee8dca3928"1665"99ba67dfed90aef33d41fc2494b765cb3e2422c8e595dabbfaca217757453fb322a13203"1666"f425f6073a9903e2dc5818ee1da737afc345f0057744e3a56e1681c949eb12273a3bfc20"1667"699e423b96e44bd1ff62e50a848a890809bfe1611c6787d3d741103308f849a790f9c015"1668"098286dbacfc34c1718b2c2b77e32194a75dda37954a320fa68764027852855a7e5b5274"1669"eb1e2cbcd27161d98b59ad245822015f48af82a45c0ed59be94f9af03d9736048570d6e3"1670"ef63b1770bc98dfb77de84b1bb1708d872b625d9ab9b06c18e5dbbf34399391f0f8aa26e"1671"c0dac7ff4cb8ec97b52bcb942fa6db2385dcd1b3b9d567aaeb425d567b0ebe267235651a"1672"1ed9bf78fd93d3c1dd077fe340bb04b00529c58f45124b717c168d07e9826e33376988bc"1673"5cf62845c2009980a4dfa69fbc7e5a0b1bb20a5958ca967aec68eb31dd8fccca9afcd30a"1674"26bab26279f1bf6724ff",1675 "11863b483809ef88413ca9b0084ac4a5390640af",1676},{1677 6056,1678"31ec3c3636618c7141441294fde7e72366a407fa7ec6a64a41a7c8dfda150ca417fac868"1679"1b3c5be253e3bff3ab7a5e2c01b72790d95ee09b5362be835b4d33bd20e307c3c702aa15"1680"60cdc97d190a1f98b1c78e9230446e31d60d25155167f73e33ed20cea27b2010514b57ba"1681"b05ed16f601e6388ea41f714b0f0241d2429022e37623c11156f66dd0fa59131d8401dba"1682"f502cffb6f1d234dcb53e4243b5cf9951688821586a524848123a06afa76ab8058bcfa72"1683"27a09ce30d7e8cb100c8877bb7a81b615ee6010b8e0daced7cc922c971940b757a9107de"1684"60b8454dda3452e902092e7e06faa57c20aadc43c8012b9d28d12a8cd0ba0f47ab4b377f"1685"316902e6dff5e4f2e4a9b9de1e4359f344e66d0565bd814091e15a25d67d89cf6e30407b"1686"36b2654762bbe53a6f204b855a3f9108109e351825cf9080c89764c5f74fb4afef89d804"1687"e7f7d097fd89d98171d63eaf11bd719df44c5a606be0efea358e058af2c265b2da2623fd"1688"afc62b70f0711d0150625b55672060cea6a253c590b7db1427a536d8a51085756d1e6ada"1689"41d9d506b5d51bcae41249d16123b7df7190e056777a70feaf7d9f051fdbbe45cbd60fc6"1690"295dda84d4ebbd7284ad44be3ee3ba57c8883ead603519b8ad434e3bf630734a9243c00a"1691"a07366b8f88621ec6176111f0418c66b20ff9a93009f43432aaea899dad0f4e3ae72e9ab"1692"a3f678f140118eb7117230c357a5caa0fe36c4e6cf1957bbe7499f9a68b0f1536e476e53"1693"457ed826d9dea53a6ded52e69052faaa4d3927b9a3f9e8b435f424b941bf2d9cd6849874"1694"42a44d5acaa0da6d9f390d1a0dd6c19af427f8bb7c082ae405a8dd535dea76aa360b4faa"1695"d786093e113424bb75b8cc66c41af637a7b2acdca048a501417919cf9c5cd3b2fa668860"1696"d08b6717eea6f125fa1b0bae1dbb52aafce8ae2deaf92aeb5be003fb9c09fedbc286ffb5"1697"e16ad8e07e725faa46ebc35500cf205fc03250075ddc050c263814b8d16d141db4ca289f"1698"386719b28a09a8e5934722202beb3429899b016dfeb972fee487cdd8d18f8a681042624f"1699"51",1700 "f43937922444421042f76756fbed0338b354516f",1701},{1702 6848,1703"21b9a9686ec200456c414f2e6963e2d59e8b57e654eced3d4b57fe565b51c9045c697566"1704"44c953178f0a64a6e44d1b46f58763c6a71ce4c373b0821c0b3927a64159c32125ec916b"1705"6edd9bf41c3d80725b9675d6a97c8a7e3b662fac9dbcf6379a319a805b5341a8d360fe00"1706"5a5c9ac1976094fea43566d66d220aee5901bd1f2d98036b2d27eb36843e94b2e5d1f09c"1707"738ec826de6e0034cf8b1dca873104c5c33704cae290177d491d65f307c50a69b5c81936"1708"a050e1fe2b4a6f296e73549323b6a885c3b54ee5eca67aa90660719126b590163203909e"1709"470608f157f033f017bcf48518bf17d63380dabe2bc9ac7d8efe34aedcae957aeb68f10c"1710"8ad02c4465f1f2b029d5fbb8e8538d18be294394b54b0ee6e67a79fce11731604f3ac4f8"1711"d6ffa9ef3d2081f3d1c99ca107a7bf3d624324a7978ec38af0bcd0d7ee568572328b212b"1712"9dc831efb7880e3f4d6ca7e25f8e80d73913fb8edfffd758ae4df61b4140634a92f49314"1713"6138ebdcdaa083ea72d52a601230aa6f77874dcad9479f5bcac3763662cc30cb99823c5f"1714"f469dcbd64c028286b0e579580fd3a17b56b099b97bf62d555798f7a250e08b0e4f238c3"1715"fcf684198bd48a68c208a6268be2bb416eda3011b523388bce8357b7f26122640420461a"1716"bcabcb5004519adfa2d43db718bce7d0c8f1b4645c89315c65df1f0842e5741244bba3b5"1717"10801d2a446818635d0e8ffcd80c8a6f97ca9f878793b91780ee18eb6c2b99ffac3c38ef"1718"b7c6d3af0478317c2b9c421247eba8209ea677f984e2398c7c243696a12df2164417f602"1719"d7a1d33809c865b73397550ff33fe116166ae0ddbccd00e2b6fc538733830ac39c328018"1720"bcb87ac52474ad3cce8780d6002e14c6734f814cb551632bcc31965c1cd23d048b9509a4"1721"e22ab88f76a6dba209d5dd2febd1413a64d32be8574a22341f2a14e4bd879abb35627ef1"1722"35c37be0f80843006a7cc7158d2bb2a71bf536b36de20ca09bb5b674e5c408485106e6fa"1723"966e4f2139779b46f6010051615b5b41cda12d206d48e436b9f75d7e1398a656abb0087a"1724"a0eb453368fc1ecc71a31846080f804d7b67ad6a7aa48579c3a1435eff7577f4e6004d46"1725"aac4130293f6f62ae6d50c0d0c3b9876f0728923a94843785966a27555dd3ce68602e7d9"1726"0f7c7c552f9bda4969ec2dc3e30a70620db6300e822a93e633ab9a7a",1727 "5d4d18b24b877092188a44be4f2e80ab1d41e795",1728},{1729 7640,1730"1c87f48f4409c3682e2cf34c63286dd52701b6c14e08669851a6dc8fa15530ad3bef692c"1731"7d2bf02238644561069df19bdec3bccae5311fce877afc58c7628d08d32d9bd2dc1df0a6"1732"24360e505944219d211f33bff62e9ff2342ac86070240a420ccaf14908e6a93c1b27b6e2"1733"0324e522199e83692805cc4c7f3ea66f45a490a50d4dd558aa8e052c45c1a5dfad452674"1734"edc7149024c09024913f004ceee90577ff3eaec96a1eebbdc98b440ffeb0cad9c6224efc"1735"9267d2c192b53dc012fb53010926e362ef9d4238d00df9399f6cbb9acc389a7418007a6c"1736"a926c59359e3608b548bdeece213f4e581d02d273781dffe26905ec161956f6dfe1c008d"1737"6da8165d08f8062eea88e80c055b499f6ff8204ffdb303ab132d9b0cba1e5675f3525bbe"1738"4cf2c3f2b00506f58336b36aefd865d37827f2fad7d1e59105b52f1596ea19f848037dfe"1739"dc9136e824ead5505e2995d4c0769276548835430667f333fc77375125b29c1b1535602c"1740"10fe161864f49a98fc274ae7335a736be6bf0a98cd019d120b87881103f86c0a6efadd8c"1741"aa405b6855c384141b4f8751cc42dc0cb2913382210baaa84fe242ca66679472d815c08b"1742"f3d1a7c6b5705a3de17ad157522de1eb90c568a8a1fbcbb422cca293967bb14bfdd91bc5"1743"a9c4d2774dee524057e08f937f3e2bd8a04ced0fc7b16fb78a7b16ee9c6447d99e53d846"1744"3726c59066af25c317fc5c01f5dc9125809e63a55f1cd7bdf7f995ca3c2655f4c7ab940f"1745"2aa48bc3808961eb48b3a03c731ce627bb67dd0037206c5f2c442fc72704258548c6a9db"1746"e16da45e40da009dc8b2600347620eff8361346116b550087cb9e2ba6b1d6753622e8b22"1747"85589b90a8e93902aa17530104455699a1829efef153327639b2ae722d5680fec035575c"1748"3b48d9ec8c8e9550e15338cc76b203f3ab597c805a8c6482676deabc997a1e4ba857a889"1749"97ceba32431443c53d4d662dd5532aa177b373c93bf93122b72ed7a3189e0fa171dfabf0"1750"520edf4b9d5caef595c9a3a13830c190cf84bcf9c3596aadb2a674fbc2c951d135cb7525"1751"3ee6c59313444f48440a381e4b95f5086403beb19ff640603394931f15d36b1cc9f3924f"1752"794c965d4449bfbdd8b543194335bdf70616dc986b49582019ac2bf8e68cfd71ec67e0aa"1753"dff63db39e6a0ef207f74ec6108fae6b13f08a1e6ae01b813cb7ee40961f95f5be189c49"1754"c43fbf5c594f5968e4e820a1d38f105f2ff7a57e747e4d059ffb1d0788b7c3c772b9bc1f"1755"e147c723aca999015230d22c917730b935e902092f83e0a8e6db9a75d2626e0346e67e40"1756"8d5b815439dab8ccb8ea23f828fff6916c4047",1757 "32e0f5d40ceec1fbe45ddd151c76c0b3fef1c938",1758},{1759 8432,1760"084f04f8d44b333dca539ad2f45f1d94065fbb1d86d2ccf32f9486fe98f7c64011160ec0"1761"cd66c9c7478ed74fde7945b9c2a95cbe14cedea849978cc2d0c8eb0df48d4834030dfac2"1762"b043e793b6094a88be76b37f836a4f833467693f1aa331b97a5bbc3dbd694d96ce19d385"1763"c439b26bc16fc64919d0a5eab7ad255fbdb01fac6b2872c142a24aac69b9a20c4f2f07c9"1764"923c9f0220256b479c11c90903193d4e8f9e70a9dbdf796a49ca5c12a113d00afa844694"1765"de942601a93a5c2532031308ad63c0ded048633935f50a7e000e9695c1efc1e59c426080"1766"a7d1e69a93982a408f1f6a4769078f82f6e2b238b548e0d4af271adfa15aa02c5d7d7052"1767"6e00095ffb7b74cbee4185ab54385f2707e8362e8bd1596937026f6d95e700340b6338ce"1768"ba1ee854a621ce1e17a016354016200b1f98846aa46254ab15b7a128b1e840f494b2cdc9"1769"daccf14107c1e149a7fc27d33121a5cc31a4d74ea6945816a9b7a83850dc2c11d26d767e"1770"ec44c74b83bfd2ef8a17c37626ed80be10262fe63cf9f804b8460c16d62ae63c8dd0d124"1771"1d8aaac5f220e750cb68d8631b162d80afd6b9bf929875bf2e2bc8e2b30e05babd8336be"1772"31e41842673a66a68f0c5acd4d7572d0a77970f42199a4da26a56df6aad2fe420e0d5e34"1773"448eb2ed33afbfb35dffaba1bf92039df89c038bae3e11c02ea08aba5240c10ea88a45a1"1774"d0a8631b269bec99a28b39a3fc5b6b5d1381f7018f15638cc5274ab8dc56a62b2e9e4fee"1775"f172be20170b17ec72ff67b81c15299f165810222f6a001a281b5df1153a891206aca89e"1776"e7baa761a5af7c0493a3af840b9219e358b1ec1dd301f35d4d241b71ad70337bda42f0ea"1777"dc9434a93ed28f96b6ea073608a314a7272fefd69d030cf22ee6e520b848fa705ed6160f"1778"e54bd3bf5e89608506e882a16aced9c3cf80657cd03749f34977ced9749caa9f52b683e6"1779"4d96af371b293ef4e5053a8ea9422df9dd8be45d5574730f660e79bf4cbaa5f3c93a79b4"1780"0f0e4e86e0fd999ef4f26c509b0940c7a3eaf1f87c560ad89aff43cd1b9d4863aa3ebc41"1781"a3dd7e5b77372b6953dae497fc7f517efe99e553052e645e8be6a3aeb362900c75ce712d"1782"fcba712c4c25583728db9a883302939655ef118d603e13fcf421d0cea0f8fb7c49224681"1783"d013250defa7d4fd64b69b0b52e95142e4cc1fb6332486716a82a3b02818b25025ccd283"1784"198b07c7d9e08519c3c52c655db94f423912b9dc1c95f2315e44be819477e7ff6d2e3ccd"1785"daa6da27722aaadf142c2b09ce9472f7fd586f68b64d71fc653decebb4397bf7af30219f"1786"25c1d496514e3c73b952b8aa57f4a2bbf7dcd4a9e0456aaeb653ca2d9fa7e2e8a532b173"1787"5c4609e9c4f393dd70901393e898ed704db8e9b03b253357f333a66aba24495e7c3d1ad1"1788"b5200b7892554b59532ac63af3bdef590b57bd5df4fbf38d2b3fa540fa5bf89455802963"1789"036bd173fe3967ed1b7d",1790 "ee976e4ad3cad933b283649eff9ffdb41fcccb18",1791},{1792 9224,1793"bd8320703d0cac96a96aeefa3abf0f757456bf42b3e56f62070fc03e412d3b8f4e4e427b"1794"c47c4600bb423b96de6b4910c20bc5c476c45feb5b429d4b35088813836fa5060ceb26db"1795"bb9162e4acd683ef879a7e6a0d6549caf0f0482de8e7083d03ed2f583de1b3ef505f4b2c"1796"cd8a23d86c09d47ba05093c56f21a82c815223d777d0cabb7ee4550423b5deb6690f9394"1797"1862ae41590ea7a580dda79229d141a786215d75f77e74e1db9a03c9a7eb39eb35adf302"1798"5e26eb31ca2d2ca507edca77d9e7cfcfd136784f2117a2afafa87fa468f08d07d720c933"1799"f61820af442d260d172a0a113494ca169d33a3aeaacdcc895b356398ed85a871aba769f6"1800"071abd31e9f2f5834721d0fef6f6ee0fc0e38760b6835dfcc7dbefb592e1f0c3793af7ad"1801"f748786d3364f3cfd5686b1a18711af220e3637d8fad08c553ce9d5dc1183d48e8337b16"1802"1fe69b50e1920316dbffec07425b5d616a805a699576590e0939f5c965bce6c7342d314a"1803"c37b9c4d30166567c4f633f182de4d6b00e20a1c762789f915eaa1c89ac31b85222b1f05"1804"403dedd94db9ce75ff4e49923d1999d032695fa0a1c595617830c3c9a7ab758732fcec26"1805"85ae14350959b6a5f423ef726587e186b055a8daf6fa8fdefa02841b2fdbca1616dcee78"1806"c685fc6dcc09f24a36097572eba3c37a3eabe98bc23836085f63ef71a54b4488615d83b2"1807"6ed28c9fce78852df9b6cf8a75ca3899a7567298e91bc4ffdd04ffab0066b43b8286a4bb"1808"555c78808496b252c6e0e4d153631f11f68baf88630e052acc2af5d2af2e22e4f23bb630"1809"314c561a577455f86b6727bcad3c19d3e271404dec30af3d9dd0ed63cd9fa708aadfa12a"1810"500ef2d99a6b71e137b56ba90036975b88004b45f577ef800f0fb3cf97577dc9da37253b"1811"8675e5c8bb7e0bd26564f19eca232fb25f280f82e014424c9fbdd1411d7556e5d7906bb8"1812"62206316ba03385cd820c54c82ed35b36735bc486b1885d84053eba036c1ebfb5422d93d"1813"a71c53deda7f74db07cd4959cdfa898ba37080d76b564d344b124dd7b80cd70ed3b52a6c"1814"f9c9a32695d134bd39eb11ddeecdac86c808e469bd8a7995b667c452e7d9a54d5c85bcf6"1815"d5ffdc27d491bc06f438f02c7cf018073431587c78ba08d18a8daccb2d3b26136f612ade"1816"c673f3cd5eb83412b29652d55a10d0d6238d0b5365db272c917349450aff062c36191cfc"1817"d45660819083f89cd42ecae9e26934a020cafeb9b2b68d544edf59574c0ca159fd195dbf"1818"3e3e74244d942fffdbd4ed7f626219bab88b5a07e50b09a832d3e8ad82091114e54f2c35"1819"6b48e55e36589ebad3ac6077cb7b1827748b00670df65bbf0a2e65caad3f8a97d654d64e"1820"1c7dad171cafbc37110d2f7ca66524dc08fe60593e914128bd95f41137bfe819b5ca835f"1821"e5741344b5c907ce20a35f4f48726141c6398e753ed9d46d3692050628c78859d5014fe4"1822"dd3708e58d4d9807f8dac540492e32fa579491717ad4145c9efc24cf95605660b2e09b89"1823"9369b74d3ebff41e707917ff314d93e6ac8dfd643ef2c087cd9912005b4b2681da01a369"1824"42a756a3e22123cbf38c429373c6a8663130c24b24b2690b000013960b1c46a32d1d5397"1825"47",1826 "2df09b10933afedfcd3f2532dfd29e7cb6213859",1827},{1828 10016,1829"7a94978bec7f5034b12c96b86498068db28cd2726b676f54d81d8d7350804cc106bead8a"1830"252b465a1f413b1c41e5697f8cece49ec0dea4dfb9fa7b1bfe7a4a00981875b420d094bb"1831"1ce86c1b8c2e1dbebf819c176b926409fdec69042e324e71d7a8d75006f5a11f512811fe"1832"6af88a12f450e327950b18994dfc3f740631beda6c78bca5fe23d54e6509120e05cd1842"1833"d3639f1466cf26585030e5b4aefe0404fe900afc31e1980f0193579085342f1803c1ba27"1834"0568f80eaf92440c4f2186b736f6ab9dc7b7522ccdcfc8cf12b6375a2d721aa89b5ef482"1835"112a42c31123aebabcb485d0e72d6b6b70c44e12d2da98d1f87fa9df4f37847e1ffec823"1836"1b8be3d737d282ddb9cc4b95937acfa0f028ba450def4d134a7d0fc88119bf7296e18cd4"1837"4f56890b661b5b72ddfa34c29228067e13caf08eb3b7fd29de800df9a9ae137aad4a81a4"1838"16a301c9f74b66c0e163e243b3187996b36eb569de3d9c007d78df91f9b554eef0eaa663"1839"88754ce20460b75d95e2d0747229a1502a5652cf39ca58e1daa0e9321d7ab3093981cd70"1840"23a7ee956030dd70177028a66ad619ad0629e631f91228b7c5db8e81b276d3b168c1edb1"1841"bc0888d1cbcbb23245c2d8e40c1ff14bfe13f9c70e93a1939a5c45eef9351e795374b9e1"1842"b5c3a7bd642477ba7233e1f590ab44a8232c53099a3c0a6ffe8be8b7ca7b58e6fedf700f"1843"6f03dd7861ee1ef857e3f1a32a2e0baa591d0c7ca04cb231cc254d29cda873f00d68f465"1844"00d6101cfdc2e8004c1f333d8007325d06ffe6b0ff7b80f24ba51928e65aa3cb78752028"1845"27511207b089328bb60264595a2cebfc0b84d9899f5eca7ea3e1d2f0f053b4e67f975500"1846"7ff3705ca4178ab9c15b29dd99494135f35befbcec05691d91f6361cad9c9a32e0e65577"1847"f14d8dc66515081b51d09e3f6c25eea868cf519a83e80c935968cae6fce949a646ad53c5"1848"6ee1f07dda23daef3443310bc04670afedb1a0132a04cb64fa84b4af4b3dc501044849cd"1849"dd4adb8d733d1eac9c73afa4f7d75864c87787f4033ffe5ba707cbc14dd17bd1014b8b61"1850"509c1f55a25cf6c0cbe49e4ddcc9e4de3fa38f7203134e4c7404ee52ef30d0b3f4e69bcc"1851"7d0b2e4d8e60d9970e02cc69d537cfbc066734eb9f690a174e0194ca87a6fadad3883d91"1852"6bd1700a052b26deee832701590d67e6f78938eac7c4beef3061a3474dd90dd588c1cd6e"1853"6a4cda85b110fd08a30dcd85a3ebde910283366a17a100db920885600db7578be46bcfa6"1854"4765ba9a8d6d5010cb1766d5a645e48365ed785e4b1d8c7c233c76291c92ef89d70bc77f"1855"bf37d7ce9996367e5b13b08242ce73971f1e0c6ff2d7920fb9c821768a888a7fe0734908"1856"33efb854cbf482aed5cb594fb715ec82a110130664164db488666d6198279006c1aa521f"1857"9cf04250476c934eba0914fd586f62d6c5825b8cf82cd7ef915d93106c506ea6760fd8b0"1858"bf39875cd1036b28417de54783173446026330ef701c3a6e5b6873b2025a2c1666bb9e41"1859"a40adb4a81c1052047dabe2ad092df2ae06d6d67b87ac90be7d826ca647940c4da264cad"1860"43c32a2bb8d5e27f87414e6887561444a80ed879ce91af13e0fbd6af1b5fa497ad0cbd2e"1861"7f0f898f52f9e4710de2174e55ad07c45f8ead3b02cac6c811becc51e72324f2439099a0"1862"5740090c1b165ecae7dec0b341d60a88f46d7ad8624aac231a90c93fad61fcfbbea12503"1863"59fcd203862a6b0f1d71ac43db6c58a6b60c2c546edc12dd658998e8",1864 "f32e70862a16e3e8b199e9d81a9949d66f812cad",1865},{1866 10808,1867"88dd7f273acbe799219c23184782ac0b07bade2bc46b4f8adbd25ed3d59c0fd3e2931638"1868"837d31998641bbb7374c7f03d533ca60439ac4290054ff7659cc519bdda3dff2129a7bdb"1869"66b3300068931ade382b7b813c970c8e15469187d25cb04b635403dc50ea6c65ab38a97c"1870"431f28a41ae81c16192bd0c103f03b8fa815d6ea5bf0aa7fa534ad413b194eb12eb74f5d"1871"62b3d3a7411eb8c8b09a261542bf6880acbdfb617a42e577009e482992253712f8d4c8bd"1872"1c386bad068c7aa10a22111640041f0c35dabd0de00ebf6cd82f89cbc49325df12419278"1873"ec0d5ebb670577b2fe0c3e0840c5dd0dc5b3da00669eed8ead380f968b00d42f4967faec"1874"c131425fce1f7edb01cbec7e96d3c26fa6390a659e0ab069ef3edadc07e077bb816f1b22"1875"98830a0fe2b393693bb79f41feca89577c5230e0a6c34b860dc1fdb10d85aa054481082c"1876"494779d59ba798fcd817116c3059b7831857d0364352b354ce3b960fbb61a1b8a04d47ca"1877"a0ead52a9bea4bada2646cdbaec211f391dac22f2c5b8748e36bfc3d4e8ea45131ca7f52"1878"af09df21babe776fcecbb5c5dfa352c790ab27b9a5e74242bbd23970368dbefd7c3c74d1"1879"61ae01c7e13c65b415f38aa660f51b69ea1c9a504fe1ad31987cb9b26a4db2c37d7b326c"1880"50dbc8c91b13925306ff0e6098532dee7282a99c3ddf99f9e1024301f76e31e58271870b"1881"d94b9356e892a6a798d422a48c7fd5b80efe855a4925cc93b8cf27badec5498338e2b538"1882"70758b45d3e7a2fa059ed88df320a65e0a7cf87fa7e63b74cea1b7371e221f8004726642"1883"30d4d57945a85b23d58f248c8cd06ccfabfa969ab8cb78317451fab60e4fdfa796e2e2a8"1884"b46405839a91266d37e8d38bae545fb4060c357923b86d62f5d59d7bef5af20fbb9c7fb4"1885"2c6fd487748ed3b9973dbf4b1f2c9615129fa10d21cc49c622842c37c01670be71715765"1886"a98814634efbdee66bf3420f284dbd3efafc8a9117a8b9a72d9b81aa53ded78c409f3f90"1887"bad6e30d5229e26f4f0cea7ee82c09e3b60ec0e768f35a7fb9007b869f9bfc49c518f648"1888"3c951d3b6e22505453266ec4e7fe6a80dbe6a2458a1d6cd93044f2955607412091009c7d"1889"6cd81648a3b0603c92bfdff9ec3c0104b07ed2105962ca7c56ede91cb932073c337665e2"1890"409387549f9a46da05bc21c5126bd4b084bc2c06ab1019c51df30581aa4464ab92978c13"1891"f6d7c7ac8d30a78f982b9a43181bbe3c3eb9f7a1230b3e53b98a3c2a028317827fbe8cf6"1892"ec5e3e6b2a084d517d472b25f72fab3a34415bba488f14e7f621cfa72396ba40890e8c60"1893"b04815601a0819c9bebc5e18b95e04be3f9c156bd7375d8cc8a97c13ce0a3976123419fa"1894"592631317ca638c1182be06886f9663d0e8e6839573df8f52219eeb5381482a6a1681a64"1895"173660bfbb6d98bf06ee31e601ee99b4b99b5671ed0253260b3077ed5b977c6a79b4ff9a"1896"08efd3cba5c39bec1a1e9807d40bbf0c988e0fd071cf2155ed7b014c88683cd869783a95"1897"4cbfced9c0e80c3a92d45b508985cbbc533ba868c0dc4f112e99400345cf7524e42bf234"1898"5a129e53da4051c429af2ef09aba33ae3c820ec1529132a203bd2b81534f2e865265f55c"1899"9395caf0e0d3e1762c95eaaec935e765dc963b3e0d0a04b28373ab560fa9ba5ca71ced5d"1900"17bb8b56f314f6f0d0bc8104b3f1835eca7eaac15adf912cf9a6945cfd1de392342dd596"1901"d67e7ffcb7e086a6c1ea318aa2e0c2b5c2da079078232c637de0d317a1f26640bc1dac5b"1902"e8699b53edc86e4bfdfaf797a2ae350bf4ea29790face675c4d2e85b8f37a694c91f6a14"1903"1fd561274392ee6ee1a14424d5c134a69bcb4333079400f03615952fc4c99bf03f5733a8"1904"dc71524269fc5c648371f5f3098314d9d10258",1905 "08632c75676571a5db5971f5d99cb8de6bf1792a",1906},{1907 11600,1908"85d43615942fcaa449329fd1fe9efb17545eb252cac752228f1e9d90955a3cf4e72cb116"1909"3c3d8e93ccb7e4826206ff58b3e05009ee82ab70943db3f18a32925d6d5aed1525c91673"1910"bd33846571af815b09bb236466807d935b5816a8be8e9becbe65d05d765bcc0bc3ae66c2"1911"5320ebe9fff712aa5b4931548b76b0fd58f6be6b83554435587b1725873172e130e1a3ca"1912"3d9d0425f4632d79cca0683780f266a0633230e4f3b25f87b0c390092f7b13c66ab5e31b"1913"5a58dbcac8dd26a0600bf85507057bb36e870dfae76da8847875a1a52e4596d5b4b0a211"1914"2435d27e1dc8dd5016d60feaf2838746d436a2983457b72e3357059b2bf1e9148bb0551a"1915"e2b27d5a39abd3d1a62c36331e26668e8baabc2a1ef218b5e7a51a9ca35795bcd54f403a"1916"188eafafb30d82896e45ddaea4f418629a1fb76a0f539c7114317bac1e2a8fba5a868bce"1917"40abd40f6b9ced3fa8c0329b4de5ca03cc84d75b8746ef31e6c8d0a0a79b4f747690928e"1918"be327f8bbe9374a0df4c39c845bf3322a49fda9455b36db5a9d6e4ea7d4326cf0e0f7cd8"1919"0ff74538f95cec01a38c188d1243221e9272ccc1053e30787c4cf697043cca6fc3730d2a"1920"431ecbf60d73ee667a3ab114c68d578c66dc1c659b346cb148c053980190353f6499bfef"1921"acfd1d73838d6dc1188c74dd72b690fb0481eee481a3fd9af1d4233f05d5ae33a7b10d7d"1922"d643406cb1f88d7dd1d77580dcbee6f757eeb2bfbcc940f2cddb820b2718264b1a64115c"1923"b85909352c44b13d4e70bbb374a8594d8af7f41f65b221bf54b8d1a7f8f9c7da563550cb"1924"2b062e7a7f21d5e07dd9da8d82e5a89074627597551c745718094c2eb316ca077526d27f"1925"9a589c461d891dc7cd1bc20ba3f464da53c97924219c87a0f683dfb3b3ac8793c59e78ac"1926"fac109439221ac599a6fd8d2754946d6bcba60784805f7958c9e34ff287ad1dbbc888848"1927"fa80cc4200dbb8c5e4224535906cbffdd0237a77a906c10ced740f9c0ce7821f2dbf8c8d"1928"7d41ecfcc7dfdc0846b98c78b765d01fb1eb15ff39149ab592e5dd1152665304bba85bbf"1929"4705751985aaaf31245361554d561a2337e3daeef58a826492fd886d5f18ef568c1e772e"1930"f6461170407695e3254eb7bf0c683811ddde5960140d959114998f08bdb24a104095987d"1931"3255d590e0dbd41ae32b1ae4f4ea4a4f011de1388034231e034756870c9f2d9f23788723"1932"27055a7de2b5e931dfb53e7780b6d4294bf094e08567025b026db9203b681565a1d52f30"1933"318d0ebe49471b22ba5fd62e1ed6c8966c99b853c9062246a1ace51ef7523c7bf93bef53"1934"d8a9cb96d6a04f0da1eca888df66e0380a72525a7ecc6115d08569a66248f6ba34e2341b"1935"fd01a78f7b3c1cfe0754e0d26cba2fa3f951ef14d5749ff8933b8aba06fa40fb570b467c"1936"54ce0d3f0bed21e998e5a36b3bc2f9e1ae29c4bab59c121af6fad67c0b45959cd6a86194"1937"14b90b4535fb95f86ca7e64502acc135eff4f8a3abe9dde84238fab7a7d402454a3f07ad"1938"ec05ec94b2891e0879037fae6acaa31dcecf3f85236ade946f5ad69ad4077beb65099285"1939"38ee09f2bc38e5704da67b5006b5e39cd765aafcd740c7dadb99d0c547126e1324610fcb"1940"7353dac2c110e803fca2b17485b1c4b78690bc4f867e6f043b2568889f67985a465a48eb"1941"ee915200589e915756d4968d26529c3ffe3dbe70e84c682ad08a0c68db571634fbb0210d"1942"c1b16b8b725886465c8c51f36a5e27d0f78e5643e051d3bddd512ce511f6bdf3dfe42759"1943"00c5fea9d248c2b3f36911ed0ff41a19f6445521f251724657ea8f795b3ead0928a1657f"1944"308dd7c7c1e7e490d9849df43becfa5cc25ed09ef614fd69ddc7e5e3147623901d647876"1945"fb60077ffc48c51ed7d02b35f6802e3715fc708a0c88b82fe9cba0a442d38d09ca5ae483"1946"21487bdef1794e7636bf7457dd2b51a391880c34d229438347e5fec8555fe263f08ba87b"1947"b16dcde529248a477628067d13d0cb3bf51776f4d39fb3fbc5f669e91019323e40360e4b"1948"78b6584f077bf9e03b66",1949 "ab7213f6becb980d40dc89fbda0ca39f225a2d33",1950},{1951 12392,1952"7ae3ca60b3a96be914d24980fb5652eb68451fed5fa47abe8e771db8301fbd5331e64753"1953"93d96a4010d6551701e5c23f7ecb33bec7dd7bade21381e9865d410c383a139cb4863082"1954"8e9372bd197c5b5788b6599853e8487bddfd395e537772fdd706b6a1de59c695d63427da"1955"0dc3261bce2e1ae3cd6de90ec45ecd7e5f14580f5672b6ccd8f9336330dffcd6a3612a74"1956"975afc08fb136450e25dc6b071ddfc28fca89d846c107fd2e4bd7a19a4ff6f482d62896d"1957"a583c3277e23ab5e537a653112cdf2306043b3cc39f5280bd744fe81d66f497b95650e7d"1958"dfd704efcb929b13e00c3e3a7d3cd53878af8f1506d9de05dba9c39a92604b394ea25acb"1959"a2cda7b4ae8b08098ba3f0fdea15359df76517be84377f33631c844313ac335aa0d590fe"1960"c472d805521f0905d44ca40d7391b292184105acd142c083761c1a038c4f5ed869ea3696"1961"99592a37817f64cb4205b66be1f1de6fa47a08e1bf1a94312fe61a29e71bab242af95a7b"1962"38d4fb412c682b30256d91e2a46b634535d02b495240cbdb842cbe17cba6a2b94073f3d5"1963"f9621ac92ddda66f98bed997216466b4bb0579d58945f8d7450808d9e285d4f1709d8a1d"1964"416aa57d4a1a72bfcbfecdda33de2cff3e90e0cc60c897c4663224fc5bbe8316a83c1773"1965"802837a57bc7e9238173ed41ea32fe5fe38e546014a16d5e80700d9bac7a84bb03902f31"1966"79e641f86f6bc383d656daf69801499633fb367ea7593195934c72bc9bf9624c0c845ebf"1967"c36eb7ad4b22fdfb45ca7d4f0d6708c69a21f6eaa6db6bde0f0bd9dc7ec9c6e24626d0a7"1968"8fbeeed4b391f871e80e6a9d207165832d4ff689296f9bca15dc03c7c0381659ea5335eb"1969"aafdc3e50d18e46b00f1844870d09c25afcdb0ff1ae69dd8f94f91aca6095ba6f2b6e594"1970"c4acfe9903485d21b684e31a6acc2162d40e1a7bb8114a860a07e76f5265666555f2418d"1971"f11ef8f7499656d12215f5da8d7d041ac72648d15d7661ad93b24f3f071334b0921d5bb0"1972"6f2c7ab09f5034518b5ae21cec379373e87d51c77d44a70c2337606aadeb9036716fd920"1973"a824e7ae18ce3de9f0ec3456f3454027d8c476b3f1854b240c309f6f9786fa8a073915d9"1974"7a019ce99aec3260c5f6b6346cd9c41cb9267f4475958e45289965548238c6b9f91a8784"1975"b4e0957ba8b73956012c9a2fc3428434b1c1679f6ed2a3e8e2c90238df428622046f668e"1976"e2b053f55e64ffd45600e05a885e3264af573bacee93d23d72a0222b5442ac80bc0a8b79"1977"4c2afcf3bc881d20c111f57e3450b50a703f3db1fc5de2076a006f3b7eed694b93269874"1978"3b03c2ed2684bad445e69a692e744c7ac3a04f1e0e52b7a6708076d1fbffdb3f1c995828"1979"7d5f884e29407030f2db06811092efd80ae08da9daec39744c5ecd3ca771663b8f4968d4"1980"2a88c2c9821c73ae2a5a4d9e2551f82c03583b9c4dea775423b4748d24eb604e8ee3159b"1981"a6de9bea5b22eed6264e011734ed02b2c74ce06dda890b8604ed7ba49e7bf30e28c9871b"1982"e90f5cead67eaf52b5d3181c822b10701219b28ef6f6bebfa278e38acf863e2a1d4b1e40"1983"fd8a0ac6ce31054446301046148bf10dc3ae3385e2026e7762bdc8003ffebc4263191a59"1984"c72f4f90db03e7d52808506b33bfe1dfa53f1a3daa152e83974fbe56cfd4e8f4e7f7806a"1985"084b9d0795b858100eced0b5355a72446f37779d6c67ade60a627b8077ae1f3996b03bc3"1986"a5c290651c8609f0d879fbf578cbab35086e1159dd6ddbe3bf7fb5654edcc8f09e4f80d0"1987"258c9376d7c53fb68f78d333b18b70170d9a11070790c956f5744c78c986b1baf08b7631"1988"7a65c5f07ae6f57eb0e65488659324d29709e3735623d0426e90aa8c4629bb080881150c"1989"02be1c004da84414ac001c2eb6138c26388f5a36d594f3acef0e69e2cb43b870efa84da0"1990"cff9c923a9880202aed64ad76260f53c45bb1584b3e388a909d13586094b924680006a1d"1991"25d4dd36c579a8ec9d3fa63c082d977a5a5021440b5314b51850f2daa6e6af6ae88cb5b1"1992"44242bceb1d4771e641101f8abfc3a9b19f2de64e35e76458ad22072ba57925d73015de5"1993"66c66fcaa28fdc656f90de967ad51afd331e246d74ed469d63dd7d219935c59984bd9629"1994"09d1af296eb3121d782650e7d038063bab5fa854aac77de5ffebeb53d263f521e3fc02ac"1995"70",1996 "b0e15d39025f5263e3efa255c1868d4a37041382",1997},{1998 13184,1999"fa922061131282d91217a9ff07463843ae34ff7f8c28b6d93b23f1ea031d5020aa92f660"2000"8c3d3df0ee24a8958fd41af880ee454e36e26438defb2de8f09c018607c967d2f0e8b80a"The first 2,000 of 3,330 lines.