smdtconv(1)

NAME
smdtconv - convert a logic program into a DeReS default theory

SYNOPSIS
smdtconv [options] [file...]

DESCRIPTION
smdtconv converts a smodels 1-format logic program into three files: a theory file (.thc), a defaults file (.dc), and a main file (.dt). Currently, the .thc file generated is empty; facts are generated as defaults with empty prerequisites and justifications. Eventually, facts may be placed into the .thc file instead. If smdtconv is run on the output of stratify, the resulting .dc file will be compatible with the .str file produced by stratify.

OPTIONS

-t, --time
    Perform timing. The CPU time in seconds (as measured by clock(3)) is displayed to stderr after the conversion is performed. This is the default.

-n, --no-time
    Do not display timing information.

-V, --verbose
    Display extra status information to stderr. This flag causes smdtconv to print a message when entering each phase of processing.

-m, --messages
    Display only error messages (and possibly timing information, depending on the state of the -t and -n flags) to stderr.

-q, --quiet
    Do not display any messages (other than perhaps timing information) to stderr.

-o filename, --output=filename
    Send the output to filename.dt, filename.dc, and filename.thc. The default is “m2dt”. There is currently no way to give the various result files different base names.

-v, --version
    Print version information to stdout. The information indicates the version numbers of smdtconv, liblp, and lpsms.

-h, --help
    Display usage information to stdout.

EXAMPLE USAGE
smdtconv -o prog1 p1.ord -q -n Convert p1.ord into DeReS format, placing the output in prog1.dt, prog1.thc, and prog1.dc; display no information to stdout or stderr. smdtconv prog2.ord -m Convert prog2.ord into DeReS format, placing the output in sm2dt.dt, sm2dt.thc, and sm2dt.dc; display only error messages and timing information to stderr.

AUTHOR
Neil Moore <neil@cs.uky.edu> smdtconv is Copyright © 1998-1999 The University of Kentucky. See the file COPYRIGHT in the lpsms distribution for details.

BUGS
smdtconv does not currently support the smodels 2 format. lparse can produce both smodels 1 and 2 format programs, and we do not deal with smodels 2 special rule types, so support for the smodels 2 format is not a high priority. The user should be allowed to give the theory (.thc), default (.dc), and main (.dt) files different base names.

SEE ALSO
simplify(1), stratify(1), sm2dt(1), sderes(1), lderes(1).