1-- C87B07D.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 OVERLOADING RESOLUTION USES THE RULE THAT: 26-- 27-- THE ATTRIBUTES OF THE FORM T'SUCC (X) AND T'PRED (X) TAKE AN 28-- OPERAND X OF TYPE T AND RETURN A VALUE OF TYPE T. 29 30-- TRH 15 SEPT 82 31 32WITH REPORT; USE REPORT; 33 34PROCEDURE C87B07D IS 35 36 TYPE NEW_INT IS NEW INTEGER; 37 TYPE WHOLE IS NEW INTEGER RANGE 0 .. INTEGER'LAST; 38 39 FUNCTION "+" (X, Y : WHOLE) RETURN WHOLE 40 RENAMES "*"; 41 FUNCTION "+" (X, Y : NEW_INT) RETURN NEW_INT 42 RENAMES "-"; 43 44BEGIN 45 TEST ("C87B07D","OVERLOADED OPERANDS TO THE ATTRIBUTES " & 46 "'PRED' AND 'SUCC'"); 47 48 IF INTEGER'SUCC (1 + 1) /= 3 OR INTEGER'SUCC (3 + 3) + 1 /= 8 OR 49 NEW_INT'SUCC (1 + 1) /= 1 OR NEW_INT'SUCC (3 + 3) + 1 /= 0 OR 50 WHOLE'SUCC (1 + 1) /= 2 OR WHOLE'SUCC (3 + 3) + 1 /= 10 OR 51 INTEGER'PRED (1 + 1) /= 1 OR INTEGER'PRED (3 + 3) + 1 /= 6 OR 52 NEW_INT'PRED (1 + 1) /= -1 OR NEW_INT'PRED (3 + 3) + 1 /= -2 OR 53 WHOLE'PRED (1 + 1) /= 0 OR WHOLE'PRED (3 + 3) + 1 /= 8 54 THEN FAILED ("RESOLUTION INCORRECT FOR OPERAND OR RESULT OF" & 55 " THE 'PRED' OR 'SUCC' ATTRIBUTE"); 56 END IF; 57 58 RESULT; 59END C87B07D; 60