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

small changes in unification tests

parent e0dd0a63
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,14 @@ import leon.Utils._
object UnificationSynthesis {
def u1(a1: Int): Int = choose { (x1: Int) => Cons(x1, Nil()) == Cons(a1, Nil()) }
def u2(a1: Int): Int = choose { (x1: Int) => Cons(x1, Nil()) == Cons(x1, Cons(2, Nil())) }
def u3(a1: Int): List = choose { (xs: List) => Cons(a1, xs) == xs }
def u3(a1: Int): (Int,Int) = choose { (x1: Int, x2: Int) => Cons(x1, Nil()) == Cons(x2, Cons(a1, Nil())) }
def u4(a1: Int): List = choose { (xs: List) => Cons(a1, xs) == xs }
def u5(a1: Int): List = choose { (xs: List) => Cons(a1, Nil()) == xs }
sealed abstract class List
case class Nil() extends List
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment