Skip to content

Distribution of uminus node #4

@vmiheer

Description

@vmiheer

If the expression is of the form:

a = -b * _tmp_xx;

Stringify is not defined for UMINUS node. Consequently, lars fails to detect -b as coef_node and end up trying to create a binary node with one of the operands as nullptr.
Two ways this could be avoided:

  1. Disable distribution of coef_node is not found (is nullptr).
    1840eba does this.
  2. Extend lars to include this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions