Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R_simplified_if_then_else - else part not simplifying correctly. #14

Open
GoogleCodeExporter opened this issue May 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Note: Ensure new R_simplify logic is capable of handling this.

Note: R_simplified_if_then_else currently delegates to R_basic for its 
functionality.

If you attempt to simplify the following conditional:

if C = true then or(C, B) else and(C, B)

it is getting returned as:

if C = true then true else C and B

However, should this not be:

if C = true then true else false

as we know that C != true in the else branch?

In addition, the pseudo-code for R_simplified_if_then_else has been updated 
from:

E2 <- R_constrained_simplification(C, E2)

to:

E2 <- R_constrained_simplification(not C, E2)

in order to specify the context correctly for the constrained simplification of 
the else portion of the branch.

Original issue reported on code.google.com by [email protected] on 11 Apr 2013 at 12:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant