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.feature;
09:
10: import de.uka.ilkd.key.logic.PosInOccurrence;
11: import de.uka.ilkd.key.proof.Goal;
12: import de.uka.ilkd.key.rule.RuleApp;
13:
14: public class FocusHasConstraintFeature extends BinaryFeature {
15:
16: public final static Feature INSTANCE = new FocusHasConstraintFeature();
17:
18: private FocusHasConstraintFeature() {
19: }
20:
21: protected boolean filter(RuleApp app, PosInOccurrence pos, Goal goal) {
22: assert pos != null : "Feature is only applicable to rules with find";
23: return !pos.constrainedFormula().constraint().isBottom();
24: }
25: }
|