package de.bmoth.modelchecker;

import java.util.ArrayList;
import java.util.List;

public class ModelCheckingResult {
    private Boolean correct = false;
    private String message = "";
    private State lastState;

    ModelCheckingResult(String result) {
        if (result.equals("correct")) {
            correct = true;
        } else if (result.startsWith("check-sat")) {
            message = result;
        }
    }

    ModelCheckingResult(State state) {
        lastState = state;
    }

    public Boolean isCorrect() {
        return correct;
    }

    public String getMessage() {
        return message;
    }

    public State getLastState() {
        return lastState;
    }

    public static List<String> getPath(State state) {
        List<String> path = new ArrayList<>();
        for (State current = state.predecessor; current != null; current = current.predecessor) {
            path.add(current.toString());
        }
        return path;
    }
}

package de.bmoth.modelchecker;

import java.util.ArrayList;
import java.util.List;

public class ModelCheckingResult {
    private Boolean correct = false;
    private String message = "";
    private State lastState;

    ModelCheckingResult(String result) {
        if (result.equals("correct")) {
            correct = true;
        } else if (result.startsWith("check-sat") || result.equals("aborted")) {
            message = result;
        }
    }

    ModelCheckingResult(State state) {
        lastState = state;
    }

    public Boolean isCorrect() {
        return correct;
    }

    public String getMessage() {
        return message;
    }

    public State getLastState() {
        return lastState;
    }

    public static List<String> getPath(State state) {
        List<String> path = new ArrayList<>();
        for (State current = state.predecessor; current != null; current = current.predecessor) {
            path.add(current.toString());
        }
        return path;
    }
}

make ModelCheckingResult recognize "aborted" as a valid message