1-- C45114B.ADA
2
3--                             Grant of Unlimited Rights
4--
5--     Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
6--     F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
7--     unlimited rights in the software and documentation contained herein.
8--     Unlimited rights are defined in DFAR 252.227-7013(a)(19).  By making
9--     this public release, the Government intends to confer upon all
10--     recipients unlimited rights  equal to those held by the Government.
11--     These rights include rights to use, duplicate, release or disclose the
12--     released technical data and computer software in whole or in part, in
13--     any manner and for any purpose whatsoever, and to have or permit others
14--     to do so.
15--
16--                                    DISCLAIMER
17--
18--     ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19--     DISCLOSED ARE AS IS.  THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
20--     WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
21--     SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
22--     OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
23--     PARTICULAR PURPOSE OF SAID MATERIAL.
24--*
25-- CHECK THAT LOGICAL OPERATORS ARE DEFINED FOR PACKED BOOLEAN ARRAYS.
26
27--  RJW  1/17/86
28
29WITH  REPORT; USE REPORT;
30PROCEDURE  C45114B  IS
31
32BEGIN
33
34     TEST( "C45114B" , "CHECK THAT LOGICAL OPERATORS ARE DEFINED " &
35                       "FOR PACKED BOOLEAN ARRAYS" );
36
37     DECLARE
38
39          TYPE ARR IS ARRAY (1 .. 32) OF BOOLEAN;
40
41          PRAGMA PACK (ARR);
42
43          A : ARR := ( TRUE, TRUE, FALSE, FALSE, OTHERS => TRUE );
44          B : ARR := ( TRUE, FALSE, TRUE, FALSE, OTHERS => FALSE );
45
46          A_AND_B : ARR := ( TRUE, OTHERS => FALSE );
47          A_OR_B  : ARR := ARR'( 4 => FALSE, OTHERS => TRUE );
48          A_XOR_B : ARR := ARR'( 1|4 => FALSE, OTHERS => TRUE );
49          NOT_A   : ARR := ARR'( 3|4 => TRUE, OTHERS => FALSE );
50
51     BEGIN
52
53          IF ( A AND B ) /= A_AND_B THEN
54               FAILED ( "'AND' NOT CORRECTLY DEFINED" );
55          END IF;
56
57          IF ( A OR B ) /= A_OR_B THEN
58               FAILED ( "'OR' NOT CORRECTLY DEFINED" );
59          END IF;
60
61          IF ( A XOR B ) /= A_XOR_B THEN
62               FAILED ( "'XOR' NOT CORRECTLY DEFINED" );
63          END IF;
64
65          IF NOT A /= NOT_A THEN
66               FAILED ( "'NOT' NOT CORRECTLY DEFINED" );
67          END IF;
68
69     END;
70
71     RESULT;
72
73END C45114B;
74