Commit c62ccd21 authored by Sarah Grebing's avatar Sarah Grebing

Sysout commented

parent ef5271b4
Pipeline #18042 failed with stages
in 11 seconds
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
# Execute this in this folder. # Execute this in this folder.
# Set to key/key/deployment/components/ # Set to key/key/deployment/components/
#COMPONENTS=${COMPONENTS:-/home/sarah/Documents/KIT_Mitarbeiter/KeYDevelopment/KeYGitDir/key/key/deployment/components/} COMPONENTS=${COMPONENTS:-/home/sarah/Documents/KIT_Mitarbeiter/KeYDevelopment/KeYGitDir/key/key/deployment/components/}
#COMPONENTS=$HOME/work/key/key/deployment/components/ #COMPONENTS=$HOME/work/key/key/deployment/components/
COMPONENTS=lib/components/ #COMPONENTS=lib/components/
......
...@@ -197,7 +197,11 @@ public class PrettyPrinter extends DefaultASTVisitor<Void> { ...@@ -197,7 +197,11 @@ public class PrettyPrinter extends DefaultASTVisitor<Void> {
@Override @Override
public Void visit(TermLiteral termLiteral) { public Void visit(TermLiteral termLiteral) {
s.append(String.format("`%s`", termLiteral.getText())); String termLit = termLiteral.getText();
if (termLit.contains("\n")) {
termLit = termLit.trim();
}
s.append(String.format("`%s`", termLit));
return super.visit(termLiteral); return super.visit(termLiteral);
} }
......
...@@ -268,9 +268,9 @@ public class InteractiveModeController { ...@@ -268,9 +268,9 @@ public class InteractiveModeController {
map.put("#2", call.getCommand()); map.put("#2", call.getCommand());
EngineState estate = new EngineState(g.proof()); EngineState estate = new EngineState(g.proof());
estate.setGoal(g); estate.setGoal(g);
System.out.println("on = " + map.get("on")); //System.out.println("on = " + map.get("on"));
System.out.println("formula = " + map.get("formula")); //System.out.println("formula = " + map.get("formula"));
System.out.println("occ = " + map.get("occ")); //System.out.println("occ = " + map.get("occ"));
RuleCommand.Parameters cc = c.evaluateArguments(estate, map); //reflection exception RuleCommand.Parameters cc = c.evaluateArguments(estate, map); //reflection exception
AbstractUserInterfaceControl uiControl = new DefaultUserInterfaceControl(); AbstractUserInterfaceControl uiControl = new DefaultUserInterfaceControl();
...@@ -300,10 +300,14 @@ public class InteractiveModeController { ...@@ -300,10 +300,14 @@ public class InteractiveModeController {
cases.put(last.getData().getNode(), caseForSubNode.getBody()); cases.put(last.getData().getNode(), caseForSubNode.getBody());
} }
} else { } else {
KeyData kdn = new KeyData(kd, ngoals.get(0).node()); if (ngoals.size() == 0) {
goals.add(last = new GoalNode<>(expandedNode, kdn, kdn.getNode().isClosed())); cases.get(g).add(call);
Node currentNode = last.getData().getNode(); } else {
cases.get(findRoot(currentNode)).add(call); KeyData kdn = new KeyData(kd, ngoals.get(0).node());
goals.add(last = new GoalNode<>(expandedNode, kdn, kdn.getNode().isClosed()));
Node currentNode = last.getData().getNode();
cases.get(findRoot(currentNode)).add(call);
}
} }
if (last != null) if (last != null)
model.setSelectedGoalNodeToShow(last); model.setSelectedGoalNodeToShow(last);
......
...@@ -317,7 +317,7 @@ public class ScriptController { ...@@ -317,7 +317,7 @@ public class ScriptController {
lastScriptArea = area; lastScriptArea = area;
lastRegion = r; lastRegion = r;
} else { } else {
logger.error("Could not find editor for the node to highlight: " + node.getOrigin()); logger.debug("Could not find editor for the node to highlight: " + node.getOrigin());
} }
} }
......
// Please select one of the following scripts. // Please select one of the following scripts.
// //
script toRemove(){
impRight;
useContract type='dependency' on=`p`;
}
script autoScript(){ script autoScript(){
__STRICT_MODE := true; __STRICT_MODE := true;
auto; auto;
......
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