All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.key_project.slicing.graph.PseudoOutput Maven / Gradle / Ivy

Go to download

Computiation of the proof core (the essential rule applications to close a proof)

There is a newer version: 2.12.2
Show newest version
/* 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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy