/* fsaor.c 3/11/94. * calculates "or" of two finite state automata * * SYNOPSIS: fsaor [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l/-h] filename1 filename2 outfilename * * Input is from filename1 and filename2, which should contain fsa's. * Output is to outfilename * * 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 * -l/-h large/huge hash-tables (for big examples)
*/
if (kbm_print_level > 1)
printf(" #Number of states of fsaor before minimisation = %d.\n",
fsaor->states->size); if (fsa_minimize(fsaor) == -1) exit(1); if (kbm_print_level > 1)
printf(" #Number of states of fsaor after minimisation = %d.\n",
fsaor->states->size);
base_prefix(fsaname1);
strcat(fsaname1, "_or");
wfile = fopen(outf, "w");
fsa_print(wfile, fsaor, fsaname1);
fclose(wfile); if (kbm_print_level > 0)
printf("#\"Or\" fsa with %d states computed.\n", fsaor->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.