Did you know ... Search Documentation:
Predicate xref_source_file/3
Availability::- use_module(library(prolog_xref)).(can be autoloaded)
 xref_source_file(+Spec, -File, +Src) is semidet
 xref_source_file(+Spec, -File, +Src, +Options) is semidet
Find named source file from Spec, relative to Src.