|
@@ -26,7 +26,6 @@ public abstract class ForLoop extends CodeLine {
|
|
}
|
|
}
|
|
if( m.<Integer>read( "line_" + lineId + "_index", Visibility.LOCAL ) > maximum( m.createReadOnlyMemory() ) ) // prove if the loop has finished
|
|
if( m.<Integer>read( "line_" + lineId + "_index", Visibility.LOCAL ) > maximum( m.createReadOnlyMemory() ) ) // prove if the loop has finished
|
|
{
|
|
{
|
|
- m.undeclare( "line_" + lineId + "_index", Visibility.LOCAL );
|
|
|
|
actions.push( (Memory mem) -> {});
|
|
actions.push( (Memory mem) -> {});
|
|
return new ControlFlow( ControlFlow.STEP_OVER ); // don't execute the loop body
|
|
return new ControlFlow( ControlFlow.STEP_OVER ); // don't execute the loop body
|
|
}
|
|
}
|
|
@@ -46,9 +45,6 @@ public abstract class ForLoop extends CodeLine {
|
|
if( m.<Integer>read( "line_" + lineId + "_index", Visibility.LOCAL ) > maximum( m.createReadOnlyMemory() ) ) // prove if loop was finished
|
|
if( m.<Integer>read( "line_" + lineId + "_index", Visibility.LOCAL ) > maximum( m.createReadOnlyMemory() ) ) // prove if loop was finished
|
|
{
|
|
{
|
|
StackFrame sf = m.removeFrame(); // remove loop stack
|
|
StackFrame sf = m.removeFrame(); // remove loop stack
|
|
- m.undeclare( "line_" + lineId + "_index", Visibility.LOCAL );
|
|
|
|
- //int old = m.read( loopVar, false );
|
|
|
|
- //m.undeclare( loopVar, false );
|
|
|
|
actions.add( (Memory mem) -> {
|
|
actions.add( (Memory mem) -> {
|
|
//m.declare( loopVar, old, false );
|
|
//m.declare( loopVar, old, false );
|
|
mem.write( "line_" + lineId + "_index", oldIndex, Visibility.LOCAL );
|
|
mem.write( "line_" + lineId + "_index", oldIndex, Visibility.LOCAL );
|