Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /MLRISC/trunk/SSA/ssa-predicate.sml
ViewVC logotype

View of /MLRISC/trunk/SSA/ssa-predicate.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2126 - (download) (annotate)
Thu Nov 2 16:11:29 2006 UTC (12 years, 8 months ago) by blume
File size: 518 byte(s)
moved MLRISC to toplevel
(*
 * How to represent a predicate so that various logical operations can
 * be performed.
 *
 * -- Allen (leunga@cs.nyu.edu)
 *)
functor SSAPredicate(T : MLTREE) : SSA_PREDICATE =
struct
   structure T = T

   datatype expr = FALSE | TRUE | IF of T.ty * T.Basis.cond * expr * expr

   fun toString   : expr -> string

   fun And        : expr * expr -> expr
   fun Or         : expr * expr -> expr
   fun Not        : expr -> expr

   fun isDisjoint : expr * expr -> bool
   fun implies    : expr * expr -> bool

end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0