org.key_project.slicing.graph.PseudoOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keyext.slicing Show documentation
Show all versions of keyext.slicing Show documentation
Computiation of the proof core (the essential rule applications to close a proof)
/* This file is part of KeY - https://key-project.org
* KeY is licensed under the GNU General Public License Version 2
* SPDX-License-Identifier: GPL-2.0-only */
package org.key_project.slicing.graph;
import de.uka.ilkd.key.proof.BranchLocation;
/**
* Graph node used if a rule application did not produce any outputs.
* This is required to ensure that all rule application are present in the graph.
*
* @author Arne Keller
*/
public class PseudoOutput extends GraphNode {
/**
* Construct a new pseudo output node.
*/
public PseudoOutput() {
super(BranchLocation.ROOT); // branch location of pseudo outputs does not matter
}
@Override
public GraphNode popLastBranchID() {
return this;
}
@Override
public String toString(boolean abbreviated, boolean omitBranch) {
return "pseudo output " + Integer.toHexString(hashCode());
}
}