/* fsanot.c 3/11/94. * calculates "not" of a finite state automaton * * SYNOPSIS: fsanot [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l/-h] filename * Input is from filename, which should contain a fsa. * Output is to filename.not * * 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)
*/
fsanot = fsa_not(&fsain, op_store); if (fsanot == 0) exit(1);
fsa_clear(&fsain);
if (kbm_print_level > 1)
printf(" #Number of states of fsanot before minimisation = %d.\n",
fsanot->states->size); if (fsa_minimize(fsanot) == -1) exit(1); if (kbm_print_level > 1)
printf(" #Number of states of fsanot after minimisation = %d.\n",
fsanot->states->size);
strcat(fsaname, "_not");
wfile = fopen(outf, "w");
fsa_print(wfile, fsanot, fsaname);
fclose(wfile); if (kbm_print_level > 0)
printf("#\"Not\" fsa with %d states computed.\n", fsanot->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 ist noch experimentell.