Class SynchronizedEnumerationFormulaManager
- java.lang.Object
-
- org.sosy_lab.java_smt.delegate.synchronize.SynchronizedEnumerationFormulaManager
-
- All Implemented Interfaces:
EnumerationFormulaManager
public class SynchronizedEnumerationFormulaManager extends Object implements EnumerationFormulaManager
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormulaType.EnumerationFormulaType
declareEnumeration(String name, Set<String> elementNames)
Declare an enumeration.BooleanFormula
equivalence(EnumerationFormula pEnumeration1, EnumerationFormula pEnumeration2)
Make aBooleanFormula
that represents the equality of twoEnumerationFormula
of identical enumeration type.EnumerationFormula
makeConstant(String pName, FormulaType.EnumerationFormulaType pType)
Creates a constant of given enumeration type with exactly the given name.EnumerationFormula
makeVariable(String pVar, FormulaType.EnumerationFormulaType pType)
Creates a variable of given enumeration type with exactly the given name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sosy_lab.java_smt.api.EnumerationFormulaManager
declareEnumeration
-
-
-
-
Method Detail
-
declareEnumeration
public FormulaType.EnumerationFormulaType declareEnumeration(String name, Set<String> elementNames)
Description copied from interface:EnumerationFormulaManager
Declare an enumeration.- Specified by:
declareEnumeration
in interfaceEnumerationFormulaManager
- Parameters:
name
- the unique name to identify the new enumeration type.elementNames
- names for all individual elements of this enumeration type.
-
makeConstant
public EnumerationFormula makeConstant(String pName, FormulaType.EnumerationFormulaType pType)
Description copied from interface:EnumerationFormulaManager
Creates a constant of given enumeration type with exactly the given name. This constant (symbol) needs to be an element from the given enumeration type.- Specified by:
makeConstant
in interfaceEnumerationFormulaManager
-
makeVariable
public EnumerationFormula makeVariable(String pVar, FormulaType.EnumerationFormulaType pType)
Description copied from interface:EnumerationFormulaManager
Creates a variable of given enumeration type with exactly the given name.This variable (symbol) represents a "String" for which the SMT solver needs to find a model.
Please make sure that the given name is valid in SMT-LIB2. Take a look at
FormulaManager.isValidName(java.lang.String)
for further information.This method does not quote or unquote the given name, but uses the plain name "AS IS".
Formula.toString()
can return a different String than the given one.- Specified by:
makeVariable
in interfaceEnumerationFormulaManager
-
equivalence
public BooleanFormula equivalence(EnumerationFormula pEnumeration1, EnumerationFormula pEnumeration2)
Description copied from interface:EnumerationFormulaManager
Make aBooleanFormula
that represents the equality of twoEnumerationFormula
of identical enumeration type.- Specified by:
equivalence
in interfaceEnumerationFormulaManager
-
-