comp.lang.ada
 help / color / mirror / Atom feed
* Workaround for invariant SPARK condition
@ 2009-06-24 23:03 xorque
  2009-06-25  7:48 ` Phil Thornley
  0 siblings, 1 reply; 4+ messages in thread
From: xorque @ 2009-06-24 23:03 UTC (permalink / raw)


Hello.

I have a piece of code that does this:

function Check_Support (Request : in Request_t) return Boolean is
begin
  return Request /= Unsupported;
end Check_Support;

I'm using it in some code:

if Check_Support (Request_Push) then
  ...
end if;

Request_Push is a compile-time constant with an implementation-defined
value. Given that the value is detected at compile-time, SPARK thinks
the
condition is invariant.

Is there some way I can tell SPARK that this condition isn't actually
invariant,
even though it appears to be?



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

end of thread, other threads:[~2009-06-25 11:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24 23:03 Workaround for invariant SPARK condition xorque
2009-06-25  7:48 ` Phil Thornley
2009-06-25  8:50   ` Rod Chapman
2009-06-25 11:19     ` xorque

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