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 |
ASSIGNMENT_DECLARATION
Assignment section header.
|
static java.lang.String |
CTL_SPEC_DECLARATION
CTL specification header.
|
static java.lang.String |
DEFINE_DECLARATION
Definition section header.
|
static java.lang.String[] |
FORBIDDEN_NAMES
SMV language reserved words.
|
static java.lang.String |
INPUT_VARIABLE_DECLARATION
Input variable declaration section header.
|
static int |
INTEGER_SIZE
The size of integer type.
|
static java.lang.String |
LTL_SPEC_DECLARATION
LTL specification header.
|
static java.lang.String |
MODULE_DECLARATION
Announces module declaration.
|
static java.lang.String |
SUB_ENDING
Substituted variable suffix.
|
static java.lang.String |
VARIABLE_DECLARATION
Variable declaration section header.
|
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 |
getConstraintDescription(SmvExprPrinter.ConstraintType type,
ru.ispras.fortress.expression.Node node)
Returns the description of a constraint in SMV format using the given
SmvExprPrinter.ConstraintType
and Node . |
java.lang.String |
getType(ru.ispras.fortress.data.DataType dataType)
Returns a data type in SMV format.
|
void |
printIntsAsBv()
Enables integer printing as 32-bit vector.
|
void |
printIntsNormal()
Disables integer printing as 32-bit vector.
|
void |
setBin()
Sets binary bit vector printing mode.
|
void |
setDec()
Sets decimal bit vector printing mode.
|
void |
setHex()
Sets hexadecimal bit vector printing mode.
|
public static final java.lang.String MODULE_DECLARATION
public static final java.lang.String VARIABLE_DECLARATION
public static final java.lang.String INPUT_VARIABLE_DECLARATION
public static final java.lang.String ASSIGNMENT_DECLARATION
public static final java.lang.String DEFINE_DECLARATION
public static final java.lang.String CTL_SPEC_DECLARATION
public static final java.lang.String LTL_SPEC_DECLARATION
public static final int INTEGER_SIZE
public static final java.lang.String SUB_ENDING
public static final java.lang.String[] FORBIDDEN_NAMES
public SmvExprPrinter()
public void printIntsAsBv()
public void printIntsNormal()
public void setBin()
public void setDec()
public void setHex()
public java.lang.String getConstraintDescription(SmvExprPrinter.ConstraintType type, ru.ispras.fortress.expression.Node node)
SmvExprPrinter.ConstraintType
and Node
.type
- - the specified constraint type.node
- - the specified expression node.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
.