Skip to content
Snippets Groups Projects
Commit b6285436 authored by Robin Steiger's avatar Robin Steiger
Browse files

Added missing cases (SetMin, SetMax and FiniteSet) to searchAndApply and expandLets.

parent 6340c40a
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,8 @@ object Trees {
case SetCardinality(t) => Some((t,SetCardinality))
case Car(t) => Some((t,Car))
case Cdr(t) => Some((t,Cdr))
case SetMin(s) => Some((s,SetMin))
case SetMax(s) => Some((s,SetMax))
case _ => None
}
}
......@@ -365,6 +367,9 @@ object Trees {
else
c
}
case f @ FiniteSet(elems) => {
FiniteSet(elems.map(rec(_))).setType(f.getType)
}
case _ => ex
}
......@@ -469,6 +474,9 @@ object Trees {
else
c
}
case f @ FiniteSet(elems) => {
FiniteSet(elems.map(rec(_, s))).setType(f.getType)
}
case _ => ex
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment