/* fsaconcat.c 9/2/99. * calculates starenation of two finite state automata * * SYNOPSIS: * fsastar [-ip d/s[dr]] [-op d/s] [-silent] [-v] filename * * Input is from filename, which should contain an fsa. * Output is to filename.star. * * OPTIONS: * -ip d/s[dr] input in dense or sparse format - dense is default * -op d/s output in dense or sparse format - default is as in current * value of table->printing_format, in the fsa. * -v verbose * -silent no diagnostics
*/
fsastarnd = fsa_star(&fsain, TRUE); if (fsastarnd == 0) exit(1);
if (fsastarnd->flags[NFA]) {
strcpy(tempfilename, inf);
strcat(tempfilename, "temp_mid_XXX"); if (kbm_print_level > 1)
printf(" #Number of states of fsastar before determinimization = %d.\n",
fsastarnd->states->size);
fsastar =
nfa_determinize(fsastarnd, op_store, TRUE, TRUE, FALSE, tempfilename); if (fsastar == 0) exit(1);
tfree(fsastarnd);
} else {
fsastar = fsastarnd;
fsastar->table->printing_format = op_store;
} if (kbm_print_level > 1)
printf(" #Number of states of fsastar before minimization = %d.\n",
fsastar->states->size); if (fsa_minimize(fsastar) == -1) exit(1); if (kbm_print_level > 1)
printf(" #Number of states of fsastar after minimization = %d.\n",
fsastar->states->size);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.