(0) Obligation:

Clauses:

p(X) :- q(X).
p(X) :- ','(no(q(X)), p(X)).
q(X).
no(X) :- ','(X, ','(!, failure(a))).
no(X1).
failure(b).

Queries:

p(a).

(1) CutEliminatorProof (SOUND transformation)

Eliminated all cuts by simply ignoring them[PROLOG].

(2) Obligation:

Clauses:

p(X) :- q(X).
p(X) :- ','(no(q(X)), p(X)).
q(X).
no(X) :- ','(X, failure(a)).
no(X1).
failure(b).

Queries:

p(a).