16 #ifndef __APXX_TCONS1_HH 17 #define __APXX_TCONS1_HH 19 #include "ap_tcons1.h" 266 void print(FILE* stream=stdout)
const;
491 operator std::vector<tcons1>()
const;
510 void print(FILE* stream=stdout)
const;
void set_modulo(const scalar &c)
Sets the extra scalar modulo to c (copied).
Definition: apxx_tcons1.hh:161
void set(size_t i, const tcons1 &x)
Changes the constraint at index i.
Definition: apxx_tcons1.hh:485
bool is_interval_linear() const
Whether the expression is linear and there is no rounding.
Definition: apxx_tcons1.hh:284
size_t size() const
Returns the size of the array.
Definition: apxx_tcons1.hh:457
void extend_environment(const environment &e)
Extends the environment of the expression.
Definition: apxx_tcons1.hh:180
Definition: apxx_abstract0.hh:27
scalar & get_modulo()
Returns a (modifiable) reference to the extra scalar.
Definition: apxx_tcons1.hh:228
tcons1 get(size_t i) const
Returns a copy of the constraint at index i.
Definition: apxx_tcons1.hh:477
Array of arbitrary constraints (ap_tcons1_array_t wrapper).
Definition: apxx_tcons1.hh:337
tcons1_array(const tcons1_array &x)
(Deep) copy.
Definition: apxx_tcons1.hh:347
friend tcons1 operator<=(const texpr1::builder &a, const texpr1::builder &b)
Makes a constraint b-a >= 0.
Definition: apxx_tcons1.hh:99
const tcons0 & get_tcons0() const
Returns a reference to the underlying tcons0.
Definition: apxx_tcons1.hh:198
friend tcons1 operator>(const texpr1::builder &a, const texpr1::builder &b)
Makes a constraint a-b > 0.
Definition: apxx_tcons1.hh:106
friend tcons1 operator>=(const texpr1::builder &a, const texpr1::builder &b)
Makes a constraint a-b >= 0.
Definition: apxx_tcons1.hh:92
Level 0 abstract value (ap_abstract0_t* wrapper).
Definition: apxx_abstract0.hh:78
friend tcons1 operator<(const texpr1::builder &a, const texpr1::builder &b)
Makes a constraint b-a > 0.
Definition: apxx_tcons1.hh:113
ap_tcons1_t l
Structure managed by APRON.
Definition: apxx_tcons1.hh:43
const tcons0_array & get_tcons0_array() const
Returns a reference to the underlying tcons0_array.
Definition: apxx_tcons1.hh:467
ap_constyp_t & get_constyp()
Returns a (modifiable) reference to the constraint type.
Definition: apxx_tcons1.hh:208
Temporary expression nodes used when constructing a texpr1.
Definition: apxx_texpr1.hh:561
bool has_texpr() const
Whether the constraint contains a valid expression tree.
Definition: apxx_tcons1.hh:223
~tcons1()
Frees the constraint, including the embedded expression tree and optional modulo scalar.
Definition: apxx_tcons1.hh:83
bool is_scalar() const
Whether all occurring constants are scalar.
Definition: apxx_tcons1.hh:299
Level 1 environment (ap_environment_t wrapper).
Definition: apxx_environment.hh:51
environment get_environment() const
Returns the environment of the expression (with incremented reference count).
Definition: apxx_tcons1.hh:193
friend std::ostream & operator<<(std::ostream &os, const tcons1_array &s)
Printing.
Definition: apxx_tcons1.hh:513
tcons1(const tcons1 &x)
(Deep) copy of a constraint.
Definition: apxx_tcons1.hh:53
const ap_tcons1_t * get_ap_tcons1_t() const
Returns a pointer to the internal APRON object stored in *this.
Definition: apxx_tcons1.hh:308
friend tcons1 operator==(const texpr1::builder &a, const texpr1::builder &b)
Makes a constraint a-b == 0.
Definition: apxx_tcons1.hh:120
void print(FILE *stream=stdout) const
Prints to a C stream.
Definition: apxx_tcons1.hh:522
Level 1 linear constraint (ap_lincons1_t wrapper).
Definition: apxx_lincons1.hh:40
void extend_environment(const environment &e)
Extends the environment of all expressions in array.
Definition: apxx_tcons1.hh:445
Level 1 abstract value (ap_abstract1_t wrapper).
Definition: apxx_abstract1.hh:42
Level 0 arbitrary constraint (ap_tcons0_t wrapper).
Definition: apxx_tcons0.hh:47
void print(FILE *stream=stdout) const
Prints to a C stream.
Definition: apxx_tcons1.hh:270
Inherited by most wrappers to map new and delete to malloc and free.
Definition: apxx_scalar.hh:69
bool is_interval_cst() const
Whether the expression is constant (i.e., has no dimension leaves).
Definition: apxx_tcons1.hh:279
tcons1(ap_tcons1_t l)
Internal use only. Performs a shallow copy and takes ownership of the contents.
Definition: apxx_tcons1.hh:29
bool is_interval_polyfrac() const
Whether the expression is a polynomial fraction and there is no rounding.
Definition: apxx_tcons1.hh:294
void resize(size_t size)
Resizes the array.
Definition: apxx_tcons1.hh:440
bool has_modulo() const
Returns whether the constraint has a valid extra scalar (used in modulo constraints).
Definition: apxx_tcons1.hh:218
tcons1_array & operator=(const tcons1_array &x)
(Deep) copy.
Definition: apxx_tcons1.hh:396
friend tcons1 operator!=(const texpr1::builder &a, const texpr1::builder &b)
Makes a constraint a-b != 0.
Definition: apxx_tcons1.hh:127
tcons1 & operator=(const tcons1 &x)
(Deep) copy.
Definition: apxx_tcons1.hh:138
void set_texpr(const texpr1::builder &c)
Sets the underlying expression tree to c (copied).
Definition: apxx_tcons1.hh:166
tcons0 & get_tcons0()
Returns a (modifiable) reference to the underlying tcons0.
Definition: apxx_tcons1.hh:203
ap_tcons1_array_t a
Structure managed by APRON.
Definition: apxx_tcons1.hh:341
Iterators to traverse and mutate an expression tree.
Definition: apxx_texpr1.hh:386
tcons1_array(ap_tcons1_array_t &a)
Internal use only. Performs a shallow copy and takes ownership of the contents.
Definition: apxx_tcons1.hh:331
Iterators to traverse a constant expression tree.
Definition: apxx_texpr1.hh:183
friend std::ostream & operator<<(std::ostream &os, const tcons1 &s)
Printing.
Definition: apxx_tcons1.hh:257
bool is_interval_polynomial() const
Whether the expression is polynomial and there is no rounding.
Definition: apxx_tcons1.hh:289
Level 1 arbitrary constraint (ap_tcons1_t wrapper).
Definition: apxx_tcons1.hh:39
Array of arbitrary constraints (ap_tcons0_array_t wrapper).
Definition: apxx_tcons0.hh:350
Unsatisfiable constraint, to simplify initialisations and assignments.
Definition: apxx_lincons0.hh:28
~tcons1_array()
Frees the space used by the array and all its constraints.
Definition: apxx_tcons1.hh:387
texpr1::iterator get_texpr()
Returns an iterator to the root of the underlying expression tree.
Definition: apxx_tcons1.hh:240
environment get_environment() const
Returns the environment shared by all constraints (with incremented reference count).
Definition: apxx_tcons1.hh:462
const ap_tcons1_array_t * get_ap_tcons1_array_t() const
Returns a pointer to the internal APRON object stored in *this.
Definition: apxx_tcons1.hh:531
Scalar (ap_scalar_t wrapper).
Definition: apxx_scalar.hh:89