Made idiom recognition more robust.

Rationale:
Recognition is now more robust with respect to
operation order or even cancelling constants.

Test: test-art-target, test-art-host
Change-Id: I4e920150e20e1453bb081e3f0ddcda8f1c605672
2 files changed