domain.addPredicate("P");
domain.addPredicate("Q");
domain.addPredicate("R");
domain.addFunction("F");
FOLParser parser = new FOLParser(domain);
List<Literal> lits = new ArrayList<Literal>();
AtomicSentence a1 = (AtomicSentence) parser.parse("F(C,x) = D");
AtomicSentence a2 = (AtomicSentence) parser.parse("A = D");
AtomicSentence a3 = (AtomicSentence) parser.parse("P(F(x,B),x)");
AtomicSentence a4 = (AtomicSentence) parser.parse("Q(x)");
AtomicSentence a5 = (AtomicSentence) parser.parse("R(C)");
lits.add(new Literal(a1));
lits.add(new Literal(a2));
lits.add(new Literal(a3));
lits.add(new Literal(a4));
lits.add(new Literal(a5));
Clause c1 = new Clause(lits);
lits.clear();
a1 = (AtomicSentence) parser.parse("F(A,y) = y");
a2 = (AtomicSentence) parser.parse("F(B,y) = C");
a3 = (AtomicSentence) parser.parse("R(y)");
a4 = (AtomicSentence) parser.parse("R(A)");
lits.add(new Literal(a1));
lits.add(new Literal(a2));
lits.add(new Literal(a3));
lits.add(new Literal(a4));