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