Skip to content
Snippets Groups Projects
Commit 15e1412c authored by Jan Gruteser's avatar Jan Gruteser
Browse files

support SetProduct

but not sure if it is used elsewhere (comes from TLA2B module)
parent 6ad55775
No related branches found
No related tags found
No related merge requests found
......@@ -1008,6 +1008,19 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
returnNode = sum;
break;
}
case B_OPCODE_setprod: {
AIdentifierExpression variable = createIdentifierNode("t_"); // TODO unused identifier name
returnNode = new AGeneralProductExpression(
Collections.singletonList(variable.clone()),
new AMemberPredicate(
variable.clone(),
visitExprOrOpArgNodeExpression(opApplNode.getArgs()[0])
),
variable.clone()
);
break;
}
}
if (returnNode != null) {
return createPositionedNode(returnNode, opApplNode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment