-
Notifications
You must be signed in to change notification settings - Fork 1
/
safety_extended.txt
257 lines (196 loc) · 10.2 KB
/
safety_extended.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
----------------------------------------------------------
-- This contains the gnatcheck rules for violations of
-- FACE (Trademark) Ada 95 safety Extended 2.1.1 profile
----------------------------------------------------------
+R : ADA_SAFETY_EXT_ADA95 :
Forbidden_Pragmas : Ada_05,
Ada_2005,
Ada_12,
Ada_2012,
Extensions_Allowed
-------------------------------------------------------------------------------
-- Component use of implementation-defined pragmas (ANSI/ISO/IEC 8652:1995,
-- Section 2.8 (14)) for data structure compositions on FACE Interfaces.
--
-- Note: All other uses of implementation-defined pragma directives are
-- permitted.
--
-- Note: Support for pragma directives are compiler
-- implementation-dependent. A compiler ignores pragma directives it
-- does not recognize.
--
-- Note: Use of the language-defined pragmas (e.g., pragma priority,
-- pragma interface, pragma export, etc.) defined throughtout the
-- Ada 95 Reference Manual is permitted.
+R : ADA_SAFETY_EXT_IMPLEMENTATION_PRAGMAS :
Forbidden_Pragmas : Component_Alignment,
Default_Scalar_Storage_Order,
Float_Representation,
Implicit_Packing,
No_Component_Reordering,
Optimize_Alignment,
Scalar_Storage_Order,
Volatile_Full_Access
-------------------------------------------------------------------------------
-- Asynchronous Transfer of Control (ANSI/ISO/IEC 8652:1995, Section 9.7.4)
-- and dependencies
+R : ADA_SAFETY_EXT_ASYNC_CTL :
Restrictions : Max_Asynchronous_Select_Nesting => 0
-------------------------------------------------------------------------------
-- Exception handling (ANSI/ISO/IEC 8652:1995, Section 11) – the
-- Exception_Information function
-- Note: Use of the Exception_Message function is limited to exceptions
-- raised using the Raise_Exception procedure. Other uses return
-- messages for which the contents are not defined by the Ada
-- Reference Manual and are not portable.
-- Can't enforce this
-------------------------------------------------------------------------------
-- Deallocate in Storage Management (ANSI/ISO/IEC 8652:1995, Section 13.11)
-- (i.e., no usage of the Deallocate procedure, Unchecked_Deallocation,
-- or memory allocation post startup/initialization)
+R : ADA_SAFETY_EXT_STORAGE_MGMT :
Restrictions : No_Unchecked_Deallocation
-------------------------------------------------------------------------------
-- Wide characters, wide strings, and wide text
+R : ADA_SAFETY_EXT_WIDE_TEXT :
Restrictions : No_Wide_Characters
+R : ADA_SAFETY_EXT_WIDE_TEXT :
Restrictions : No_Dependence => Ada.Wide_Text_IO,
No_Dependence => Ada.Wide_Wide_Text_IO
-------------------------------------------------------------------------------
-- Random Number Generation (ANSI/ISO/IEC 8652:1995, Annex A.5.2)
+R : ADA_SAFETY_EXT_RANDOM_NUMBERS :
Restrictions : No_Dependence => Ada.Numerics.Float_Random,
No_dependence => Ada.Numerics.Discrete_Random
-------------------------------------------------------------------------------
-- Input/output capabilities (ANSI/ISO/IEC 8652:1995, Section 13.13, and Annex
-- A.6, A.7, A.8, A.9, A.10, A.11, A.12, A.13, A.14, and A.15)
+R : ADA_SAFETY_EXT_IO :
Forbidden_Attributes : Read, Write, Input, Output
+R : ADA_SAFETY_EXT_IO :
Restrictions : No_Dependence => Ada.Command_Line,
No_Dependence => Ada.Direct_IO,
No_Dependence => Ada.Float_Wide_Text_IO,
No_Dependence => Ada.Integer_Wide_Text_IO,
No_Dependence => Ada.IO_Exceptions,
No_Dependence => Ada.Long_Float_Wide_Text_IO,
No_Dependence => Ada.Long_Integer_Wide_Text_IO,
No_Dependence => Ada.Sequential_IO,
No_Dependence => Ada.Streams.Stream_IO,
No_Dependence => Ada.Storage_IO,
No_Dependence => Ada.Text_IO,
No_Dependence => Ada.Text_IO.Text_Streams,
No_Dependence => Ada.Wide_Text_IO,
No_Dependence => Ada.Wide_Text_IO.Text_Streams,
No_Dependence => Ada.Wide_Text_IO.Integer_IO,
No_Dependence => Ada.Wide_Text_IO.Float_IO,
No_Dependence => Ada.Wide_Wide_Text_IO
-------------------------------------------------------------------------------
-- Distributed Systems (ANSI/ISO/IEC 8652:1995, Annex E)
+R : ADA_SAFETY_EXT_DISTRIBUTED_SYSTEMS :
Forbidden_Attributes : Body_Version,
Partition_Id,
Version,
+R : ADA_SAFETY_EXT_DISTRIBUTED_SYSTEMS :
Forbidden_Pragmas : All_Calls_Remote,
Asynchronous,
Remote_Call_Interface,
Remote_Types,
Shared_Passive
+R : ADA_SAFETY_EXT_DISTRIBUTED_SYSTEMS :
Restrictions : No_Dependence => System.RPC
-------------------------------------------------------------------------------
-- Information Systems (ANSI/ISO/IEC 8652:1995, Annex F)
+R : ADA_SAFETY_EXT_INFO_SYSTEMS :
Forbidden_Attributes : Machine_Radix
+R : ADA_SAFETY_EXT_INFO_SYSTEMS :
Restrictions : No_Dependence => Ada.Decimal,
No_Dependence => Ada.Text_IO.Editing,
No_Dependence => Ada.Wide_Text_IO.Editing
-------------------------------------------------------------------------------
-- Numerics (ANSI/ISO/IEC 8652:1995, Annex G)
+R : ADA_SAFETY_EXT_NUMERICS :
Restrictions : No_Dependence => Ada.Numerics.Generic_Complex_A,
No_Dependence => Ada.Numerics.Generic_Complex_Elementary_Functions,
No_Dependence => Ada.Numerics.Generic_Complex_Types,
No_Dependence => Ada.Numerics.Generic_Real_Arrays,
No_Dependence => Ada.Text_IO.Complex_IO,
No_Dependence => Ada.Wide_Text_IO.Complex_IO
+R : ADA_SAFETY_EXT_NUMERICS :
Forbidden_Attributes : Model,
Model_Emin,
Model_Mantissa,
Safe_First,
Safe_Last
-------------------------------------------------------------------------------
-- The profile includes defined maximum buffer size for Unbounded-Length
-- String Handling (ANSI/ISO/IEC 8652:1995, Annex A.4.5).
-- Note: The recommended minimum value for defined size is 120 bytes.
-- Can't enforce this
-------------------------------------------------------------------------------
-- The profile includes an Ada 95 Task’s use of secondary stack (if required)
-- limited to a defined size.
-- Note: The recommended minimum value for defined size is 4096 bytes.
-- Can't enforce this
-------------------------------------------------------------------------------
-- The profile includes the subset of functionality defined for Predefined
-- Language Environment (ANSI/ISO/IEC 8652:1995, Annex A) based on the above and
-- Ravenscar Ada95 subset profile exclusions.
+R : ADA_SAFETY_EXT_RAVENSCAR :
Restrictions : No_Abort_Statements,
No_Dynamic_Attachment,
No_Dynamic_Priorities,
No_Implicit_Heap_Allocations,
No_Local_Protected_Objects,
No_Local_Timing_Events,
No_Protected_Type_Allocators,
No_Relative_Delay,
No_Requeue_Statements,
No_Select_Statements,
No_Specific_Termination_Handlers,
No_Task_Allocators,
No_Task_Hierarchy,
No_Task_Termination,
Simple_Barriers,
Max_Entry_Queue_Length => 1,
Max_Protected_Entries => 1,
Max_Task_Entries => 0,
No_Dependence => Ada.Asynchronous_Task_Control,
No_Dependence => Ada.Calendar,
No_Dependence => Ada.Execution_Time.Group_Budget,
No_Dependence => Ada.Execution_Time.Timers,
No_Dependence => Ada.Task_Attributes,
No_Dependence => System.Multiprocessors.Dispatching_Domains
-------------------------------------------------------------------------------
-- The profile includes the subset of functionality defined for Interfaces to
-- Other Languages (ANSI/ISO/IEC 8652:1995, Annex B) that includes B.1, B.2, and
-- B.3 with the following exceptions:
-- * Sections B.3.1 and B.3.2
+R : ADA_SAFETY_EXT_INTERFACES :
Restrictions: No_Dependence => Interfaces.C.Strings,
No_Dependence => Interfaces.C.Pointers
-------------------------------------------------------------------------------
-- The profile includes the subset of functionality defined for Systems
-- Programming (ANSI/ISO/IEC 8652:1995, Annex C), based on ISO/IEC TR 15942:2000
-- including Interrupts support (ANSI/ISO/IEC 8652:1995, Annex C.3) limited to
-- constants and type definitions associated with Ada.Interrupts with the
-- following exception:
--
-- * No Dependencies on package Task attributes (ANSI/ISO/IEC 8652:1995,
-- Annex C.7.2)
+R : ADA_SAFETY_EXT_NO_TASK_ATTR :
Restrictions : No_Dependence => Ada.Task_Attributes
-------------------------------------------------------------------------------
-- The profile includes the subset of functionality defined for Real-Time Systems
-- (ANSI/ISO/IEC 8652:1995, Annex D), based on ISO/IEC TR 15942:2000 including
-- support for monotonic time (ANSI/ISO/IEC 8652:1995, Annex D.8) with the
-- following exceptions:
--
-- * No dependencies on package Ada.Calendar (ANSI/ISO/IEC 8652:1995,
-- Section 9.6)
-- * No support for relative delay statements (ANSI/ISO/IEC 8652:1995,
-- Section 9.6)
+R : ADA_SAFETY_EXT_REAL_TIME :
Restrictions : No_Dependence => Ada.Calendar,
No_Relative_Delay
-------------------------------------------------------------------------------