comp.lang.ada
 help / color / mirror / Atom feed
* (SPARK Ada) Proving that bitwise and is associative?
@ 2014-04-29 15:59 benjaminhocking
  2014-04-29 19:11 ` benjaminhocking
  2014-04-30  7:12 ` Stephen Leake
  0 siblings, 2 replies; 4+ messages in thread
From: benjaminhocking @ 2014-04-29 15:59 UTC (permalink / raw)


I have the following check statements embedded in some SPARK Ada code:
      --# check (value and (mask_32 and Unsigned_32'Mod(LMask_8))) = 0;
      --# check ((value and mask_32) and Unsigned_32'Mod(LMask_8)) = 0;
The SPARK examiner is able to prove the first one (using inference) but not the second one, even though it has already proven the first one, so should be able to prove it by using the first one combined with the fact that bitwise and is associative. Does anyone have any suggestions for how I can help it?





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-30 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-29 15:59 (SPARK Ada) Proving that bitwise and is associative? benjaminhocking
2014-04-29 19:11 ` benjaminhocking
2014-04-30 12:39   ` Phil Thornley
2014-04-30  7:12 ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox