Added a series of optimization to the Subtract & Union function of PresburgerRelation, referring to the ISL implementation.
Add isPlainEqual to Subtract & union,also some basic check to union.
Tested it on a simple Benchmark implemented by myself to see that it can speed up the Subtract operation and Union operation, also decrease the result size.
The Benchmark can be found here: benchmark
The overall results for Union & Subtract are as follows (previous benchmark has a bug,after fix that,the figure below is new)
The results for each case are as follows
I don't think this documentation is accurate. The first line is inaccurate, it should be something like
"Perform a quick equality check on this and other. The relations are equal if the check return true, but may or may not be equal if the check returns false. The equality check is ..."