Skip to content

Mixing two operations in one statement #37

@nkrusch

Description

@nkrusch

example3_4.c gives an error, probably because there I am mixing two operations in one statement.

Originally posted here

The analysis makes some assumptions about left and right operand structure:

https://github.com/seiller/pymwp/blob/51bc64cfd9b3638de20a2e2671535a4975c2549f/pymwp/analysis.py#L165-L173

which prevents using the original expression X3 = X2 * X2 + X5; Adding some recursive step in binary op might allow analyzing this expression in original form (depending on what the AST looks like for this statement, I have not looked into it)?

If this is not worth fixing at the moment then we can add a note in the features table that binary op is for two operands and support for multiple is in progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions