Wodel applied to ASPLE language. [ASPLE Language Ecore]

Replaces an arithmetic operator by another one [rao]:

     modify one BinaryOperator where {operator in ['add', 'subtract', 'multiply', 'divide', 'module']}
            with {operator in ['add', 'subtract', 'multiply', 'divide', 'module']}

Replaces an arithmetic operator by another one [rro]:

     modify one BinaryOperator where {operator in ['less', 'equals', 'greater', 'distinct']}
            with {operator in ['less', 'equals', 'greater', 'distinct']}

Replaces loop end condition by infinite loop [rli]:

     loop = select one Loop
     create Boolean in loop->expression with {value = true}

Delete statement [rst]:

     remove one Statement

Replaces scalar variable [rsv]:

     modify one Integer with {value = random}

Increment an arithmetic expression by 1 [ia1]:

     op = select one BinaryOperator where {operator in ['add', 'subtract', 'multiply', 'divide', 'module']}
     exp = create BinaryOperator in op->right with {left = op->right, operator = 'add'}
     create Integer in exp->right with {value = 1}

Here you can download all these examples of Wodel applied to ASPLE language.
ASPLE samples .zip
ASPLE samples .tar.gz

Acknowledgements

This work has been funded by the Spanish Ministry of Science (RTI2018-095255-B-I00, project "MASSIVE") and the R&D programme of Madrid (P2018/TCS-4314, project "FORTE").