@@ -51,26 +51,26 @@ fn compute_transitive_paths<T: FactTypes>(
51
51
// ancestor_path(Parent, Child) :- child_path(Child, Parent).
52
52
ancestor_path. extend ( child_path. iter ( ) . map ( |& ( child, parent) | ( parent, child) ) ) ;
53
53
54
- // path_moved_at(Path, Point) :- path_moved_at_base(path, point ).
54
+ // path_moved_at(Path, Point) :- path_moved_at_base(Path, Point ).
55
55
path_moved_at. insert ( path_moved_at_base. into ( ) ) ;
56
56
57
- // path_assigned_at(Path, Point) :- path_assigned_at_base(path , Point).
57
+ // path_assigned_at(Path, Point) :- path_assigned_at_base(Path , Point).
58
58
path_assigned_at. insert ( path_assigned_at_base. into ( ) ) ;
59
59
60
- // path_accessed_at(Path, Point) :- path_accessed_at_base(path , Point).
60
+ // path_accessed_at(Path, Point) :- path_accessed_at_base(Path , Point).
61
61
path_accessed_at. insert ( path_accessed_at_base. into ( ) ) ;
62
62
63
63
// path_begins_with_var(Path, Var) :- path_is_var(Path, Var).
64
64
path_begins_with_var. insert ( path_is_var. into_iter ( ) . collect ( ) ) ;
65
65
66
66
while iteration. changed ( ) {
67
- // ancestor (Grandparent, Child) :-
68
- // ancestor (Parent, Child),
69
- // child (Parent, Grandparent).
67
+ // ancestor_path (Grandparent, Child) :-
68
+ // ancestor_path (Parent, Child),
69
+ // child_path (Parent, Grandparent).
70
70
ancestor_path. from_join (
71
71
& ancestor_path,
72
72
& child_path,
73
- |& _mother , & daughter , & grandmother | ( grandmother , daughter ) ,
73
+ |& _parent , & child , & grandparent | ( grandparent , child ) ,
74
74
) ;
75
75
76
76
// moving a path moves its children
0 commit comments