Home | History | Annotate | Line # | Download | only in bias
      1  1.1.1.3  christos --  Copyright 2019-2024 Free Software Foundation, Inc.
      2      1.1  christos --
      3      1.1  christos --  This program is free software; you can redistribute it and/or modify
      4      1.1  christos --  it under the terms of the GNU General Public License as published by
      5      1.1  christos --  the Free Software Foundation; either version 3 of the License, or
      6      1.1  christos --  (at your option) any later version.
      7      1.1  christos --
      8      1.1  christos --  This program is distributed in the hope that it will be useful,
      9      1.1  christos --  but WITHOUT ANY WARRANTY; without even the implied warranty of
     10      1.1  christos --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11      1.1  christos --  GNU General Public License for more details.
     12      1.1  christos --
     13      1.1  christos --  You should have received a copy of the GNU General Public License
     14      1.1  christos --  along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15      1.1  christos 
     16      1.1  christos with Pck; use Pck;
     17      1.1  christos 
     18      1.1  christos procedure Bias is
     19      1.1  christos    type Small is range -7 .. -4;
     20      1.1  christos    for Small'Size use 2;
     21      1.1  christos    Y : Small := -5;
     22      1.1  christos    Y1 : Small := -7;
     23      1.1  christos 
     24      1.1  christos    type Repeat_Count_T is range 1 .. 2 ** 6;
     25      1.1  christos    for Repeat_Count_T'Size use 6;
     26  1.1.1.2  christos    X : Repeat_Count_T := 60;
     27      1.1  christos    X1 : Repeat_Count_T := 1;
     28      1.1  christos 
     29      1.1  christos    type Char_Range is range 65 .. 68;
     30      1.1  christos    for Char_Range'Size use 2;
     31      1.1  christos    Cval : Char_Range := 65;
     32      1.1  christos 
     33      1.1  christos    type Some_Packed_Record is record
     34      1.1  christos       R: Small;
     35      1.1  christos       S: Small;
     36      1.1  christos    end record;
     37      1.1  christos    pragma Pack (Some_Packed_Record);
     38      1.1  christos    SPR : Some_Packed_Record := (R => -4, S => -5);
     39      1.1  christos 
     40      1.1  christos    type Packed_Array is array (1 .. 3) of Small;
     41      1.1  christos    pragma pack (Packed_Array);
     42      1.1  christos    A : Packed_Array := (-7, -5, -4);
     43      1.1  christos 
     44      1.1  christos begin
     45      1.1  christos    Do_Nothing (Y'Address);		--  STOP
     46      1.1  christos    Do_Nothing (Y1'Address);
     47      1.1  christos    Do_Nothing (X'Address);
     48      1.1  christos    Do_Nothing (X1'Address);
     49      1.1  christos    Do_Nothing (Cval'Address);
     50      1.1  christos    Do_Nothing (SPR'Address);
     51      1.1  christos    Do_Nothing (A'Address);
     52      1.1  christos end Bias;
     53