Debian Codegraph @

lib/mlrisc-lib/MLRISC/mltree/mltree-eval.sig

raw
1 (* mltree-eval.sig
2 *
3 * COPYRIGHT (c) 2001 Lucent Technologies, Bell Laboratories.
4 *
5 * Utilites to evaluate and compare mltree expressions.
6 *)
7
8 signature MLTREE_EVAL = sig
9 structure T : MLTREE
10
11 (*
12 * Equality
13 *)
14 val eqStm : T.stm * T.stm -> bool
15 val eqRexp : T.rexp * T.rexp -> bool
16 val eqFexp : T.fexp * T.fexp -> bool
17 val eqCCexp : T.ccexp * T.ccexp -> bool
18 val eqMlriscs : T.mlrisc list * T.mlrisc list -> bool
19 val == : T.labexp * T.labexp -> bool
20
21
22 (*
23 * Value
24 *)
25 exception NonConst
26 val eval :
27 {const:T.Constant.const -> IntInf.int,
28 label:Label.label -> int}
29 ->
30 {rexp : T.rexp -> IntInf.int,
31 ccexp : T.ccexp -> bool}
32
33 val valueOf : T.labexp -> int
34 end