01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: package de.uka.ilkd.key.strategy.termfeature;
09:
10: import de.uka.ilkd.key.logic.Term;
11:
12: /**
13: * this termfeature returns <tt>ZERO</tt> costs if the given term
14: * is non-rigid
15: */
16: public class IsNonRigidTermFeature extends BinaryTermFeature {
17:
18: public static final TermFeature INSTANCE = new IsNonRigidTermFeature();
19:
20: private IsNonRigidTermFeature() {
21: }
22:
23: protected boolean filter(Term term) {
24: return !term.isRigid();
25: }
26:
27: }
|