Compare commits

..

2 Commits

Author SHA1 Message Date
xdrm-brackets bae568e3f5 minmod 2017-05-16 10:50:01 +02:00
xdrm-brackets ad1bec2a30 minfix 2017-05-16 10:49:00 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -104,15 +104,15 @@ int main(int argc, char* argv[]){
linkDots(&array, 1, 3, AUTOMATE_T, 0); // q1 --a0--> q3 linkDots(&array, 1, 3, AUTOMATE_T, 0); // q1 --a0--> q3
linkDots(&array, 1, 3, STRING_T, 1); // q1 --s1--> q3 linkDots(&array, 1, 3, STRING_T, 1); // q1 --s1--> q3
char str[40] = {0}; char str[80] = {0};
strcpy(str, "[null, \"abc\", \"def\", false, true, 12, -1.2, .54, -.3, 5., \"bla\\\"blo\\rbla\\n\"]\0"); strcpy(str, "[null, \"abc\", \"def\", false, true, 12, -1.2, .54, -.3, 5., \"bla\\\"blo\\rbla\\n\"]\0");
clock_t start, stop; clock_t start, stop;
unsigned int browsed = 0; unsigned int browsed = 0;
start = clock(); browsed = browse(&array, str, 0); stop = clock(); start = clock(); browsed = browse(&array, str, 0); stop = clock();
printf("browse '%s' : %d/%d\n", str, browsed, (int) strlen(str)); printf("browse '%s': %d/%d\n", str, browsed, (int) strlen(str));
printf(" (*) final_state: %d/%d\n", array.dCurrent, array.dFinal); printf(" (*) final_state: %d/%d\n", array.dCurrent, array.dFinal);
printf(" (*) in %d steps\n", array.steps); printf(" (*) in %d steps\n", array.steps);
printf(" (*) in %.3lf seconds\n\n", (double)(stop-start)/CLOCKS_PER_SEC); printf(" (*) in %.3lf seconds\n\n", (double)(stop-start)/CLOCKS_PER_SEC);
for( c = 0 ; c < array.n ; c++ ){ for( c = 0 ; c < array.n ; c++ ){