Commit e8a49bad authored by Alexander Weigl's avatar Alexander Weigl
Browse files

load partial proofs

parent 3fa31c5c
Pipeline #15819 passed with stages
in 9 minutes and 29 seconds
......@@ -5,6 +5,7 @@ import de.uka.ilkd.key.api.ProofApi;
import de.uka.ilkd.key.api.ProofManagementApi;
import de.uka.ilkd.key.control.KeYEnvironment;
import de.uka.ilkd.key.proof.Goal;
import de.uka.ilkd.key.proof.Proof;
import de.uka.ilkd.key.proof.init.ProofInputException;
......@@ -16,11 +17,13 @@ import;
import javafx.concurrent.Task;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.key_project.util.collection.ImmutableList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
* Facade to KeY. Build part of the interpreter
......@@ -225,8 +228,13 @@ public class KeYProofFacade {
public Collection<GoalNode<KeyData>> getPseudoGoals() {
KeyData data = new KeyData(proof.get().root(), getEnvironment(), getProof());
return Collections.singleton(new GoalNode<>(null, data, data.getNode().isClosed()));
Proof p = getProof();
KeYEnvironment env = getEnvironment();
ImmutableList<Goal> openGoals = p.getSubtreeGoals(p.root());
List<GoalNode<KeyData>> goals = ->
new GoalNode<>(null, new KeyData(g, env, p), false))
return goals;
public enum ProofState {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment