Skip to content

Commit

Permalink
Sorting xor-args in ascending order (same as others)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaqa committed Oct 21, 2024
1 parent 1231625 commit 91c7d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logics/Logic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ PTRef Logic::mkXor(vec<PTRef> && args) {
else if (args[0] == getTerm_false() || args[1] == getTerm_false())
return (args[0] == getTerm_false() ? args[1] : args[0]);

sort(args, std::greater<PTRef>{});
termSort(args);
tr = mkFun(getSym_xor(), std::move(args));

if (tr == PTRef_Undef) {
Expand Down

0 comments on commit 91c7d52

Please sign in to comment.