Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Parse/TPTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3204,8 +3204,12 @@ Formula* TPTP::createPredicateApplication(std::string name, unsigned arity)
}
if (pred == -2){ // distinct
// TODO check that we are top-level

// ignore pointless $distinct(x)
if(arity < 2)
return new Formula(true);
// If fewer than 5 things are distinct then we add the disequalities
if(arity<5){
else if(arity < 5){
static Stack<unsigned> distincts;
distincts.reset();
for(int i=arity-1;i >= 0; i--){
Expand Down
Loading