Skip to content

Commit c532760

Browse files
committed
Slight updates
1 parent 6b3ab43 commit c532760

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

gtree_util.ml

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ let new_meta env t =
1818
[make_gmeta m], [(m,t)]
1919
let is_meta v = match view v with | A("meta", _) -> true | _ -> false
2020

21+
(**
22+
* Anti-unification of two terms into the most specific generalization
23+
* I.e. given t1 and t2 compute a t3 such that
24+
* - there exists env1 and env2 where env1(t3) = t1 and env2(t3) = t2
25+
* - t3 is the most specific
26+
*)
2127
let merge_terms t1 t2 =
2228
let rec loop env t1 t2 =
2329
if t1 == t2

spdiffimpl.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ module SpdiffImpl : Spdiff =
3131
* LHS terms.
3232
*
3333
* The näive approach:
34-
* compute all subterms for all LHS terms;
35-
* for each subterm, try to anti-unify with all subterms in other
36-
* term-pairs
34+
* compute all subterms for all LHS terms;
35+
* for each subterm, try to anti-unify with all subterms in other
36+
* term-pairs
3737
*)
3838
let get_term_patterns cset =
3939
let lhs_terms = List.rev_map fst cset in

0 commit comments

Comments
 (0)