-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to skip
Skip_Proof
annotations in p_is_spark
The property `p_is_spark` can now take a boolean parameter (`include_skip_proof_annotations`, defaults to `True`) to specify whether the `GNATprove` `Skip_Proof` and `Skip_Flow_And_Proof` annotations should be ignored to determine if a subprogram is in SPARK or not.
- Loading branch information
Showing
22 changed files
with
88 additions
and
63 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
10 changes: 9 additions & 1 deletion
10
testsuite/tests/properties/is_spark/configuration_pragma_1/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,8 +1,16 @@ | ||
=== Analysing unit: <AnalysisUnit 'test.adb'> """ | ||
=== Analysing unit: <AnalysisUnit 'test.adb'> === | ||
Subprogram <NullSubpDecl ["P"] test.adb:2:4-2:24> is analyzed | ||
Subprogram <NullSubpDecl ["Q"] test.adb:3:4-3:24> is analyzed | ||
Subprogram <NullSubpDecl ["R"] test.adb:4:4-4:24> is skipped | ||
Subprogram <NullSubpDecl ["S"] test.adb:5:4-5:24> is skipped | ||
Subprogram <NullSubpDecl ["T"] test.adb:6:4-6:47> is skipped | ||
Subprogram <NullSubpDecl ["U"] test.adb:7:4-7:46> is analyzed | ||
|
||
=== Re-analysing unit (ignoring Skip_Proof annotations): <AnalysisUnit 'test.adb'> === | ||
Subprogram <NullSubpDecl ["P"] test.adb:2:4-2:24> is analyzed | ||
Subprogram <NullSubpDecl ["Q"] test.adb:3:4-3:24> is analyzed | ||
Subprogram <NullSubpDecl ["R"] test.adb:4:4-4:24> is analyzed | ||
Subprogram <NullSubpDecl ["S"] test.adb:5:4-5:24> is analyzed | ||
Subprogram <NullSubpDecl ["T"] test.adb:6:4-6:47> is skipped | ||
Subprogram <NullSubpDecl ["U"] test.adb:7:4-7:46> is analyzed | ||
|
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
2 changes: 1 addition & 1 deletion
2
testsuite/tests/properties/is_spark/configuration_pragma_2/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
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
2 changes: 1 addition & 1 deletion
2
testsuite/tests/properties/is_spark/configuration_pragma_3/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
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
2 changes: 1 addition & 1 deletion
2
testsuite/tests/properties/is_spark/configuration_pragma_4/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
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
18 changes: 9 additions & 9 deletions
18
testsuite/tests/properties/is_spark/mixed_pragma_and_aspect/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
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
2 changes: 1 addition & 1 deletion
2
testsuite/tests/properties/is_spark/skip_flow_and_proof/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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type: api-change | ||
short_title: Skip annotations in `p_is_spark` | ||
title: Allow to skip `Skip_Proof` annotations in `p_is_spark` | ||
description: | | ||
The property `p_is_spark` can now take a boolean parameter | ||
(`include_skip_proof_annotations`, defaults to `True`) to specify whether the | ||
`GNATprove` `Skip_Proof` and `Skip_Flow_And_Proof` annotations should be | ||
ignored to determine if a subprogram is in SPARK or not. | ||
date: 2023-09-12 |