timers
This module provides the interface to talk about timers. The Implicit Ranking Timers library supports two modes of timers:
- Uninterpreted (
unint,u):Timeis an uninterpreted sort with axioms that make it behave as expected. - Interpreted (
int,i):Timeis expressed with interpreted integers, with infinity represented as -1.
Time expressions (of sort Time) are never created directly,
but through temporal formulas
(see proofs.Proof.t).
When running an example the mode can be configured
by setting the environment variable TIMERS:
make examples/ticket.py TIMERS=<mode>
where <mode> is either unint or int.
The default mode is int (interpreted integers).
Time sort. Should not be instantiated directly.
Inherited Members
Variadic callable returning a Time expression.
A function with signature:
def time_fun(*args: z3.ExprRef) -> Time: ...
The usual way of producing a TimeFun is by calling proofs.Proof.t.
Return a formula expressing that the timer expression is zero.
Parameters
- timer_expr: The timer expression to check.
Returns
Formula expressing that the timer is zero.
Return a formula expressing that the timer expression is finite.
Parameters
- timer_expr: The timer expression to check.
Returns
Formula expressing that the timer is finite.
Return a formula expressing that the timer expression is infinite.
Parameters
- timer_expr: The timer expression to check.
Returns
Formula expressing that the timer is infinite.
Return a formula expressing that the timer expression is non-zero.
Parameters
- timer_expr: The timer expression to check.
Returns
Formula expressing that the timer is non-zero.
Return a formula expressing that the timer expression is decreasable (finite and non-zero).
Parameters
- timer_expr: The timer expression to check.
Returns
Formula expressing that the timer is decreasable.