From: xorque <xorquewasp@googlemail.com>
Subject: Workaround for invariant SPARK condition
Date: Wed, 24 Jun 2009 16:03:44 -0700 (PDT)
Date: 2009-06-24T16:03:44-07:00 [thread overview]
Message-ID: <a3fc8e4b-93a4-4b91-a858-7441842ce7f7@e20g2000vbc.googlegroups.com> (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?
next reply other threads:[~2009-06-24 23:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 23:03 xorque [this message]
2009-06-25 7:48 ` Workaround for invariant SPARK condition Phil Thornley
2009-06-25 8:50 ` Rod Chapman
2009-06-25 11:19 ` xorque
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox