#include <otawa/dfa/State.h>
Enumerator |
---|
NONE |
|
CONST |
|
INTERVAL |
|
CLP |
|
otawa::dfa::Value::Value |
( |
void |
| ) |
|
Build a constant value.
- Parameters
-
Build a value usually as an interval but if lo == up, it is considered as a constant.
- Parameters
-
lo | Lower value. |
up | Upper value. |
References _base, _count, _delta, _kind, CONST, and INTERVAL.
According to the triple (base, delta, count), build a value as:
- a constant (if count = 0),
- an interval (if delta = 1),
- a CLP, i.e., a value in { base + delta * k / 0 <= k <= count }
- Parameters
-
base | Base value. |
delta | Delta value. |
count | Count value. |
References _base, _count, _delta, _kind, base(), CLP, CONST, count(), and INTERVAL.
t::uint32 otawa::dfa::Value::base |
( |
void |
| ) |
const |
|
inline |
Get base value of a CLP.
- Returns
- Base CLP value.
Referenced by Value().
t::uint32 otawa::dfa::Value::count |
( |
void |
| ) |
const |
|
inline |
Get the count value of a CLP.
- Returns
- CLP count value.
Referenced by Value().
t::uint32 otawa::dfa::Value::delta |
( |
void |
| ) |
const |
|
inline |
Get the delta value of a CLP.
- Returns
- CLP delta value.
bool otawa::dfa::Value::isCLP |
( |
void |
| ) |
const |
|
inline |
bool otawa::dfa::Value::isConst |
( |
void |
| ) |
const |
|
inline |
bool otawa::dfa::Value::isInterval |
( |
void |
| ) |
const |
|
inline |
Get the kind of the value.
- Returns
- Value kind.
t::uint32 otawa::dfa::Value::low |
( |
void |
| ) |
const |
|
inline |
Get the lower value of the interval.
- Returns
- Interval lower value.
otawa::dfa::Value::operator bool |
( |
void |
| ) |
const |
|
inline |
Test if the value is none or not.
- Returns
- True if it is not none, false else.
References otawa::clp::NONE.
Parse value from a string.
Supported forms includes:
- INT (decimal, hexadecimal, binary) – simple integer value,
- [INT,INT] – interval of integers,
- (INT,INT, INT) – CLP value.
- Parameters
-
- Exceptions
-
io::IOException | If the string cannot be parsed. |
References delta.
Referenced by otawa::FlowFactLoader::scanRegSet().
t::uint32 otawa::dfa::Value::up |
( |
void |
| ) |
const |
|
inline |
Get the upper value of the interval.
- Returns
- Interval upper value.
t::uint32 otawa::dfa::Value::value |
( |
void |
| ) |
const |
|
inline |
Get the value for a constant.
- Returns
- Constant value.
kind_t otawa::dfa::Value::_kind |
|
private |
The documentation for this class was generated from the following files: