You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let y = 0;
for (let i = (y = y + 1); i <= 1; i = i + 1) {
display(i);
}
should result in one loop execution and return 1, but it results in no loop executions and returns undefined in the CSE machine. Explanation: the value expression is duplicated in interpreter.ts (530):
control.push(
ast.blockStatement(
[
init,
^ here
ast.forStatement(
ast.assignmentExpression(id, valueExpression, command.loc),
^ and here
test,
update,
The text was updated successfully, but these errors were encountered:
should result in one loop execution and return 1, but it results in no loop executions and returns undefined in the CSE machine. Explanation: the value expression is duplicated in interpreter.ts (530):
The text was updated successfully, but these errors were encountered: