public final class SmvExprPrinter
extends ru.ispras.fortress.expression.printer.MapBasedPrinter
Modifier and Type | Class and Description |
---|---|
static class |
SmvExprPrinter.ConstraintType
Types of NuXMV constraints.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUB_ENDING
Substituted variable suffix.
|
Constructor and Description |
---|
SmvExprPrinter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstant(ru.ispras.fortress.data.Data node)
Returns
Data description in SMV format. |
java.lang.String |
getConstraintDescription(SmvExprPrinter.ConstraintType type,
java.util.Collection<ru.ispras.fortress.expression.Node> nodes)
Returns the description of a constraint in SMV format using the given
SmvExprPrinter.ConstraintType
and the collection of nodes. |
java.lang.String |
getType(ru.ispras.fortress.data.DataType dataType)
Returns a data type in SMV format.
|
java.lang.String |
getType(ru.ispras.fortress.data.DataType dataType,
java.util.List<ru.ispras.castle.ast.Range> ranges)
Returns a data type in SMV format.
|
java.lang.String |
getType(ru.ispras.fortress.expression.NodeVariable variable)
Returns variable's data type in SMV format.
|
void |
printIntsNormal()
Disables integer printing as 32-bit vector.
|
static java.lang.String |
replaceLogicValues(java.lang.String string)
Replaces lowercase
true and false values with their SMV equivalents. |
void |
setBin()
Sets binary bit vector printing mode.
|
void |
setHex()
Sets hexadecimal bit vector printing mode.
|
public static final java.lang.String SUB_ENDING
public SmvExprPrinter()
public static java.lang.String replaceLogicValues(java.lang.String string)
true
and false
values with their SMV equivalents.string
- - the specified string.public void printIntsNormal()
public void setBin()
public void setHex()
public java.lang.String getConstraintDescription(SmvExprPrinter.ConstraintType type, java.util.Collection<ru.ispras.fortress.expression.Node> nodes)
SmvExprPrinter.ConstraintType
and the collection of nodes.type
- - the specified constraint type.nodes
- - the specified node collection.public java.lang.String getConstant(ru.ispras.fortress.data.Data node)
Data
description in SMV format.node
- - the specified data node.public java.lang.String getType(ru.ispras.fortress.data.DataType dataType)
dataType
- - the specified DataType
.public java.lang.String getType(ru.ispras.fortress.expression.NodeVariable variable)
variable
- - the specified NodeVariable
.public java.lang.String getType(ru.ispras.fortress.data.DataType dataType, java.util.List<ru.ispras.castle.ast.Range> ranges)
dataType
- - the specified DataType
.ranges
- - the specified map size (if the dataType corresponds to map).