CVS difference for acats/cd/cd30003.a

Differences between 1.3 and version 1.4
Log of other versions for file acats/cd/cd30003.a

--- acats/cd/cd30003.a	1999/01/29 21:19:55	1.3
+++ acats/cd/cd30003.a	1999/03/11 01:40:49	1.4
@@ -2,22 +2,23 @@
 --
 --                             Grant of Unlimited Rights
 --
--- 00-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687 and
--- e U.S. Government obtained unlimited rights in the
--- tation contained herein.  Unlimited rights are
--- 227-7013(a)(19).  By making this public release,
--- ds to confer upon all recipients unlimited rights
--- by the Government.  These rights include rights to
--- ase or disclose the released technical data and
---  whole or in part, in any manner and for any purpose
--- ave or permit others to do so.
+--     Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
+--     F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained 
+--     unlimited rights in the software and documentation contained herein.
+--     Unlimited rights are defined in DFAR 252.227-7013(a)(19).  By making 
+--     this public release, the Government intends to confer upon all 
+--     recipients unlimited rights  equal to those held by the Government.  
+--     These rights include rights to use, duplicate, release or disclose the 
+--     released technical data and computer software in whole or in part, in 
+--     any manner and for any purpose whatsoever, and to have or permit others 
+--     to do so.
 --
 --                                    DISCLAIMER
 --
 --     ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
---   THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
+--     DISCLOSED ARE AS IS.  THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED 
 --     WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
--- ION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
+--     SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE 
 --     OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
 --     PARTICULAR PURPOSE OF SAID MATERIAL.
 --*
@@ -33,14 +34,15 @@
 --      the, it then checks that the size set is reported back.
 --
 -- APPLICABILITY CRITERIA:
---  must compile this test.
+--      All implementations must attempt to compile this test.
 --
 --      For implementations validating against Systems Programming Annex (C):
--- ecute.
+--        this test must execute and report PASSED.
 --
 --      For implementations not validating against Annex C:
--- ther produce error messages at compilation,
--- 
+--        this test may report compile time errors at one or more points
+--        indicated by "-- ANX-C RQMT", in which case it may be graded as inapplicable.
+--        Otherwise, the test must execute and report PASSED.
 --
 --
 -- CHANGE HISTORY:
@@ -49,9 +51,7 @@
 --      14 FEB 97   PWB.CTA Changed 'Size specifications to multiples
 --                          of System.Storage_Unit; restricted 'Size spec
 --                          for enumeration object to max integer size.
--- Repaired to properly set and check sizes.
--- Added Pack pragma needed for some implementations.
--- Corrected to support a Storage_Unit size < 8.
+--      16 FEB 98   EDS     Modifiy Documentation.
 --!
 
 ------------------------------------------------------------------- CD30003
@@ -65,93 +65,57 @@
   ---------------------------------------------------------------------------
 
   type Bit is mod 2**1;
-  for Bit'Size use 1;                                         -- N/A => ERROR.
+  for Bit'Size use 1;                                         -- ANX-C RQMT.
 
   type Byte is mod 2**8;
-  for Byte'Size use 8;                                        -- N/A => ERROR.
+  for Byte'Size use 8;                                        -- ANX-C RQMT.
 
   type Smallword is mod 2**8;
-  for Smallword'size use 16;                                  -- N/A => ERROR.
+  for Smallword'size use 16;                                  -- ANX-C RQMT.
 
   type Byte_Array is array(1..4) of Byte;
-  pragma Pack(Byte_Array);                                    -- N/A => ERROR.
-  -- size should be 32
+  pragma Pack(Byte_Array);                                    -- ANX-C RQMT.
+  -- size should be 32                                        
 
   type Smallword_Array is array(1..4) of Smallword;
-  pragma Pack(Smallword_Array); -- Required if Storage_Unit > 16. -- N/A => ERROR.
 
-  -- Use to calulate maximum required size:
-  type Max_Modular is mod System.Max_Binary_Modulus;
-  type Max_Integer is range System.Min_Int .. System.Max_Int;
-  Enum_Size : constant := Integer'Min (32,
-      Integer'Min (Max_Modular'Size, Max_Integer'Size));
   type Transmission_Data is ( Empty, Input, Output, IO, Control );
-  for Transmission_Data'Size use Enum_Size;                   -- N/A => ERROR.
-
-  -- Sizes to try:
-
-  -- The basic sizes are based on a "normal" Storage_Unit = 8 implementation.
-  -- We then use formulas to insure that the specified sizes meet the
-  -- the minimum level of support and AI-0051.
-
-  Modular_Single_Size : constant := Integer'Min (((8 + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit, Max_Modular'Size);
-     -- Calulate an appropriate, legal, and required to be supported size to
-     -- try, which is the size of Byte. Note that object sizes must be
-     -- a multiple of the storage unit for the compiler.
-
-  Modular_Double_Size : constant := Integer'Min (((16 + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit, Max_Modular'Size);
-
-  Modular_Quad_Size : constant := Integer'Min (((32 + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit, Max_Modular'Size);
-
-  Array_Quad_Size : constant := ((4 * 8 + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit;
-
-  Array_Octo_Size : constant := ((4 * 16 + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit;
+  for Transmission_Data'Size use 32;                          -- ANX-C RQMT.
 
-  Rounded_Enum_Size : constant := ((Enum_Size + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit;
-
-  Enum_Quad_Size : constant := Integer'Min (((32 + (System.Storage_Unit-1))
-     /System.Storage_Unit)*System.Storage_Unit,
-     Integer'Min (Max_Modular'Size, Max_Integer'Size));
-
-
   ---------------------------------------------------------------------------
   -- objects
   ---------------------------------------------------------------------------
 
   Bit_8 : Bit :=0;
-  for Bit_8'Size use System.Storage_Unit;                     -- N/A => ERROR.
+  for Bit_8'Size use System.Storage_Unit;                     -- ANX-C RQMT.
 
   Bit_G : Bit :=0;
-  for Bit_G'Size use Modular_Double_Size;                     -- N/A => ERROR.
+  for Bit_G'Size use 2*System.Storage_Unit;                   -- ANX-C RQMT.
 
   Byte_8 : Byte :=0;
-  for Byte_8'Size use Modular_Single_Size;                    -- N/A => ERROR.
+  for Byte_8'Size use System.Storage_Unit;                    -- ANX-C RQMT.
 
   Byte_G : Byte :=0;
-  for Byte_G'Size use Modular_Double_Size;                    -- N/A => ERROR.
+  for Byte_G'Size use 2*System.Storage_Unit;                  -- ANX-C RQMT.
 
   Smallword_1 : Smallword :=0;
-  for Smallword_1'Size use Modular_Double_Size;               -- N/A => ERROR.
+  for Smallword_1'Size use 2*System.Storage_Unit;             -- ANX-C RQMT.
 
   Smallword_2 : Smallword :=0;
-  for Smallword_2'Size use Modular_Quad_Size;                 -- N/A => ERROR.
+  for Smallword_2'Size use 4*System.Storage_Unit;             -- ANX-C RQMT.
 
   Byte_Array_1 : Byte_Array := (others=>0);
-  for Byte_Array_1'Size use Array_Quad_Size;                  -- N/A => ERROR.
+  for Byte_Array_1'Size use 4*System.Storage_Unit;            -- ANX-C RQMT.
 
   Smallword_Array_1 : Smallword_Array := (others=>0);
-  for Smallword_Array_1'Size use Array_Octo_Size;             -- N/A => ERROR.
+  for Smallword_Array_1'Size use 8*System.Storage_Unit;       -- ANX-C RQMT.
 
   Transmission_Data_1 : aliased Transmission_Data := Empty;
 
+  type Max_Integer is range System.Min_Int .. System.Max_Int;
+
   Transmission_Data_2 : Transmission_Data := Control;
-  for Transmission_Data_2'Size use Enum_Quad_Size;            -- N/A => ERROR.
+  for Transmission_Data_2'Size use Max_Integer'Size;          -- ANX-C RQMT.
 
 begin  -- Main test procedure.
 
@@ -160,63 +124,58 @@
                           "size, and correspond to a size in storage " &
                           "elements that is a multiple of the objects " &
                           "(non-zero) Alignment" );
-
-  if Bit_8'Size /= System.Storage_Unit then
-    Report.Failed("Expected Bit_8'Size =" & Integer'Image(System.Storage_Unit)
-                      & " , actually =" & Integer'Image(Bit_8'Size));
+   
+  if Bit_8'Size /= 8 then
+    Report.Failed("Expected Bit_8'Size = 8, actually ="
+                                 & Integer'Image(Bit_8'Size));
   end if;
 
-  if Bit_G'Size /= Modular_Double_Size then
-    Report.Failed("Expected Bit_G'Size =" & Integer'Image(Modular_Double_Size)
-                      & " , actually =" & Integer'Image(Bit_G'Size));
+  if Bit_G'Size /= 16 then
+    Report.Failed("Expected Bit_G'Size = 16 actually ="
+                                 & Integer'Image(Bit_G'Size));
   end if;
 
-  if Byte_8'Size /= Modular_Single_Size then
-    Report.Failed("Expected Byte_8'Size =" & Integer'Image(Modular_Single_Size)
-                      & " , actually =" & Integer'Image(Byte_8'Size));
+  if Byte_8'Size /= 8 then
+     Report.Failed("Expected Byte_8'Size = 8 actually ="
+                                 & Integer'Image(Byte_8'Size));
   end if;
 
-  if Byte_G'Size /= Modular_Double_Size then
-    Report.Failed("Expected Bit_G'Size =" & Integer'Image(Modular_Double_Size)
-                      & " , actually =" & Integer'Image(Byte_G'Size));
+  if Byte_G'Size /= 16 then
+    Report.Failed("Expected Byte_G'Size = 16 actually ="
+                                 & Integer'Image(Byte_G'Size));
   end if;
-
-  if Smallword_1'Size /= Modular_Double_Size then
-    Report.Failed("Expected Smallword_1'Size =" &
-                      Integer'Image(Modular_Double_Size) &
-                      ", actually =" & Integer'Image(Smallword_1'Size));
+ 
+  if Smallword_1'Size /= 16 then
+    Report.Failed("Expected Smallword_1'Size = 16 actually ="
+                                 & Integer'Image(Smallword_1'Size));
   end if;
 
-  if Smallword_2'Size /= Modular_Quad_Size then
-    Report.Failed("Expected Smallword_2'Size =" &
-                      Integer'Image(Modular_Quad_Size) &
-                      ", actually =" & Integer'Image(Smallword_2'Size));
+  if Smallword_2'Size /= 32 then
+    Report.Failed("Expected Smallword_2'Size = 32 actually ="
+                                 & Integer'Image(Smallword_2'Size));
   end if;
 
-  if Byte_Array_1'Size /= Array_Quad_Size then
-    Report.Failed("Expected Byte_Array_1'Size =" &
-                      Integer'Image(Array_Quad_Size) &
-                      ", actually =" & Integer'Image(Byte_Array_1'Size));
+  if Byte_Array_1'Size /= 4 * 8 then
+    Report.Failed("Expected Byte_Array_1'Size = 32 actually ="
+                                 & Integer'Image(Byte_Array_1'Size));
   end if;
 
-  if Smallword_Array_1'Size /= Array_Octo_Size then
+  if Smallword_Array_1'Size /= 4 * 16 then
     Report.Failed(
-      "Expected Smallword_Array_1'Size =" &
-                      Integer'Image(Array_Octo_Size) &
-                      ", actually =" & Integer'Image(Smallword_Array_1'Size));
+      "Expected Smallword_Array_1'Size = 64 actually ="
+                                 & Integer'Image(Smallword_Array_1'Size));
   end if;
 
-  if Transmission_Data_1'Size /= Enum_Size and then
-     Transmission_Data_1'Size /= Rounded_Enum_Size then
+  if Transmission_Data_1'Size /= 32 then
     Report.Failed(
-      "Expected Transmission_Data_1'Size =" & Integer'Image(Rounded_Enum_Size) &
-                      ", actually =" & Integer'Image(Transmission_Data_1'Size));
+      "Expected Transmission_Data_1'Size = 32 actually ="
+                                 & Integer'Image(Transmission_Data_1'Size));
   end if;
 
-  if Transmission_Data_2'Size /= Enum_Quad_Size then
+  if Transmission_Data_2'Size /= Max_Integer'Size then
     Report.Failed(
-      "Expected Transmission_Data_2'Size =" & Integer'Image(Enum_Quad_Size) &
-                      ", actually =" & Integer'Image(Transmission_Data_2'Size));
+      "Expected Transmission_Data_2'Size = 64 actually ="
+                                 & Integer'Image(Transmission_Data_2'Size));
   end if;
 
   Report.Result;

Questions? Ask the ACAA Technical Agent