Class CheckClosedTerm
java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.NonRecursive
de.uni_freiburg.informatik.ultimate.logic.CheckClosedTerm
public class CheckClosedTerm extends NonRecursive
Class to check if a term is closed. It is closed if it does not contain
a free variable. Use it as follows:
new CheckClosedTerm().isClosed()You can check multiple terms with one instance and it will cache results between checks.
- Author:
- Jochen Hoenicke
-
Nested Class Summary
Nested classes/interfaces inherited from class de.uni_freiburg.informatik.ultimate.logic.NonRecursive
NonRecursive.Walker -
Constructor Summary
Constructors Constructor Description CheckClosedTerm()The default constructor. -
Method Summary
Methods inherited from class de.uni_freiburg.informatik.ultimate.logic.NonRecursive
enqueueWalker, reset, run, run, toString
-
Constructor Details
-
CheckClosedTerm
public CheckClosedTerm()The default constructor.
-
-
Method Details
-
isClosed
Check if term t is closed. I.e., it contains no free term variable.- Parameters:
t- the term that is checked.- Returns:
- true if the term is closed; false otherwise.
-