PetScan::extract_for: also check whether bound is simple before computing gist
commitdba1c4c48456f8cd387aca080409b1fbc44dd1f1
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 21 Sep 2012 18:50:46 +0000 (21 20:50 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 21 Sep 2012 18:57:15 +0000 (21 20:57 +0200)
tree0185ab4feff74af3bd1ba7cadb64fe8827ddfd20
parent7721565fee98c712ddf9c1a5abfeb2ae3fb10e2a
PetScan::extract_for: also check whether bound is simple before computing gist

The gist operation was introduced in 2fcd426 (PetScan::extract_for: compute
gist before testing whether bound is simple, Thu Jan 19 14:46:07 2012 +0100)
so that we could ignore bounds that were implied by the initial value.
However, the gist operation itself may introduce equalities if they
are implied by inequalities in the original set and the context.
Also check for a simple bound before computing the gist.  This also
saves us from computing the gist if the condition is already simple.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc