@@ -23,10 +23,10 @@ mixin-src_src (mixin-src _ _ S) S.
2323func local-canonical-gref prop -> constant.
2424local-canonical-gref (local-canonical C) C.
2525
26- func class_name class -> classname.
26+ func class_name hbclass -> classname.
2727class_name (class N _ _) N.
2828
29- func class_structure class -> structure.
29+ func class_structure hbclass -> structure.
3030class_structure (class _ S _) S.
3131
3232func class-def_name prop -> classname.
@@ -38,7 +38,7 @@ mixin-class_class (mixin-class _ C) C.
3838func mixin-class_mixin prop -> mixinname.
3939mixin-class_mixin (mixin-class M _) M.
4040
41- func classname->def classname -> class .
41+ func classname->def classname -> hbclass .
4242classname->def CN (class CN S ML) :- class-def (class CN S ML), !.
4343
4444func classname->mixins classname -> mixins.
@@ -70,7 +70,7 @@ extract-builder (builder-decl B) B.
7070func leq-builder builder, builder ->.
7171leq-builder (builder N _ _ _) (builder M _ _ _) :- N =< M.
7272
73- func sub-class? class, class ->.
73+ func sub-class? hbclass, hbclass ->.
7474sub-class? (class C1 _ ML1P) (class C2 _ ML2P) :-
7575 not (C1 = C2),
7676 list-w-params_list ML1P ML1,
@@ -187,7 +187,7 @@ toposort-classes In Out :- std.do! [
187187 std.gref.toposort ES In Out,
188188].
189189
190- func findall-classes -> list class .
190+ func findall-classes -> list hbclass .
191191findall-classes CLSortedDef :- std.do! [
192192 std.findall (class-def C_) All,
193193 std.map All class-def_name CL,
@@ -204,7 +204,7 @@ findall-classes-for.unsorted [M|ML] CLAcc Out :- std.do! [
204204 findall-classes-for.unsorted ML {std.append CL CLAcc} Out
205205].
206206
207- func findall-classes-for list mixinname -> list class .
207+ func findall-classes-for list mixinname -> list hbclass .
208208findall-classes-for ML CLSortedDef :- std.do! [
209209 findall-classes-for.unsorted ML [] CL,
210210 toposort-classes CL CLSorted,
@@ -252,7 +252,7 @@ findall-local-canonical CL :-
252252%
253253% [findall-newjoins C AllSuper] finds all C1 and C2 such that C is a (new) join for
254254% them
255- pred distinct-pairs-below i:class , i:list class , o:class , o:class .
255+ pred distinct-pairs-below i:hbclass , i:list hbclass , o:hbclass , o:hbclass .
256256distinct-pairs-below CurrentClass AllSuper C1 C2 :-
257257 std.mem AllSuper C1, std.mem AllSuper C2,
258258 % no cut until here, since we don't know which C1 and C2 to pick
@@ -267,7 +267,7 @@ distinct-pairs-below CurrentClass AllSuper C1 C2 :-
267267 true, % no join, valid pair
268268 ].
269269
270- pred assert-building-bottom-up i:class , i:classname, i:classname, i:classname.
270+ pred assert-building-bottom-up i:hbclass , i:classname, i:classname, i:classname.
271271assert-building-bottom-up CurrentClass C3n C1n C2n :-
272272 class-def (class C3n X Y),
273273 CurrentClass = class CC _ _,
@@ -284,10 +284,10 @@ assert-building-bottom-up CurrentClass C3n C1n C2n :-
284284 Msg2)
285285 true.
286286
287- func distinct-pairs_pair prop -> pair class class .
287+ func distinct-pairs_pair prop -> pair hbclass hbclass .
288288distinct-pairs_pair (distinct-pairs-below _ _ X Y) (pr X Y).
289289
290- func findall-newjoins class , list class -> list (pair class class ).
290+ func findall-newjoins hbclass , list hbclass -> list (pair hbclass hbclass ).
291291findall-newjoins CurrentClass AllSuper TodoJoins :-
292292 std.findall (distinct-pairs-below CurrentClass AllSuper C1_ C2_) JoinOf,
293293 std.map JoinOf distinct-pairs_pair TodoJoins.
0 commit comments