From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,dc717706b9651154,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e20g2000vbc.googlegroups.com!not-for-mail From: xorque Newsgroups: comp.lang.ada Subject: Workaround for invariant SPARK condition Date: Wed, 24 Jun 2009 16:03:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 62.249.247.223 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1245884625 20181 127.0.0.1 (24 Jun 2009 23:03:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 24 Jun 2009 23:03:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e20g2000vbc.googlegroups.com; posting-host=62.249.247.223; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.9 (Debian-3.0.9-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6605 Date: 2009-06-24T16:03:44-07:00 List-Id: 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?