package apronext
Module Apronext.TconsextSource
This file is an extension for the Tcons1 module from the apron Library
Note : It only adds function, nothing is removed. Extensions are at the end of the module
Make a tree expression constraint. Modifying later the linear expression (not advisable) modifies correspondingly the tree expression constraint and conversely, except for changes of environements
val string_of_typ : typ -> stringConvert a constraint type to a string (=,>=, or >)
val print : Format.formatter -> t -> unitPrint the tree expression constraint
Change the environement of the constraint for a super-environement. Raise Failure if it is not the case
val extend_environment_with : t -> Apron.Environment.t -> unitSide-effect version of the previous function
val get_env : t -> Apron.Environment.tGet the environement of the tree expression constraint
val get_texpr1 : t -> Apron.Texpr1.tGet the underlying linear expression. Modifying the linear expression (not advisable) modifies correspondingly the tree expression constraint and conversely, except for changes of environements
val get_tcons0 : t -> Apron.Tcons0.tGet the underlying tree expression constraint of level 0. Modifying the constraint of level 0 (not advisable) modifies correspondingly the tree expression constraint and conversely, except for changes of environements
Type array
Make an array of tree expression constraints with the given size and defined on the given environement. The elements are initialized with the constraint 0=0.
val array_print :
?first:(unit, Format.formatter, unit) format ->
?sep:(unit, Format.formatter, unit) format ->
?last:(unit, Format.formatter, unit) format ->
Format.formatter ->
Apron.Tcons1.earray ->
unitPrint an array of constraints
val array_get : Apron.Tcons1.earray -> int -> tGet the element of the given index (which is not a copy)
val array_set : Apron.Tcons1.earray -> int -> t -> unitSet the element of the given index (without any copy). The array and the constraint should be defined on the same environement; otherwise a Failure exception is raised.
Change the environement of the array of constraints for a super-environement. Raise Failure if it is not the case
Side-effect version of the previous function
Extensions
val eq :
?typ:Apron.Texpr1.typ ->
?round:Apron.Texpr1.round ->
Apron.Texpr1.t ->
Apron.Texpr1.t ->
tThe following functions build the constraints corresponding to 'e1 op e2', where op is repectivelly (=,<>,>=,<=,>,<). The type underlying expression will be Real if left unspecified, and its rounding mode will be Near if left unspecified
Higher-order functions utilities
fold function over generator.earay
forall function over generator.earay
exists function over generator.earay