Skip to content

Commit 1c27b6b

Browse files
author
ctjoreilly
committed
- removed duplicate resolvent check with self from OTTER Like theorem prover.
1 parent 3115ba2 commit 1c27b6b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/aima/logic/fol/inference/FOLOTTERLikeTheoremProver.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,9 @@ private InferenceResult otter(OTTERAnswerHandler ansHandler,
261261
private Set<Clause> infer(Clause clause, Set<Clause> usable) {
262262
Set<Clause> resultingClauses = new LinkedHashSet<Clause>();
263263

264-
// Remember to resolve with self
265-
Set<Clause> resolvents = clause.binaryResolvents(clause);
266-
for (Clause rc : resolvents) {
267-
resultingClauses.add(rc);
268-
}
269-
270264
// * resolve clause with each member of usable
271265
for (Clause c : usable) {
272-
resolvents = clause.binaryResolvents(c);
266+
Set<Clause> resolvents = clause.binaryResolvents(c);
273267
for (Clause rc : resolvents) {
274268
resultingClauses.add(rc);
275269
}

0 commit comments

Comments
 (0)