|
|
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 -R9 -V -A -N5 -Dinteger.gen ( @ @ ) @ ( @ @ ) ** ! 17: ****************************************************************************/ ! 18: #include "defs.h" ! 19: ! 20: ! 21: int main() ! 22: { ! 23: extern char *Filename; ! 24: auto unsigned int ui; ! 25: static unsigned int * pui; ! 26: auto unsigned int ** ppui; ! 27: auto int i; ! 28: static int * pi; ! 29: auto int ** ppi; ! 30: auto unsigned short us; ! 31: static unsigned short * pus; ! 32: auto unsigned short ** ppus; ! 33: auto short s; ! 34: static short * ps; ! 35: auto short ** pps; ! 36: auto unsigned char uc; ! 37: static unsigned char * puc; ! 38: auto unsigned char ** ppuc; ! 39: auto char c; ! 40: static char * pc; ! 41: auto char ** ppc; ! 42: auto unsigned long ul; ! 43: static unsigned long * pul; ! 44: auto unsigned long ** ppul; ! 45: auto long l; ! 46: static long * pl; ! 47: auto long ** ppl; ! 48: register int rint1; ! 49: register int rint2; ! 50: register int rint3; ! 51: register int rint4; ! 52: register int rint5; ! 53: ! 54: ui = ivalue(100); ! 55: pui = &ui; ! 56: ppui = &pui; ! 57: i = ivalue(10); ! 58: pi = &i; ! 59: ppi = π ! 60: us = lvalue(33000); ! 61: pus = &us; ! 62: ppus = &pus; ! 63: s = ivalue(13); ! 64: ps = &s; ! 65: pps = &ps; ! 66: uc = ivalue(128); ! 67: puc = &uc; ! 68: ppuc = &puc; ! 69: c = ivalue(20); ! 70: pc = &c; ! 71: ppc = &pc; ! 72: ul = lvalue(65000L); ! 73: pul = &ul; ! 74: ppul = &pul; ! 75: l = lvalue(97L); ! 76: pl = &l; ! 77: ppl = &pl; ! 78: rint1 = ivalue(1); ! 79: rint2 = ivalue(2); ! 80: rint3 = ivalue(3); ! 81: rint4 = ivalue(4); ! 82: rint5 = ivalue(5); ! 83: Filename = "int9.c"; ! 84: ! 85: /* 10 / 13 => 0 */ ! 86: /* 97L > 0 => 1 */ ! 87: /* 10 | 13 => 15 */ ! 88: /* 0xfde8L ^= 15 => 0xfde7L */ ! 89: /* 1 & 0xfde7L => 0x1L */ ! 90: lequals(__LINE__, ((*pl > (i / **pps)) & (**ppul ^= (**ppi | s))), 0x1L); ! 91: lequals(__LINE__, ul, 64999L); ! 92: ! 93: /* 10 < 10 => 0 */ ! 94: /* 0x64 += 0 => 0x64 */ ! 95: /* 0xfde7L += 97L => 0xfe48L */ ! 96: /* 20 %= 0xfe48L => 20 */ ! 97: /* 0x64 == 20 => 0 */ ! 98: iequals(__LINE__, ((*pui += (i < i)) == (*pc %= (*pul += **ppl))), 0); ! 99: lequals(__LINE__, ul, 65096L); ! 100: iequals(__LINE__, c, 20); ! 101: iequals(__LINE__, ui, (unsigned)100); ! 102: ! 103: /* 20 % 13 => 7 */ ! 104: /* 7 % 0x64 => 0x7 */ ! 105: /* 0x80 & 4 => 0 */ ! 106: /* 3 >>= 0 => 3 */ ! 107: /* 0x7 >= 3 => 1 */ ! 108: iequals(__LINE__, (((*pc % s) % *pui) >= (rint3 >>= (**ppuc & rint4))), 1); ! 109: iequals(__LINE__, rint3, 3); ! 110: ! 111: /* 4 | 0x80e8 => 0x80ec */ ! 112: /* 0xfe48L -= 0x80ec => 0x7d5cL */ ! 113: /* 97L <= 13 => 0 */ ! 114: /* 0 != 5 => 1 */ ! 115: /* 0x7d5cL * 1 => 0x7d5cL */ ! 116: lequals(__LINE__, ((**ppul -= (rint4 | *pus)) * ((l <= *ps) != rint5)), 0x7d5cL); ! 117: lequals(__LINE__, ul, 32092L); ! 118: ! 119: /* 3 < 0x64 => 1 */ ! 120: /* 0x80e8 -= 1 => 0x80e7 */ ! 121: /* 13 > 128 => 0 */ ! 122: /* 20 >>= 0 => 20 */ ! 123: /* 0x80e7 && 20 => 1 */ ! 124: iequals(__LINE__, ((*pus -= (rint3 < **ppui)) && (*pc >>= (s > *puc))), 1); ! 125: iequals(__LINE__, c, 20); ! 126: iequals(__LINE__, us, (unsigned)32999); ! 127: ! 128: return report(Filename); ! 129: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.