ParseFile - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


SMTLIB

  

ParseFile

  

parse SMT-LIB file

  

ParseString

  

parse SMT-LIB script

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ParseFile(fname)

ParseString(s)

Parameters

fname

-

string; path to SMT-LIB file

s

-

string; SMT-LIB script

Description

• 

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.

Examples

> 

with⁡SMTLIB:

> 

fname≔FileTools:-JoinPath⁡example/pythagorean.smt2,base=datadir

fname≔/maple/cbat-build/active/297794/data/example/pythagorean.smt2

(1)
> 

pythagorean_triple≔ParseFile⁡fname

pythagorean_triple≔x2+y2=z2∧1≤x∧1≤y∧1≤z

(2)
> 

Satisfy⁡pythagorean_tripleassuminginteger

x=4,y=3,z=5

(3)

Compatibility

• 

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

SMTLIB/Satisfiable

SMTLIB/Satisfy

SMTLIB/ToString