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
session:-Depth()
session:-Pop( m )
session:-Push()
session:-Reset()
session
-
a SMTLIB[Session] object
m
(optional) positive integer
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.
Popping the stack will delete all assertions made at the current stack level.
Test for the satisfiability of this simple Boolean problem.
with⁡SMTLIB:
session≔Session⁡
session≔SMTLIB Session13904568Variables: 0Stack Depth: 0
session:-Assert⁡7<2⁢x::integer
::ℤ
session:-Satisfiable⁡
true
session:-Push⁡:
session:-Assert⁡x<0::integer
false
session:-Pop⁡:
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
Download Help Document