Annotation of researchv10no/cmd/lcc/ph/mix6.c, revision 1.1

1.1     ! root        1: /* The Plum Hall Validation Suite for C
        !             2:  * Unpublished copyright (c) 1986-1991, Chiron Systems Inc and Plum Hall Inc.
        !             3:  * VERSION: 4
        !             4:  * DATE: 1993-01-01
        !             5:  * The "ANSI" mode of the Suite corresponds to the official ANSI C, X3.159-1989.
        !             6:  * As per your license agreement, your distribution is not to be moved or copied outside the Designated Site
        !             7:  * without specific permission from Plum Hall Inc.
        !             8:  */
        !             9: 
        !            10: /****************************************************************************
        !            11:  ** Self-checking C source code generated by EGEN component of             **
        !            12:  **    The Plum Hall Validation Suite for C.                               **
        !            13:  **    (C) 1986-1988 Chiron Systems Inc and Plum Hall Inc                  **
        !            14:  **    EGEN Version 1.09.000  88/08/21                                     **
        !            15:  **                                                                        **
        !            16:  **    EGEN -P -R6 -V -A -N5 -Dmixed.gen ( @ @ ) @ ( @ @ )                 **
        !            17:  ****************************************************************************/
        !            18: #include "defs.h"
        !            19: 
        !            20: 
        !            21: int main()
        !            22:        {
        !            23:        extern char *Filename;
        !            24:        static float f1;
        !            25:        auto float * pf1;
        !            26:        static long stlong1;
        !            27:        static float f2;
        !            28:        auto float * pf2;
        !            29:        static long stlong2;
        !            30:        static float f3;
        !            31:        static float * pf3;
        !            32:        auto long stlong3;
        !            33:        static float f4;
        !            34:        static float * pf4;
        !            35:        static long stlong4;
        !            36:        static double d1;
        !            37:        auto double * pd1;
        !            38:        static long stlong5;
        !            39:        static double d2;
        !            40:        static double * pd2;
        !            41:        static long stlong6;
        !            42:        auto double d3;
        !            43:        static double * pd3;
        !            44:        static long stlong7;
        !            45:        static double d4;
        !            46:        static double * pd4;
        !            47:        auto long stlong8;
        !            48: 
        !            49:        f1 = fvalue(1.100000E+000);
        !            50:        pf1 = &f1;
        !            51:        stlong1 = lvalue(1L);
        !            52:        f2 = fvalue(2.200000E+000);
        !            53:        pf2 = &f2;
        !            54:        stlong2 = lvalue(2L);
        !            55:        f3 = fvalue(3.300000E+000);
        !            56:        pf3 = &f3;
        !            57:        stlong3 = lvalue(3L);
        !            58:        f4 = fvalue(4.400000E+000);
        !            59:        pf4 = &f4;
        !            60:        stlong4 = lvalue(4L);
        !            61:        d1 = dvalue(1.100000000000000E+000);
        !            62:        pd1 = &d1;
        !            63:        stlong5 = lvalue(5L);
        !            64:        d2 = dvalue(2.200000000000000E+000);
        !            65:        pd2 = &d2;
        !            66:        stlong6 = lvalue(6L);
        !            67:        d3 = dvalue(3.300000000000000E+000);
        !            68:        pd3 = &d3;
        !            69:        stlong7 = lvalue(7L);
        !            70:        d4 = dvalue(4.400000000000000E+000);
        !            71:        pd4 = &d4;
        !            72:        stlong8 = lvalue(8L);
        !            73:        Filename = "mix6.c";
        !            74: 
        !            75:        /* 7L > 5L => 1 */
        !            76:        /* 8L <<= 1 => 16L */
        !            77:        /* 1L * 7L => 7L */
        !            78:        /* 7L & 1L => 1L */
        !            79:        /* 16L >= 1L => 1 */
        !            80:        iequals(__LINE__, ((stlong8 <<= (stlong7 > stlong5)) >= ((stlong1 * stlong7) & stlong1)), 1);
        !            81:        lequals(__LINE__, stlong8, 16L);
        !            82: 
        !            83:        /* pre++ 2L => 3L */
        !            84:        /* 1L << 3L => 8L */
        !            85:        /* post++ 4L => 3L */
        !            86:        /* 3L ^ 4L => 7L */
        !            87:        /* 8L - 7L => 1L */
        !            88:        lequals(__LINE__, ((stlong1 << ( ++ stlong2)) - (((stlong3)++ ) ^ stlong4)), 1L);
        !            89:        lequals(__LINE__, stlong3, 4L);
        !            90:        lequals(__LINE__, stlong2, 3L);
        !            91: 
        !            92:        /* 4L - 3L => 1L */
        !            93:        /* 1L <<= 1L => 2L */
        !            94:        /* post-- 1.00000E-001 => 1.10000E+000 */
        !            95:        /* 3.30000E+000 /= 1.10000E+000 => 3.00000E+000 */
        !            96:        /* 2L == 3.00000E+000 => 0 */
        !            97:        iequals(__LINE__, ((stlong1 <<= (stlong4 - stlong2)) == (*pf3 /= ((*pf1)-- ))), 0);
        !            98:        fequals(__LINE__, f1, 1.00000E-001);
        !            99:        fequals(__LINE__, f3, 3.00000E+000);
        !           100:        lequals(__LINE__, stlong1, 2L);
        !           101: 
        !           102:        /* pre++ 16L => 17L */
        !           103:        /* 5L && 17L => 1 */
        !           104:        /* post++ 8L => 7L */
        !           105:        /* 7L == 4L => 0 */
        !           106:        /* 1 ^ 0 => 1 */
        !           107:        iequals(__LINE__, ((stlong5 && ( ++ stlong8)) ^ (((stlong7)++ ) == stlong3)), 1);
        !           108:        lequals(__LINE__, stlong7, 8L);
        !           109:        lequals(__LINE__, stlong8, 17L);
        !           110: 
        !           111:        /* neg 8L => -8L */
        !           112:        /* -8L % 5L => -3L */
        !           113:        /* 1.10000000000000E+000 != 1.00000E-001 => 1 */
        !           114:        /* 2.20000000000000E+000 *= 1 => 2.20000000000000E+000 */
        !           115:        /* -3L == 2.20000000000000E+000 => 0 */
        !           116:        iequals(__LINE__, ((( - stlong7) % stlong5) == (*pd2 *= (d1 != *pf1))), 0);
        !           117:        dequals(__LINE__, d2, 2.20000000000000E+000);
        !           118: 
        !           119:        return  report(Filename);
        !           120:        }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.