diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 10:36:54 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 10:36:54 -0400 |
commit | 4688519e58b0b2923e291d6a719a7f34810bfdc1 (patch) | |
tree | b2857ef60e3307635c96f8300b5f515834e32cfc /src/mono_util.sml | |
parent | 9e13248824201d825b9d06b266d045db63f3340d (diff) |
Monoize transaction identifiers; improve disjointness prover on irreducible folds; change 'query' type
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r-- | src/mono_util.sml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml index 50927ac9..8f5b29e8 100644 --- a/src/mono_util.sml +++ b/src/mono_util.sml @@ -213,6 +213,14 @@ fun mapfoldB {typ = fc, exp = fe, bind} = S.map2 (mfe ctx e2, fn e2' => (ESeq (e1', e2'), loc))) + | ELet (x, t, e1, e2) => + S.bind2 (mft t, + fn t' => + S.bind2 (mfe ctx e1, + fn e1' => + S.map2 (mfe (bind (ctx, RelE (x, t))) e2, + fn e2' => + (ELet (x, t', e1', e2'), loc)))) | EClosure (n, es) => S.map2 (ListUtil.mapfold (mfe ctx) es, |