This file is an extension for the Lincons1 module from the apron Library
Note : It only adds function, nothing is removed. Extensions are at the end of the module
type t = Apron.Lincons1.t
val make : Apron.Linexpr1.t ->Apron.Lincons1.typ ->t
Make a linear constraint. Modifying later the linear expression (not advisable) modifies correspondingly the linear constraint and conversely, except for changes of environements
val set_list :
t->(Apron.Coeff.t * Apron.Var.t) list->Apron.Coeff.t option->
unit
Set simultaneously a number of coefficients.
set_list expr [(c1,"x"); (c2,"y")] (Some cst) assigns coefficients c1 to variable "x", coefficient c2 to variable "y", and coefficient cst to the constant. If (Some cst) is replaced by None, the constant coefficient is not assigned.
val set_array :
t->(Apron.Coeff.t * Apron.Var.t) array->Apron.Coeff.t option->
unit
Set simultaneously a number of coefficients, as set_list.
Get the underlying linear expression. Modifying the linear expression (not advisable) modifies correspondingly the linear constraint and conversely, except for changes of environements
Get the underlying linear constraint of level 0. Modifying the constraint of level 0 (not advisable) modifies correspondingly the linear constraint and conversely, except for changes of environements
Type array
val array_make : Apron.Environment.t ->int ->Apron.Lincons1.earray
Make an array of linear constraints with the given size and defined on the given environement. The elements are initialized with the constraint 0=0.
Get the element of the given index (which is not a copy)
val array_set : Apron.Lincons1.earray ->int ->t-> unit
Set 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.
val array_extend_environment :
Apron.Lincons1.earray ->Apron.Environment.t ->Apron.Lincons1.earray
Change the environement of the array of constraints for a super-environement. Raise Failure if it is not the case
val array_extend_environment_with :
Apron.Lincons1.earray ->Apron.Environment.t ->
unit