Class StatisticsEnumerationFormulaManager
java.lang.Object
org.sosy_lab.java_smt.delegate.statistics.StatisticsEnumerationFormulaManager
- All Implemented Interfaces:
EnumerationFormulaManager
public class StatisticsEnumerationFormulaManager
extends Object
implements EnumerationFormulaManager
-
Method Summary
Modifier and TypeMethodDescriptiondeclareEnumeration(String name, Set<String> elementNames) Declare an enumeration.equivalence(EnumerationFormula pEnumeration1, EnumerationFormula pEnumeration2) Make aBooleanFormulathat represents the equality of twoEnumerationFormulaof identical enumeration type.makeConstant(String pName, FormulaType.EnumerationFormulaType pType) Creates a constant of given enumeration type with exactly the given name.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, waitMethods inherited from interface org.sosy_lab.java_smt.api.EnumerationFormulaManager
declareEnumeration
-
Method Details
-
declareEnumeration
Description copied from interface:EnumerationFormulaManagerDeclare an enumeration.- Specified by:
declareEnumerationin interfaceEnumerationFormulaManager- Parameters:
name- the unique name to identify the new enumeration type.elementNames- names for all individual elements of this enumeration type.
-
makeConstant
Description copied from interface:EnumerationFormulaManagerCreates 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:
makeConstantin interfaceEnumerationFormulaManager
-
makeVariable
Description copied from interface:EnumerationFormulaManagerCreates 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:
makeVariablein interfaceEnumerationFormulaManager
-
equivalence
public BooleanFormula equivalence(EnumerationFormula pEnumeration1, EnumerationFormula pEnumeration2) Description copied from interface:EnumerationFormulaManagerMake aBooleanFormulathat represents the equality of twoEnumerationFormulaof identical enumeration type.- Specified by:
equivalencein interfaceEnumerationFormulaManager
-