| 1 |
(* |
| 2 |
* How to represent a predicate so that various logical operations can |
| 3 |
* be performed. |
| 4 |
* |
| 5 |
* -- Allen ([email protected]) |
| 6 |
*) |
| 7 |
functor SSAPredicate(T : MLTREE) : SSA_PREDICATE = |
| 8 |
struct |
| 9 |
structure T = T |
| 10 |
|
| 11 |
datatype expr = FALSE | TRUE | IF of T.ty * T.Basis.cond * expr * expr |
| 12 |
|
| 13 |
fun toString : expr -> string |
| 14 |
|
| 15 |
fun And : expr * expr -> expr |
| 16 |
fun Or : expr * expr -> expr |
| 17 |
fun Not : expr -> expr |
| 18 |
|
| 19 |
fun isDisjoint : expr * expr -> bool |
| 20 |
fun implies : expr * expr -> bool |
| 21 |
|
| 22 |
end |