SWI-Prolog Did You Know Did you know? SWI-Prolog has probabilistic logic Search Documentation:
Predicate debug_control_hook/1