Signed-off-by: Graham <gpe@openrs2.dev>
@ -46,6 +46,12 @@ class IdentityTransformer : Transformer() {
expr.replace(expr.left)
}
BinaryExpr.Operator.DIVIDE -> {
if (expr.right.isOne()) {
// x / 1 => x