Check trivial multop equality at build time. The makes the
equal visitor useless, since two equals formulae will now share the same address. * src/ltlast/multop.hh (add_sorted): New function. (paircmp): New comparison functor. (map): Use paircmp, we want to compare the vectors' contents, not their addresses. * src/ltlast/multop.cc (add_sorted): New function. (add): Use it. * src/ltltest/equals.cc, src/ltltest/tostring.cc: Compare pointers instead of calling equal. * src/ltlvisit/equals.cc, src/ltlvisit/equals.hh: Delete. * src/ltlvisit/Makefile.am (libltlvisit_la_SOURCES): Remove equals.cc and equals.hh. * wrap/spot.i: Do not include equals.hh.
This commit is contained in:
parent
9123e56ff9
commit
1cdfea31b0
10 changed files with 65 additions and 197 deletions
|
|
@ -13,7 +13,6 @@
|
|||
#include "ltlvisit/clone.hh"
|
||||
#include "ltlvisit/dotty.hh"
|
||||
#include "ltlvisit/dump.hh"
|
||||
#include "ltlvisit/equals.hh"
|
||||
#include "ltlvisit/lunabbrev.hh"
|
||||
#include "ltlvisit/tunabbrev.hh"
|
||||
#include "ltlvisit/nenoform.hh"
|
||||
|
|
@ -31,7 +30,6 @@ using namespace spot::ltl;
|
|||
%include "ltlvisit/clone.hh"
|
||||
%include "ltlvisit/dotty.hh"
|
||||
%include "ltlvisit/dump.hh"
|
||||
%include "ltlvisit/equals.hh"
|
||||
%include "ltlvisit/lunabbrev.hh"
|
||||
%include "ltlvisit/tunabbrev.hh"
|
||||
%include "ltlvisit/nenoform.hh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue