We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following snippet does not verify although it is only asserting that foo is equal to its body:
foo
case class A(useless: BigInt) { @extern def map(f: (Unit) => (Unit, Unit)): A = this } def get(key: Unit): Option[Unit] = None[Unit]() def foo(m: A): A = { m.map { key => val value = get(key) match { case None() => () case Some(_) => () } () -> value } } def fooEqualsItsBody(m: A): Unit = { assert(foo(m) == m.map { key => val value = get(key) match { case None() => () case Some(_) => () } () -> value }) }
The followings make the verification succeed:
value
@extern
get
map
useless
A
()
get(key)
The text was updated successfully, but these errors were encountered:
May be another instance of epfl-lara/inox#139
Sorry, something went wrong.
No branches or pull requests
The following snippet does not verify although it is only asserting that
foo
is equal to its body:The followings make the verification succeed:
value
@extern
annotation on mapget
so that it takes no argument instead of onemap
return only one value instead of a pairuseless
argument fromA
value
by()
or byget(key)
The text was updated successfully, but these errors were encountered: