Class DebuggingEnumerationFormulaManager
- java.lang.Object
-
- org.sosy_lab.java_smt.delegate.debugging.DebuggingEnumerationFormulaManager
-
- All Implemented Interfaces:
EnumerationFormulaManager
public class DebuggingEnumerationFormulaManager extends Object implements EnumerationFormulaManager
-
-
Constructor Summary
Constructors Constructor Description DebuggingEnumerationFormulaManager(EnumerationFormulaManager pDelegate, org.sosy_lab.java_smt.delegate.debugging.DebuggingAssertions pDebugging)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormulaType.EnumerationFormulaType
declareEnumeration(String pName, Set<String> ppElementNames)
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
-
-
-
-
Constructor Detail
-
DebuggingEnumerationFormulaManager
public DebuggingEnumerationFormulaManager(EnumerationFormulaManager pDelegate, org.sosy_lab.java_smt.delegate.debugging.DebuggingAssertions pDebugging)
-
-
Method Detail
-
declareEnumeration
public FormulaType.EnumerationFormulaType declareEnumeration(String pName, Set<String> ppElementNames)
Description copied from interface:EnumerationFormulaManager
Declare an enumeration.- Specified by:
declareEnumeration
in interfaceEnumerationFormulaManager
- Parameters:
pName
- the unique name to identify the new enumeration type.ppElementNames
- 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
-
-