Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. for (int i = 0; i < trace.size(); i++) { //For each clause
  2. for (int j = i + 1; i < trace.size(); j++) { //For each clause after
  3.  
  4. for (Literal li : trace.getClause(i).getLiterals()) { //For each literal in the ith clause
  5. for (Literal lj : trace.getClause(j).getLiterals()) {//For each literal in the jth clause
  6. if (li.getName().equals(lj.getName()) && //If the literal name matches
  7. li.getArguments().equals(lj.getArguments()) && //And the literals arguments matches
  8. li.getTruth() != lj.getTruth()) { //But the truth value doesn't
  9. //Create a new clause with the remaining literals from each clause
  10.  
  11. }
  12. }
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement