SMTLIB
ParseFile
parse SMT-LIB file
ParseString
parse SMT-LIB script
Calling Sequence
Parameters
Description
Examples
Compatibility
ParseFile(fname)
ParseString(s)
fname
-
string; path to SMT-LIB file
s
string; SMT-LIB script
The ParseFile command parses the specified file in the SMT-LIB format and returns the a conjunction of all top-level asserted expression(s) as a Maple expression.
The ParseFile command behaves identically to ParseFile, but reads the SMT-LIB script from a string input instead of a file.
with⁡SMTLIB:
fname≔FileTools:-JoinPath⁡example/pythagorean.smt2,base=datadir
fname≔/maple/cbat/active/268316/data/example/pythagorean.smt2
pythagorean_triple≔ParseFile⁡fname
pythagorean_triple≔x2+y2=z2∧1≤x∧1≤y∧1≤z
Satisfy⁡pythagorean_tripleassuminginteger
x=4,y=3,z=5
The SMTLIB[ParseFile] and SMTLIB[ParseString] commands were introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
SMTLIB/Satisfiable
SMTLIB/Satisfy
SMTLIB/ToString
Download Help Document