SWI-Prolog Did You Know Did you know? SWI-Prolog has probabilistic logic Search Documentation:
PL_discard_foreign_frame()