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

Invalid methods actually compiles #312

Open
Atry opened this issue Jul 3, 2017 · 0 comments
Open

Invalid methods actually compiles #312

Atry opened this issue Jul 3, 2017 · 0 comments

Comments

@Atry
Copy link

Atry commented Jul 3, 2017

import leon.collection._ // for List
import leon.lang._       // for holds

object Example {
  def rightUnitAppend[T](l1: List[T]): Boolean = {
    l1 ++ Nil() == l1
  }.holds
}

In https://github.com/epfl-lara/leon/blob/master/src/sphinx/neon.rst

If you try to verify this last example you'll face a delicate situation: Leon runs indeterminately until it is either killed or times out. But why does this happen? The proposition doesn't seems more complicated than appendContent. Perhaps even more surprisingly, Leon is able to verify the following:

However, it actually compiles
https://leon.epfl.ch#link/5cd42b18a4baeb936e2bd7ec996b90ab-1

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

No branches or pull requests

1 participant