Commit 07008761 authored by Sarah Grebing's avatar Sarah Grebing

interim

parent 2978eada
...@@ -14,6 +14,10 @@ public class StepIntoReverseCommand<T> extends DebuggerCommand<T> { ...@@ -14,6 +14,10 @@ public class StepIntoReverseCommand<T> extends DebuggerCommand<T> {
PTreeNode<T> statementBefore = statePointer.getStepInvOver(); PTreeNode<T> statementBefore = statePointer.getStepInvOver();
dbg.setStatePointer(statementBefore); dbg.setStatePointer(statementBefore);
} else {
if (statePointer.isLastNode() || statePointer.isFirstNode()) {
System.out.println("We need Sonderbehandlung here");
}
} }
} }
......
...@@ -957,11 +957,22 @@ public class DebuggerMain implements Initializable { ...@@ -957,11 +957,22 @@ public class DebuggerMain implements Initializable {
public void stepIntoReverse(ActionEvent actionEvent) { public void stepIntoReverse(ActionEvent actionEvent) {
LOGGER.debug("DebuggerMain.stepIntoReverser"); LOGGER.debug("DebuggerMain.stepIntoReverser");
try { try {
if (model.getDebuggerFramework().getStatePointer().isAtomic()) { PTreeNode<KeyData> statePointer = model.getDebuggerFramework().getStatePointer();
model.getDebuggerFramework().getStatePointerListener() if (statePointer.getStepInvInto() == null) {
.add(new StepIntoReverseHandler(model.getStatePointer())); if (statePointer.getStepInvOver() != null) {
if (statePointer.getStepInvOver().isAtomic()) {
model.getDebuggerFramework().getStatePointerListener()
.add(new StepIntoReverseHandler(model.getStatePointer()));
}
model.getDebuggerFramework().execute(new StepIntoReverseCommand<>());
} else {
if (statePointer.isLastNode() || statePointer.isFirstNode()) {
LOGGER.error("We need a special treatment");
} else {
LOGGER.error("There is no state to step into reverse");
}
}
} }
model.getDebuggerFramework().execute(new StepIntoReverseCommand<>());
} catch (DebuggerException e) { } catch (DebuggerException e) {
Utils.showExceptionDialog("", "", "", e); Utils.showExceptionDialog("", "", "", e);
LOGGER.error(e); LOGGER.error(e);
...@@ -1232,7 +1243,6 @@ public class DebuggerMain implements Initializable { ...@@ -1232,7 +1243,6 @@ public class DebuggerMain implements Initializable {
Proof proof = beforeNode.getData().getProof(); Proof proof = beforeNode.getData().getProof();
Node pnode = beforeNode.getData().getNode(); Node pnode = beforeNode.getData().getNode();
// stateAfterStmt.forEach(keyDataGoalNode -> System.out.println("keyDataGoalNode.getData().getNode().serialNr() = " + keyDataGoalNode.getData().getNode().serialNr()));
ptree.setProof(proof); ptree.setProof(proof);
ptree.setRoot(pnode); ptree.setRoot(pnode);
......
// Please select one of the following scripts. // Please select one of the following scripts.
// //
script autoScript(){
auto;
}
script test1234(){ script test1234(){
impRight; impRight;
autoScript;
//auto; //auto;
} }
script test23(){ script test23(){
impRight; impRight;
x:term := find(match `?rt ==>`); //x:term := find(match `?rt ==>`);
impLeft formula=x; //impLeft formula=x;
impLeft formula=find(match `?rt ==>`);
cases{ cases{
case match `q==>`: case match `q==>`:
......
Markdown is supported
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