SWI-Prolog Did You Know Did you know? automatic UML->Prolog translation Search Documentation:
Predicate occurrences_of_var/3