record_call(+PI, +Goal, +Ref, +Head, +HeadVars, +Left0, +Seen, +State) is det[private]
Record the annotation of a call. A call that passes a proper subterm of a head argument or a value computed from a head argument that differs from it is not in left position: it cannot be a variant of the calling goal, so tabling does not help.