HECO icon indicating copy to clipboard operation
HECO copied to clipboard

Add MultDepth Analysis

Open pjattke opened this issue 4 years ago • 0 comments

In v1.0, we had a MultDepthVisitor that determined the multiplicative depth of variables, which might be handy to port over.

Note that the visitor in v1.0 does not work properly if an If-statement that contains an Else-branch is involved.

The statement following an If-statement, i.e., the statement after the Else-branch's closing bracket if (...) { ...} else { ... } must take the "highest depth" of a variable by comparing the calculated depth of both branches.

pjattke avatar Apr 28 '20 06:04 pjattke