Skip to content
Commit 595859db authored by Matt Wala's avatar Matt Wala
Browse files

Structural extraction: Fix an invalid pattern for If-Then.

As an attempt to be more intelligent, the code tried to swap the role of
"then" and "merge" when it detected that "then" and "merge" were
associated with the "false" and "true" branches of the conditional
instead of the other way around.

This strategy was incomplete, because in order for this to work, the
condition also has to be negated. As a result some incorrect control
flow was being generated (yikes!).

For now, don't implement the advanced strategy. Also fix a test that
implicitly relied on it.

Bug: #51
parent 3a3dbf5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment