Skip to content
Snippets Groups Projects
Commit b5625a2c authored by Philippe Suter's avatar Philippe Suter
Browse files

one small example

parent 40ed136d
No related branches found
No related tags found
No related merge requests found
import leon.Utils._
object DrSuter {
abstract class List
case class Nil() extends List
case class Cons(head : Int, tail : List) extends List
def myChoose(a : List) : (Int,Int,List) = {
choose { (x: Int, y: Int, ys: List) =>
Cons(x, Cons(y, ys)) == a && x == y ||
Cons(x, ys) == a && x < 0
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment