category
mutator_common
Mutator common predicate utilities.
logtalk_load(mutation_testing(loader))staticPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
print_mutation/3
Prints a term and its mutation when Flag is true. Succeeds otherwise.
staticprint_mutation(Flag,Original,Mutation)print_mutation(+boolean,@callable,@callable) - onetarget_predicate/3
True iff Term is a candidate for mutation.
statictarget_predicate(Term,Entity,Predicate)target_predicate(@callable,@entity_identifier,@predicate_indicator) - onetarget_predicate_clause_index/4
True iff Term is a candidate for mutation while also returning its current 1-based contiguous clause index for the matching predicate or non-terminal.
statictarget_predicate_clause_index(Term,Entity,Predicate,ClauseIndex)target_predicate_clause_index(@callable,@entity_identifier,@predicate_indicator,-integer) - zero_or_onetarget_scope_directive/3
True iff Term is a matching predicate or non-terminal scope directive candidate for mutation.
statictarget_scope_directive(Term,Entity,Predicate)target_scope_directive(@callable,@entity_identifier,@predicate_indicator) - onetarget_scope_directive_index/4
True iff Term is a matching predicate or non-terminal scope directive candidate for mutation while also returning its 1-based index among matching scope directives for the selected predicate or non-terminal.
statictarget_scope_directive_index(Term,Entity,Predicate,DirectiveIndex)target_scope_directive_index(@callable,@entity_identifier,@predicate_indicator,-integer) - zero_or_onetarget_predicate_directive/3
True iff Term is a matching predicate or non-terminal directive candidate for mutation.
statictarget_predicate_directive(Term,Entity,Predicate)target_predicate_directive(@callable,@entity_identifier,@predicate_indicator) - onetarget_predicate_directive_index/4
True iff Term is a matching predicate or non-terminal directive candidate for mutation while also returning its 1-based index among matching directives for the selected predicate or non-terminal.
statictarget_predicate_directive_index(Term,Entity,Predicate,DirectiveIndex)target_predicate_directive_index(@callable,@entity_identifier,@predicate_indicator,-integer) - zero_or_onetarget_uses_directive/3
True iff Term is a matching uses/2 directive candidate for mutation.
statictarget_uses_directive(Term,Entity,Predicate)target_uses_directive(@callable,@entity_identifier,@predicate_indicator) - onetarget_uses_directive_index/4
True iff Term is a matching uses/2 directive candidate for mutation while also returning its 1-based index among matching directives for the selected predicate or non-terminal.
statictarget_uses_directive_index(Term,Entity,Predicate,DirectiveIndex)target_uses_directive_index(@callable,@entity_identifier,@predicate_indicator,-integer) - zero_or_onenext_occurrence/1
Next mutation occurrence.
staticnext_occurrence(Occurrence)next_occurrence(-integer) - onePrivate predicates
current_predicate_clause_index_/2
Table of current clause indexes per predicate.
dynamiccurrent_predicate_clause_index_(Predicate,ClauseIndex)current_predicate_clause_index_(?predicate_indicator,?integer) - zero_or_oneupdate_target_predicate_clause_index_/2
Updates and returns the next clause index for the given predicate.
staticupdate_target_predicate_clause_index_(Predicate,ClauseIndex)update_target_predicate_clause_index_(@predicate_indicator,-integer) - onecurrent_scope_directive_index_/2
Table of current scope directive indexes per predicate.
dynamiccurrent_scope_directive_index_(Predicate,DirectiveIndex)current_scope_directive_index_(?predicate_indicator,?integer) - zero_or_oneupdate_target_scope_directive_index_/2
Updates and returns the next scope directive index for the given predicate.
staticupdate_target_scope_directive_index_(Predicate,DirectiveIndex)update_target_scope_directive_index_(@predicate_indicator,-integer) - onecurrent_predicate_directive_index_/2
Table of current predicate directive indexes per predicate.
dynamiccurrent_predicate_directive_index_(Predicate,DirectiveIndex)current_predicate_directive_index_(?predicate_indicator,?integer) - zero_or_oneupdate_target_predicate_directive_index_/2
Updates and returns the next predicate directive index for the given predicate.
staticupdate_target_predicate_directive_index_(Predicate,DirectiveIndex)update_target_predicate_directive_index_(@predicate_indicator,-integer) - onecurrent_uses_directive_index_/2
Table of current uses directive indexes per predicate.
dynamiccurrent_uses_directive_index_(Predicate,DirectiveIndex)current_uses_directive_index_(?predicate_indicator,?integer) - zero_or_oneupdate_target_uses_directive_index_/2
Updates and returns the next uses directive index for the given predicate.
staticupdate_target_uses_directive_index_(Predicate,DirectiveIndex)update_target_uses_directive_index_(@predicate_indicator,-integer) - oneseen_/1
Table of last seen mutation occurrence.
dynamicseen_(Occurrence)seen_(?integer) - zero_or_oneOperators
(none)