Depth - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SMTLIB[Session]

  

Depth

  

query depth of SMTLIB session stack

  

Pop

  

pop one or more levels from SMTLIB session stack

  

Push

  

push zero or more levels onto SMTLIB session stack

  

Reset

  

reset SMTLIB session stack

 

Calling Sequence

Parameters

Description

Details

Examples

Compatibility

Calling Sequence

session:-Depth()

session:-Pop( m )

session:-Push()

session:-Reset()

Parameters

session

-

a SMTLIB[Session] object

m

-

(optional) positive integer

Description

• 

The session:-Depth() command returns the current depth of the stack associated with the SMTLIB session session. The depth of the stack of a fresh session is 0.

• 

The session:-Pop(m) command pops m levels off of the stack associated with the SMTLIB session session. The default value of m is 1.

• 

The session:-Push() command pushes a new level onto the stack associated with the SMTLIB session session.

• 

The session:-Reset() command clears all assertions in the SMTLIB session session and resets the stack depth to zero.

Details

• 

Popping the stack will delete all assertions made at the current stack level.

Examples

Test for the satisfiability of this simple Boolean problem.

withSMTLIB:

sessionSession

sessionSMTLIB Session13904568Variables: 0Stack Depth: 0

(1)

session:-Assert7<2x::integer

::

(2)

session:-Satisfiable

true

(3)

session:-Push&colon;

session:-Assertx<0::integer

::

(4)

session:-Satisfiable

false

(5)

session:-Pop&colon;

session:-Satisfiable

true

(6)

Compatibility

• 

The SMTLIB[Session][Depth], SMTLIB[Session][Pop], SMTLIB[Session][Push] and SMTLIB[Session][Reset] commands were introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

SMTLIB

SMTLIB[Session]