-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split into two public properties, `has_spark_mode_on` and `is_subject_to_proof`. Because we deemed that the initial API was misleading.
- Loading branch information
1 parent
c81b39f
commit 2ab3005
Showing
17 changed files
with
115 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ procedure Test is | |
begin | ||
null; | ||
end Test; | ||
--% node.p_is_spark() | ||
--% node.p_is_subject_to_proof |
2 changes: 1 addition & 1 deletion
2
testsuite/tests/properties/is_spark/skip_proof_library_level_subp/test.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Working on node <SubpBody ["Test"] test.adb:1:1-4:10> | ||
===================================================== | ||
|
||
Eval 'node.p_is_spark()' | ||
Eval 'node.p_is_subject_to_proof' | ||
Result: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
type: new-feature | ||
title: New `is_spark` property on `BaseSubpBody` | ||
title: New SPARK related properties on subprograms | ||
description: | | ||
This change introduces a new property on subprogram bodies (`BaseSubpBody`). | ||
This property, named `is_spark` allows to determine if a given subprogram is | ||
in SPARK or not. | ||
date: 2023-07-06 | ||
This change introduces new properties on subprogram decls & bodies: | ||
.. code-block:: | ||
SubpBody.is_subject_to_proof()``: | ||
""" | ||
Returns whether this subprogram body is subject to proof in the context of | ||
the SPARK/GNATprove tools. | ||
""" | ||
SubpDecl/SubpBody.has_spark_mode_on(): | ||
""" | ||
Returns whether this subprogram has explicitly been set as having | ||
``Spark_Mode`` to ``On``, directly or indirectly. | ||
Doesn't include subprograms that can be inferred by GNATprove as being | ||
SPARK. | ||
""" | ||
date: 2023-09-14 |