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

Simplification Bug #140

Closed
DavePearce opened this Issue Oct 26, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@DavePearce
Member

DavePearce commented Oct 26, 2017

The following generates an exception:

define prop(bool r, int x, int y) is:
        r <==> (x <= y)

assert:
    forall(bool r, int x, int y):
        prop(x <= y,x,y)

The error trace produced is:

Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: cannot convert expression to atom: wyal.lang.WyalFile$Expr$LessThanOrEqual
	at wyal.commands.VerifyCommand.compile(VerifyCommand.java:254)
	at wyal.commands.VerifyCommand.execute(VerifyCommand.java:202)
	at wyal.commands.VerifyCommand.execute(VerifyCommand.java:1)
	at wycc.WyMain.main(WyMain.java:105)
Caused by: java.lang.IllegalArgumentException: cannot convert expression to atom: wyal.lang.WyalFile$Expr$LessThanOrEqual
	at wytp.proof.rules.Simplification.simplifyExpression(Simplification.java:436)
       ...

@DavePearce DavePearce added the Bug label Oct 26, 2017

DavePearce added a commit that referenced this issue Oct 26, 2017

Add test case for #140
This adds an example to illustrate a failing test case.

DavePearce added a commit that referenced this issue Oct 26, 2017

Fix for #140
This implements a very simple fix.
@DavePearce

This comment has been minimized.

Member

DavePearce commented Oct 26, 2017

Ok, was relatively straightforward.

@DavePearce DavePearce closed this Oct 26, 2017

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