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: //
09: //
10:
11: package de.uka.ilkd.key.rule;
12:
13: import de.uka.ilkd.key.java.Services;
14: import de.uka.ilkd.key.logic.Constraint;
15: import de.uka.ilkd.key.logic.Name;
16: import de.uka.ilkd.key.proof.Goal;
17: import de.uka.ilkd.key.proof.decproc.AbstractDecisionProcedure;
18: import de.uka.ilkd.key.proof.decproc.DecisionProcedureICS;
19: import de.uka.ilkd.key.proof.decproc.DecisionProcedureTranslationFactory;
20:
21: /**
22: * Invokes the SRC ICS to solve an integer problem.
23: */
24: public class ICSIntegerRule extends AbstractIntegerRule {
25:
26: public ICSIntegerRule(DecisionProcedureTranslationFactory dptf) {
27: this (true, dptf);
28: }
29:
30: public ICSIntegerRule(boolean resultWindow,
31: DecisionProcedureTranslationFactory dptf) {
32: super (new Name("Decision Procedure ICS"), resultWindow, dptf);
33: }
34:
35: protected AbstractDecisionProcedure getDecisionProcedure(Goal goal,
36: Constraint userConstraint, Services services) {
37: return new DecisionProcedureICS(goal, userConstraint,
38: this .dptf, services);
39: }
40:
41: public AbstractIntegerRule clone(
42: DecisionProcedureTranslationFactory dptf) {
43: return new ICSIntegerRule(showResults, dptf);
44: }
45: }
|