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.soundness;
12:
13: import de.uka.ilkd.key.java.Services;
14: import de.uka.ilkd.key.logic.Constraint;
15: import de.uka.ilkd.key.logic.Term;
16: import de.uka.ilkd.key.rule.SyntacticalReplaceVisitor;
17: import de.uka.ilkd.key.rule.inst.SVInstantiations;
18:
19: public class SVPrefixCollectorSVI extends SVPrefixCollector {
20:
21: private SVInstantiations svi;
22:
23: public SVPrefixCollectorSVI(SVInstantiations p_svi,
24: SVTypeInfos p_svTypeInfos, Services p_services) {
25: super (p_svTypeInfos, p_services);
26: svi = p_svi;
27: }
28:
29: public SVInstantiations getSVInstantiations() {
30: return svi;
31: }
32:
33: public void collect(Term p_term) {
34: SyntacticalReplaceVisitor srv = new SyntacticalReplaceVisitor(
35: getServices(), getSVInstantiations(),
36: Constraint.BOTTOM, false, null, true, false);
37:
38: p_term.execPostOrder(srv);
39:
40: srv.getTerm().execPostOrder(this);
41: }
42:
43: }
|