|
@@ -9,8 +9,6 @@ import animation.CodeLine;
|
|
|
import animation.ControlFlow;
|
|
|
import animation.Memory;
|
|
|
import animation.PseudoCodeNode;
|
|
|
-import animation.StackFrame;
|
|
|
-import animation.StackFrame.FrameType;
|
|
|
import codelines.FunctionCall;
|
|
|
import codelines.FunctionDefinition;
|
|
|
import graph.LayeredGraphNode;
|
|
@@ -69,8 +67,16 @@ public class BKNodePlacement extends AnimatedAlgorithm {
|
|
|
@Override
|
|
|
public ControlFlow runForward(Memory m) {
|
|
|
m.declare( "param1", graph, true );
|
|
|
+ if( m.isDefined( "Called", false ) )
|
|
|
+ {
|
|
|
+ actions.push( (Memory mem) -> {
|
|
|
+ return new ControlFlow( mainFunction );
|
|
|
+ } );
|
|
|
+ return new ControlFlow( ControlFlow.STEP_OVER );
|
|
|
+ }
|
|
|
+ m.declare( "Called", true, false );
|
|
|
actions.push( (Memory mem) -> {
|
|
|
- return new ControlFlow( mainFunction );
|
|
|
+ return new ControlFlow( ControlFlow.STEP_OVER );
|
|
|
} );
|
|
|
return new ControlFlow( mainFunction );
|
|
|
}
|