Skip to content
Snippets Groups Projects
Commit 22eeddd7 authored by Emmanouil (Manos) Koukoutos's avatar Emmanouil (Manos) Koukoutos Committed by Etienne Kneuss
Browse files

A forgotten test for example parsing

parent abedfff4
No related branches found
No related tags found
No related merge requests found
import leon.collection._
import leon.lang._
import leon.lang.synthesis._
object Length {
def foo(l : List[Int]) : Int =
choose { res:Int => (l, res) passes {
case Nil() => 0
case Cons(a, Nil()) => 2
case Cons(_, Cons(_, Cons(_, Cons(_, Nil())))) => 8
}}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment