The Whiley Theorem Prover (WyTP) is an automatic and interactive theorem prover designed to discharge verification conditions generated by the Whiley Compiler. WyTP operates over a variant of first-order logic which includes integer arithmetic, arrays and quantification.
The following fails with an internal failure:
In essence, there is no support for treating arbitrary expressions in this fashion. Instead, we currently need to rework the above as follows:
This will then correctly pass verification.