@ -0,0 +1,5 @@ | |||||
# if boohoohoo | |||||
int x; | |||||
#else | |||||
int y; | |||||
#endif |
@ -0,0 +1,7 @@ | |||||
main() { | |||||
int a; | |||||
typedef b = (a); | |||||
typeof (int *) c; | |||||
typeof (d[0](1)) e; | |||||
c = &a; | |||||
} |
@ -0,0 +1,7 @@ | |||||
main() { | |||||
int a; | |||||
typedef b = (a); | |||||
typeof (int *) c; | |||||
typeof (d[0](1)) e; | |||||
c = &a; | |||||
} |
@ -0,0 +1,20 @@ | |||||
//generalized lvalues | |||||
foo() { | |||||
int a,b,f; | |||||
(a, b) += 5; | |||||
a, (b += 5); | |||||
&(a, b); | |||||
a, &b; | |||||
(a ? b : c) = 5 ; | |||||
(a ? b = 5 : (c = 5)) ; | |||||
(int)a = 5 ; | |||||
(int)(a = (char *)(int)5) ; | |||||
(int)a += 5; | |||||
(int)(a = (char *)(int) ((int)a + 5)); | |||||
(int)f = 1; | |||||
(int *)&f; | |||||
} | |||||
@ -0,0 +1 @@ | |||||
//generalized lvalues |
@ -0,0 +1,12 @@ | |||||
now() { | |||||
union foo { int i; double d; }; | |||||
int x; | |||||
double y; | |||||
void hack (union foo); | |||||
union foo u; | |||||
u = (union foo) x == u.i = x; | |||||
u = (union foo) y == u.d = y; | |||||
hack ((union foo) x); | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
func (x, y) { | |||||
int x, y; | |||||
return x+y; | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
func (x, y) { | |||||
int x, y; | |||||
return x+y; | |||||
} | |||||
@ -0,0 +1,14 @@ | |||||
int x; | |||||
int y; | |||||
test(){ | |||||
switch (x) { | |||||
case 1: y=3; | |||||
break; | |||||
case 2: y=90; | |||||
break; | |||||
default: | |||||
} | |||||
} | |||||
@ -0,0 +1,4 @@ | |||||
int x; | |||||
int y; | |||||
@ -0,0 +1,15 @@ | |||||
int x; | |||||
int y; | |||||
test(){ | |||||
if (x<10) { | |||||
goto l66;; | |||||
} else { | |||||
y=100; | |||||
y++; | |||||
l66: | |||||
} | |||||
} | |||||
@ -0,0 +1,4 @@ | |||||
int x; | |||||
int y; | |||||
@ -0,0 +1,12 @@ | |||||
typedef struct h765t_ h765t ; | |||||
struct h765t_ { | |||||
void *ll881ss[10]; | |||||
}; | |||||
void gg (h765t *q23w3) | |||||
{ | |||||
if (q23w3->ll881ss[3]) { | |||||
if (1) { | |||||
q23w3->ll881ss[3] = (void *) (++(int)q23w3->ll881ss[3]); | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,4 @@ | |||||
typedef struct h765t_ h765t ; | |||||
struct h765t_ { | |||||
void *ll881ss[10]; | |||||
}; |
@ -0,0 +1,18 @@ | |||||
typedef void *PyObject; | |||||
int | |||||
PyMapping_SetItemString(o, key, value) | |||||
PyObject *o; | |||||
char *key; | |||||
PyObject *value; | |||||
{ | |||||
PyObject *okey; | |||||
int r; | |||||
if( ! key) return Py_ReturnNullError(),-1; | |||||
if (!(okey=PyString_FromString(key))) return -1; | |||||
r = PyObject_SetItem(o,okey,value); | |||||
if (--( okey )->ob_refcnt != 0) ; else (*( okey )->ob_type->tp_dealloc)((PyObject *)( okey )) ; | |||||
return r; | |||||
} | |||||
@ -0,0 +1,18 @@ | |||||
typedef void *PyObject; | |||||
int | |||||
PyMapping_SetItemString(o, key, value) | |||||
PyObject *o; | |||||
char *key; | |||||
PyObject *value; | |||||
{ | |||||
PyObject *okey; | |||||
int r; | |||||
if( ! key) return Py_ReturnNullError(),-1; | |||||
if (!(okey=PyString_FromString(key))) return -1; | |||||
r = PyObject_SetItem(o,okey,value); | |||||
if (--( okey )->ob_refcnt != 0) ; else (*( okey )->ob_type->tp_dealloc)((PyObject *)( okey )) ; | |||||
return r; | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
void F(char l) | |||||
{ | |||||
return l<= '\~'; | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
void F(char l) | |||||
{ | |||||
return l<= '\~'; | |||||
} | |||||
@ -0,0 +1,4 @@ | |||||
f (__builtin_va_alist ) | |||||
int __builtin_va_alist;... | |||||
{ } | |||||
@ -0,0 +1,6 @@ | |||||
f (__builtin_va_alist ) | |||||
int __builtin_va_alist;... | |||||
{ | |||||
} | |||||
@ -0,0 +1,19 @@ | |||||
int foo(); | |||||
int abs; | |||||
int main() { | |||||
abs = ({ | |||||
__label__ hey, now; | |||||
int y = foo (); | |||||
int z; | |||||
void *it; | |||||
it = &&hey; | |||||
hey: if (y > 0) z = y; | |||||
else z = - y; | |||||
z; | |||||
}); | |||||
} | |||||
@ -0,0 +1,19 @@ | |||||
int foo(); | |||||
int abs; | |||||
int main() { | |||||
abs = ({ | |||||
__label__ hey, now; | |||||
int y = foo (); | |||||
int z; | |||||
void *it; | |||||
it = &&hey; | |||||
hey: if (y > 0) z = y; | |||||
else z = - y; | |||||
z; | |||||
}); | |||||
} | |||||
@ -0,0 +1,8 @@ | |||||
foo (double a, double b) | |||||
{ | |||||
auto double square (double z); | |||||
double square (double z) { return z * z; } | |||||
return square (a) + square (b); | |||||
} | |||||
@ -0,0 +1,8 @@ | |||||
foo (double a, double b) | |||||
{ | |||||
auto double square (double z); | |||||
double square (double z) { return z * z; } | |||||
return square (a) + square (b); | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
main() { | |||||
int a; | |||||
//typedef b = (a); | |||||
typeof (int *) c; | |||||
typeof (d[0](1)) e; | |||||
c = &a; | |||||
} |
@ -0,0 +1,7 @@ | |||||
main() { | |||||
int a; | |||||
//typedef b = (a); | |||||
typeof (int *) c; | |||||
typeof (d[0](1)) e; | |||||
c = &a; | |||||
} |
@ -0,0 +1,5 @@ | |||||
hey() { | |||||
int x,y,z; | |||||
z= x ? : y; | |||||
} | |||||
@ -0,0 +1,5 @@ | |||||
hey() { | |||||
int x,y,z; | |||||
z= x ? : y; | |||||
} | |||||
@ -0,0 +1,11 @@ | |||||
heynow() { | |||||
long long int x = 10LL; | |||||
unsigned long long int y = 9ULL; | |||||
__complex__ float c, d, e; | |||||
float f; | |||||
c = 10.0 + 3.0fi; | |||||
d = ~ c; | |||||
f = __real__ c; | |||||
f = __imag__ d; | |||||
} | |||||
@ -0,0 +1,11 @@ | |||||
heynow() { | |||||
long long int x = 10LL; | |||||
unsigned long long int y = 9ULL; | |||||
__complex__ float c, d, e; | |||||
float f; | |||||
c = 10.0 + 3.0fi; | |||||
d = ~ c; | |||||
f = __real__ c; | |||||
f = __imag__ d; | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
concat_fopen (char *s1, char *s2, char *mode) | |||||
{ | |||||
char str[strlen (s1) + strlen (s2) + 1]; | |||||
strcpy (str, s1); | |||||
strcat (str, s2); | |||||
return fopen (str, mode); | |||||
} |
@ -0,0 +1,7 @@ | |||||
concat_fopen (char *s1, char *s2, char *mode) | |||||
{ | |||||
char str[strlen (s1) + strlen (s2) + 1]; | |||||
strcpy (str, s1); | |||||
strcat (str, s2); | |||||
return fopen (str, mode); | |||||
} |
@ -0,0 +1,15 @@ | |||||
heynow() { | |||||
struct foo {int a; char b[2];} structure; | |||||
char **foo1 = (char *[]) { "x", "y", "z" }; | |||||
structure = ((struct foo) {x + y, 'a', 0}); | |||||
{ | |||||
struct foo temp = {x + y, 'a', 0}; | |||||
structure = temp; | |||||
} | |||||
output = ((int[]) { 2, x, 28 }) [input]; | |||||
} | |||||
@ -0,0 +1,15 @@ | |||||
heynow() { | |||||
struct foo {int a; char b[2];} structure; | |||||
char **foo1 = (char *[]) { "x", "y", "z" }; | |||||
structure = ((struct foo) {x + y, 'a', 0}); | |||||
{ | |||||
struct foo temp = {x + y, 'a', 0}; | |||||
structure = temp; | |||||
} | |||||
output = ((int[]) { 2, x, 28 }) [input]; | |||||
} | |||||
@ -0,0 +1,23 @@ | |||||
aikoAllDay() { | |||||
int a[6] = { [4] 29, [2] = 15 }; | |||||
int ab[6] = { 0, 0, 15, 0, 29, 0 }; | |||||
int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 }; | |||||
int xvalue, yvalue, v1, v2, v4; | |||||
struct point { int x, y; }; | |||||
struct point p = { xvalue, yvalue }; | |||||
struct point p = { y: yvalue, x: xvalue }; | |||||
struct point p = { .y = yvalue, .x = xvalue }; | |||||
union foo { int i; double d; }; | |||||
union foo f = { d: 4 }; | |||||
int a[6] = { [1] = v1, v2, [4] = v4 }; | |||||
int a[6] = { 0, v1, v2, 0, v4, 0 }; | |||||
int whitespace[256] | |||||
= { [' '] = 1, ['\t'] = 1, ['\h'] = 1, | |||||
['\f'] = 1, ['\n'] = 1, ['\r'] = 1 }; | |||||
fn(1,2,3); | |||||
} | |||||
@ -0,0 +1,23 @@ | |||||
aikoAllDay() { | |||||
int a[6] = { [4] 29, [2] = 15 }; | |||||
int ab[6] = { 0, 0, 15, 0, 29, 0 }; | |||||
int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 }; | |||||
int xvalue, yvalue, v1, v2, v4; | |||||
struct point { int x, y; }; | |||||
struct point p = { xvalue, yvalue }; | |||||
struct point p = { y: yvalue, x: xvalue }; | |||||
struct point p = { .y = yvalue, .x = xvalue }; | |||||
union foo { int i; double d; }; | |||||
union foo f = { d: 4 }; | |||||
int a[6] = { [1] = v1, v2, [4] = v4 }; | |||||
int a[6] = { 0, v1, v2, 0, v4, 0 }; | |||||
int whitespace[256] | |||||
= { [' '] = 1, ['\t'] = 1, ['\h'] = 1, | |||||
['\f'] = 1, ['\n'] = 1, ['\r'] = 1 }; | |||||
fn(1,2,3); | |||||
} | |||||
@ -0,0 +1,17 @@ | |||||
struct foo {int a[5];} ; | |||||
struct foo f(); | |||||
inline int bar (int index) { | |||||
int c; | |||||
enum blah; | |||||
c = __alignof(foo.a); | |||||
c = __alignof(unsigned long int); | |||||
switch (index) { | |||||
case 'a'...'z': | |||||
break; | |||||
} | |||||
return f().a[index]; | |||||
} | |||||
@ -0,0 +1,17 @@ | |||||
struct foo {int a[5];} ; | |||||
struct foo f(); | |||||
inline int bar (int index) { | |||||
int c; | |||||
enum blah; | |||||
c = __alignof(foo.a); | |||||
c = __alignof(unsigned long int); | |||||
switch (index) { | |||||
case 'a'...'z': | |||||
break; | |||||
} | |||||
return f().a[index]; | |||||
} | |||||
@ -0,0 +1,77 @@ | |||||
void fatal () __attribute__ ((noreturn)); | |||||
typedef void voidfn (); | |||||
volatile voidfn fatal; | |||||
int square (int) __attribute__ ((const)); | |||||
typedef int intfn (); | |||||
extern const intfn square; | |||||
extern int | |||||
my_printf (void *my_object, const char *my_format, ...) | |||||
__attribute__ ((format (printf, 2, 3))); | |||||
extern char * | |||||
my_dgettext (char *my_domain, const char *my_format) | |||||
__attribute__ ((format_arg (2))); | |||||
extern void foobar (void) __attribute__ ((section ("bar"))); | |||||
void __f () { /* do something */; } | |||||
void f () __attribute__ ((weak, alias ("__f"))); | |||||
int x __attribute__ ((aligned (16), packed)) = 0; | |||||
struct foo { int x[2] __attribute__ ((aligned (8))); }; | |||||
short array[3] __attribute__ ((aligned)); | |||||
struct foo1 | |||||
{ | |||||
char a; | |||||
int x[2] __attribute__ ((packed)); | |||||
}; | |||||
struct duart a __attribute__ ((section ("DUART_A"))) = { 0 }; | |||||
struct duart b __attribute__ ((section ("DUART_B"))) = { 0 }; | |||||
char stack[10000] __attribute__ ((section ("STACK"))) = { 0 }; | |||||
int init_data __attribute__ ((section ("INITDATA"))) = 0; | |||||
struct S { short f[3]; } __attribute__ ((aligned (8))); | |||||
typedef int more_aligned_int __attribute__ ((aligned (8))); | |||||
union wait { int a, __ip; }; | |||||
typedef int pid_t; | |||||
typedef union | |||||
{ | |||||
int *__ip; | |||||
union wait *__up; | |||||
} wait_status_ptr_t __attribute__ ((__transparent_union__)); | |||||
pid_t wait (wait_status_ptr_t); | |||||
int w1 () { int w; return wait (&w); } | |||||
int w2 () { union wait w; return wait (&w); } | |||||
pid_t wait (wait_status_ptr_t p) | |||||
{ | |||||
return waitpid (-1, p.__ip, 0); | |||||
} | |||||
main() | |||||
{ | |||||
/* Initialize stack pointer */ | |||||
init_sp (stack + sizeof (stack)); | |||||
/* Initialize initialized data */ | |||||
memcpy (&init_data, &data, &edata - &data); | |||||
/* Turn on the serial ports */ | |||||
init_duart (&a); | |||||
init_duart (&b); | |||||
} |
@ -0,0 +1,77 @@ | |||||
void fatal () __attribute__ ((noreturn)); | |||||
typedef void voidfn (); | |||||
volatile voidfn fatal; | |||||
int square (int) __attribute__ ((const)); | |||||
typedef int intfn (); | |||||
extern const intfn square; | |||||
extern int | |||||
my_printf (void *my_object, const char *my_format, ...) | |||||
__attribute__ ((format (printf, 2, 3))); | |||||
extern char * | |||||
my_dgettext (char *my_domain, const char *my_format) | |||||
__attribute__ ((format_arg (2))); | |||||
extern void foobar (void) __attribute__ ((section ("bar"))); | |||||
void __f () { /* do something */; } | |||||
void f () __attribute__ ((weak, alias ("__f"))); | |||||
int x __attribute__ ((aligned (16), packed)) = 0; | |||||
struct foo { int x[2] __attribute__ ((aligned (8))); }; | |||||
short array[3] __attribute__ ((aligned)); | |||||
struct foo1 | |||||
{ | |||||
char a; | |||||
int x[2] __attribute__ ((packed)); | |||||
}; | |||||
struct duart a __attribute__ ((section ("DUART_A"))) = { 0 }; | |||||
struct duart b __attribute__ ((section ("DUART_B"))) = { 0 }; | |||||
char stack[10000] __attribute__ ((section ("STACK"))) = { 0 }; | |||||
int init_data __attribute__ ((section ("INITDATA"))) = 0; | |||||
struct S { short f[3]; } __attribute__ ((aligned (8))); | |||||
typedef int more_aligned_int __attribute__ ((aligned (8))); | |||||
union wait { int a, __ip; }; | |||||
typedef int pid_t; | |||||
typedef union | |||||
{ | |||||
int *__ip; | |||||
union wait *__up; | |||||
} wait_status_ptr_t __attribute__ ((__transparent_union__)); | |||||
pid_t wait (wait_status_ptr_t); | |||||
int w1 () { int w; return wait (&w); } | |||||
int w2 () { union wait w; return wait (&w); } | |||||
pid_t wait (wait_status_ptr_t p) | |||||
{ | |||||
return waitpid (-1, p.__ip, 0); | |||||
} | |||||
main() | |||||
{ | |||||
/* Initialize stack pointer */ | |||||
init_sp (stack + sizeof (stack)); | |||||
/* Initialize initialized data */ | |||||
memcpy (&init_data, &data, &edata - &data); | |||||
/* Turn on the serial ports */ | |||||
init_duart (&a); | |||||
init_duart (&b); | |||||
} |
@ -0,0 +1,3 @@ | |||||
int foo asm ("myfoo") = 2; | |||||
extern func () asm ("FUNC"); |
@ -0,0 +1,3 @@ | |||||
int foo asm ("myfoo") = 2; | |||||
extern func () asm ("FUNC"); |
@ -0,0 +1,30 @@ | |||||
fn() { | |||||
asm ("fsinx %1,%0" : "=f" (result) : "f" (angle)); | |||||
asm ("combine %2,%0" : "=r" (foo) : "0" (foo), "g" (bar)); | |||||
asm ("combine %2,%0" : "=r" (foo) : "r" (foo), "g" (bar)); | |||||
asm volatile ("movc3 %0,%1,%2" | |||||
: /* no outputs */ | |||||
: "g" (from), "g" (to), "g" (count) | |||||
: "r0", "r1", "r2", "r3", "r4", "r5"); | |||||
asm ("movl %0,r9;movl %1,r10;call _foo" | |||||
: /* no outputs */ | |||||
: "g" (from), "g" (to) | |||||
: "r9", "r10"); | |||||
asm ("clr %0;frob %1;beq 0f;mov #1,%0;0:" | |||||
: "g" (result) | |||||
: "g" (input)); | |||||
{ double __value, __arg = (x); | |||||
asm ("fsinx %1,%0": "=f" (__value): "f" (__arg)); | |||||
__value; } | |||||
{ int __old; | |||||
asm volatile ("get_and_set_priority %0, %1": "=g" (__old) : "g" (new)); | |||||
__old; } | |||||
} | |||||
@ -0,0 +1,30 @@ | |||||
fn() { | |||||
asm ("fsinx %1,%0" : "=f" (result) : "f" (angle)); | |||||
asm ("combine %2,%0" : "=r" (foo) : "0" (foo), "g" (bar)); | |||||
asm ("combine %2,%0" : "=r" (foo) : "r" (foo), "g" (bar)); | |||||
asm volatile ("movc3 %0,%1,%2" | |||||
: /* no outputs */ | |||||
: "g" (from), "g" (to), "g" (count) | |||||
: "r0", "r1", "r2", "r3", "r4", "r5"); | |||||
asm ("movl %0,r9;movl %1,r10;call _foo" | |||||
: /* no outputs */ | |||||
: "g" (from), "g" (to) | |||||
: "r9", "r10"); | |||||
asm ("clr %0;frob %1;beq 0f;mov #1,%0;0:" | |||||
: "g" (result) | |||||
: "g" (input)); | |||||
{ double __value, __arg = (x); | |||||
asm ("fsinx %1,%0": "=f" (__value): "f" (__arg)); | |||||
__value; } | |||||
{ int __old; | |||||
asm volatile ("get_and_set_priority %0, %1": "=g" (__old) : "g" (new)); | |||||
__old; } | |||||
} | |||||
@ -0,0 +1,8 @@ | |||||
// C++ comment | |||||
int f$; | |||||
tester (int len; char data[len][len], int len) { | |||||
} | |||||
@ -0,0 +1,8 @@ | |||||
// C++ comment | |||||
int f$; | |||||
tester (int len; char data[len][len], int len) { | |||||
} | |||||
@ -0,0 +1,23 @@ | |||||
typedef struct a { | |||||
int b; | |||||
} c,*d; | |||||
extern int execv(const char *, char *const []); | |||||
int b; | |||||
int a = b = 1; | |||||
static char *predefs = "whatever \ | |||||
more "; | |||||
char *temporary_firstobj = | |||||
(char *) __extension__ | |||||
({ struct obstack *__h = ( &temporary_obstack ); | |||||
__extension__ ({ struct obstack *__o = ( __h ); | |||||
int __len = ( ( 0 ) ); | |||||
if (__o->chunk_limit - __o->next_free < __len) _obstack_newchunk (__o, __len); __o->next_free += __len; (void) 0; }) ; __extension__ ({ struct obstack *__o1 = ( __h ); void *value; value = (void *) __o1->object_base; if (__o1->next_free == value) __o1->maybe_empty_object = 1; __o1->next_free = (( ((( __o1->next_free ) - (char *) 0) +__o1->alignment_mask) & ~ (__o1->alignment_mask) ) + (char *) 0) ; if (__o1->next_free - (char *)__o1->chunk > __o1->chunk_limit - (char *)__o1->chunk) __o1->next_free = __o1->chunk_limit; __o1->object_base = __o1->next_free; value; }) ; }) ; | |||||
static char cPickle_module_documentation[] = | |||||
"C implementation and optimization of the Python pickle module\n" | |||||
"\n" | |||||
"cPickle.c,v 1.48 1997/12/07 14:37:39 jim Exp\n" | |||||
; | |||||
@ -0,0 +1,23 @@ | |||||
typedef struct a { | |||||
int b; | |||||
} c,*d; | |||||
extern int execv(const char *, char *const []); | |||||
int b; | |||||
int a = b = 1; | |||||
static char *predefs = "whatever \ | |||||
more "; | |||||
char *temporary_firstobj = | |||||
(char *) __extension__ | |||||
({ struct obstack *__h = ( &temporary_obstack ); | |||||
__extension__ ({ struct obstack *__o = ( __h ); | |||||
int __len = ( ( 0 ) ); | |||||
if (__o->chunk_limit - __o->next_free < __len) _obstack_newchunk (__o, __len); __o->next_free += __len; (void) 0; }) ; __extension__ ({ struct obstack *__o1 = ( __h ); void *value; value = (void *) __o1->object_base; if (__o1->next_free == value) __o1->maybe_empty_object = 1; __o1->next_free = (( ((( __o1->next_free ) - (char *) 0) +__o1->alignment_mask) & ~ (__o1->alignment_mask) ) + (char *) 0) ; if (__o1->next_free - (char *)__o1->chunk > __o1->chunk_limit - (char *)__o1->chunk) __o1->next_free = __o1->chunk_limit; __o1->object_base = __o1->next_free; value; }) ; }) ; | |||||
static char cPickle_module_documentation[] = | |||||
"C implementation and optimization of the Python pickle module\n" | |||||
"\n" | |||||
"cPickle.c,v 1.48 1997/12/07 14:37:39 jim Exp\n" | |||||
; | |||||
@ -0,0 +1,46 @@ | |||||
typedef struct bitmap_element_def | |||||
{ | |||||
struct bitmap_element_def *next; | |||||
struct bitmap_element_def *prev; | |||||
unsigned int indx; | |||||
unsigned int bits[2 ]; | |||||
} bitmap_element; | |||||
typedef struct bitmap_head_def { | |||||
bitmap_element *first; | |||||
bitmap_element *current; | |||||
int indx; | |||||
} bitmap_head, *bitmap; | |||||
static __inline__ void | |||||
bitmap_element_free (head, elt) | |||||
bitmap head; | |||||
bitmap_element *elt; | |||||
{ | |||||
bitmap_element *next = elt->next; | |||||
} | |||||
main() { | |||||
/* See if this is a branch that is part of the path. If so, and it is | |||||
to be taken, do so. */ | |||||
if (next_branch->branch == insn) | |||||
{ | |||||
enum taken status = next_branch++->status; | |||||
if (status != NOT_TAKEN) | |||||
{ | |||||
if (status == TAKEN) | |||||
record_jump_equiv (insn, 1); | |||||
else | |||||
invalidate_skipped_block (NEXT_INSN (insn)); | |||||
/* Set the last insn as the jump insn; it doesn't affect cc0. | |||||
Then follow this branch. */ | |||||
prev_insn_cc0 = 0; | |||||
prev_insn = insn; | |||||
insn = JUMP_LABEL (insn); | |||||
continue; | |||||
} | |||||
} | |||||
} | |||||
@ -0,0 +1,46 @@ | |||||
typedef struct bitmap_element_def | |||||
{ | |||||
struct bitmap_element_def *next; | |||||
struct bitmap_element_def *prev; | |||||
unsigned int indx; | |||||
unsigned int bits[2 ]; | |||||
} bitmap_element; | |||||
typedef struct bitmap_head_def { | |||||
bitmap_element *first; | |||||
bitmap_element *current; | |||||
int indx; | |||||
} bitmap_head, *bitmap; | |||||
static __inline__ void | |||||
bitmap_element_free (head, elt) | |||||
bitmap head; | |||||
bitmap_element *elt; | |||||
{ | |||||
bitmap_element *next = elt->next; | |||||
} | |||||
main() { | |||||
/* See if this is a branch that is part of the path. If so, and it is | |||||
to be taken, do so. */ | |||||
if (next_branch->branch == insn) | |||||
{ | |||||
enum taken status = next_branch++->status; | |||||
if (status != NOT_TAKEN) | |||||
{ | |||||
if (status == TAKEN) | |||||
record_jump_equiv (insn, 1); | |||||
else | |||||
invalidate_skipped_block (NEXT_INSN (insn)); | |||||
/* Set the last insn as the jump insn; it doesn't affect cc0. | |||||
Then follow this branch. */ | |||||
prev_insn_cc0 = 0; | |||||
prev_insn = insn; | |||||
insn = JUMP_LABEL (insn); | |||||
continue; | |||||
} | |||||
} | |||||
} | |||||
@ -0,0 +1,39 @@ | |||||
typedef struct ppptype_ { | |||||
void *d; | |||||
void *l; | |||||
int t; | |||||
int m; | |||||
} ppptype; | |||||
typedef struct jjjtype_ jjjtype ; | |||||
typedef __typeof__ (sizeof (0)) size_t; | |||||
typedef unsigned char uchar; | |||||
typedef unsigned short ushort; | |||||
typedef unsigned long ulong; | |||||
typedef ulong cttype; | |||||
typedef char *zz_list; | |||||
typedef int boolean; | |||||
typedef unsigned char tl; | |||||
typedef void abctype; | |||||
typedef int wwd_t; | |||||
typedef enum { | |||||
F_FE, | |||||
F_U, | |||||
F_E, | |||||
} yy; | |||||
typedef void xyz; | |||||
typedef xyz (xyz_t)(void); | |||||
typedef abctype (abcproc)(void ); | |||||
typedef boolean (mnsss)(ppptype *); | |||||
typedef void (void_r)(void *, ...); | |||||
typedef boolean (boolean_e)(void *, ...); | |||||
typedef void (*tyyx_func)(void *, void *, void *); | |||||
typedef boolean (*bbhg_type)(jjjtype *); | |||||
typedef struct cl_ { | |||||
union { | |||||
uchar y[4]; | |||||
ushort s[2]; | |||||
ulong d; | |||||
} d; | |||||
} cl; | |||||
@ -0,0 +1,39 @@ | |||||
typedef struct ppptype_ { | |||||
void *d; | |||||
void *l; | |||||
int t; | |||||
int m; | |||||
} ppptype; | |||||
typedef struct jjjtype_ jjjtype ; | |||||
typedef __typeof__ (sizeof (0)) size_t; | |||||
typedef unsigned char uchar; | |||||
typedef unsigned short ushort; | |||||
typedef unsigned long ulong; | |||||
typedef ulong cttype; | |||||
typedef char *zz_list; | |||||
typedef int boolean; | |||||
typedef unsigned char tl; | |||||
typedef void abctype; | |||||
typedef int wwd_t; | |||||
typedef enum { | |||||
F_FE, | |||||
F_U, | |||||
F_E, | |||||
} yy; | |||||
typedef void xyz; | |||||
typedef xyz (xyz_t)(void); | |||||
typedef abctype (abcproc)(void ); | |||||
typedef boolean (mnsss)(ppptype *); | |||||
typedef void (void_r)(void *, ...); | |||||
typedef boolean (boolean_e)(void *, ...); | |||||
typedef void (*tyyx_func)(void *, void *, void *); | |||||
typedef boolean (*bbhg_type)(jjjtype *); | |||||
typedef struct cl_ { | |||||
union { | |||||
uchar y[4]; | |||||
ushort s[2]; | |||||
ulong d; | |||||
} d; | |||||
} cl; | |||||
@ -0,0 +1,18 @@ | |||||
static inline void | |||||
ttt (int *wwp) | |||||
{ | |||||
int xyz = 6; | |||||
do { | |||||
asm(".set noreorder; \ | |||||
lqq %7,5(%8); \ | |||||
nop; \ | |||||
ziv %2,%2,-4; \ | |||||
1:\ | |||||
ab %5,7(%1);\ | |||||
.set reorder" | |||||
: "=r" (xyz) | |||||
: "r" (wwp), "0" (xyz)); | |||||
} while (!xyz); | |||||
} | |||||
@ -0,0 +1,18 @@ | |||||
static inline void | |||||
ttt (int *wwp) | |||||
{ | |||||
int xyz = 6; | |||||
do { | |||||
asm(".set noreorder; \ | |||||
lqq %7,5(%8); \ | |||||
nop; \ | |||||
ziv %2,%2,-4; \ | |||||
1:\ | |||||
ab %5,7(%1);\ | |||||
.set reorder" | |||||
: "=r" (xyz) | |||||
: "r" (wwp), "0" (xyz)); | |||||
} while (!xyz); | |||||
} | |||||
@ -0,0 +1,18 @@ | |||||
static inline void | |||||
junk2 (void) | |||||
{ | |||||
long gtexews; | |||||
asm volatile (".set noreorder"); | |||||
asm volatile ("awde0 %8,$42" : "=r" (gtexews) : ); | |||||
asm volatile ("nop"); | |||||
asm volatile ("tref %7,$12" : : "r" (gtexews & ~0x00001111 ) | |||||
); | |||||
asm volatile ("nop"); | |||||
asm volatile (".set reorder"); | |||||
asm volatile (".set mips3"); | |||||
asm volatile (".set noreorder\n" | |||||
".set noat\n" | |||||
".set mips3"); | |||||
asm volatile ("yha0 $7 ,$29"); | |||||
} | |||||
@ -0,0 +1,18 @@ | |||||
static inline void | |||||
junk2 (void) | |||||
{ | |||||
long gtexews; | |||||
asm volatile (".set noreorder"); | |||||
asm volatile ("awde0 %8,$42" : "=r" (gtexews) : ); | |||||
asm volatile ("nop"); | |||||
asm volatile ("tref %7,$12" : : "r" (gtexews & ~0x00001111 ) | |||||
); | |||||
asm volatile ("nop"); | |||||
asm volatile (".set reorder"); | |||||
asm volatile (".set mips3"); | |||||
asm volatile (".set noreorder\n" | |||||
".set noat\n" | |||||
".set mips3"); | |||||
asm volatile ("yha0 $7 ,$29"); | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
typedef struct d4elhhtrt_ { | |||||
int alhhtrt : 6; | |||||
int bblhhtrt : 6; | |||||
int uyttffds:3 __attribute__ ((packed)) ; | |||||
int hfgeresshb:5 __attribute__ ((packed)) ; | |||||
} d4elhhtrt; | |||||
@ -0,0 +1,7 @@ | |||||
typedef struct d4elhhtrt_ { | |||||
int alhhtrt : 6; | |||||
int bblhhtrt : 6; | |||||
int uyttffds:3 __attribute__ ((packed)) ; | |||||
int hfgeresshb:5 __attribute__ ((packed)) ; | |||||
} d4elhhtrt; | |||||
@ -0,0 +1,3 @@ | |||||
typedef struct { | |||||
} ff6tfdrg; | |||||
@ -0,0 +1,3 @@ | |||||
typedef struct { | |||||
} ff6tfdrg; | |||||
@ -0,0 +1,10 @@ | |||||
enum { DDD = -7 }; | |||||
struct abc_ { | |||||
struct abc *next; | |||||
enum { DDD = -7 }; | |||||
int a; | |||||
char b; | |||||
}; | |||||
@ -0,0 +1,10 @@ | |||||
enum { DDD = -7 }; | |||||
struct abc_ { | |||||
struct abc *next; | |||||
enum { DDD = -7 }; | |||||
int a; | |||||
char b; | |||||
}; | |||||
@ -0,0 +1,17 @@ | |||||
typedef struct x_ x; | |||||
struct x_{ | |||||
int y; | |||||
int z; | |||||
}; | |||||
x b; | |||||
struct x_ a = {}; | |||||
x c = {}; | |||||
typedef struct xyz_ { | |||||
int a; | |||||
int b;; | |||||
char c; | |||||
} xyz; | |||||
@ -0,0 +1,17 @@ | |||||
typedef struct x_ x; | |||||
struct x_{ | |||||
int y; | |||||
int z; | |||||
}; | |||||
x b; | |||||
struct x_ a = {}; | |||||
x c = {}; | |||||
typedef struct xyz_ { | |||||
int a; | |||||
int b;; | |||||
char c; | |||||
} xyz; | |||||
@ -0,0 +1,21 @@ | |||||
typedef int tt67t __attribute__ ((mode (SI))); | |||||
typedef unsigned int hg554x __attribute__ ((mode (SI))); | |||||
typedef int u887 __attribute__ ((mode (DI))); | |||||
struct lo98k {tt67t d453s, s7655fd4;}; | |||||
typedef union | |||||
{ | |||||
struct lo98k s; | |||||
u887 s432; | |||||
} c443ds4; | |||||
u887 | |||||
test (u887 e9877, u887 q3209) | |||||
{ | |||||
c443ds4 w; | |||||
c443ds4 e45d45, o908oo98; | |||||
e45d45.s432 = e9877, | |||||
o908oo98.s432 = q3209; | |||||
w.s432 = ({c443ds4 y665re; __asm__ ("trt %1,%9\ | |||||
gtri %6" : "=d" ((hg554x)( y665re.s.s7655fd4 )), "=d" ((hg554x)( y665re.s.d453s )) : "d" ((hg554x)( e45d45.s.s7655fd4 )), "d" ((hg554x)( o908oo98.s.s7655fd4 ))) ; y665re.s432; }) ; | |||||
return w.s432; | |||||
} | |||||
@ -0,0 +1,21 @@ | |||||
typedef int tt67t __attribute__ ((mode (SI))); | |||||
typedef unsigned int hg554x __attribute__ ((mode (SI))); | |||||
typedef int u887 __attribute__ ((mode (DI))); | |||||
struct lo98k {tt67t d453s, s7655fd4;}; | |||||
typedef union | |||||
{ | |||||
struct lo98k s; | |||||
u887 s432; | |||||
} c443ds4; | |||||
u887 | |||||
test (u887 e9877, u887 q3209) | |||||
{ | |||||
c443ds4 w; | |||||
c443ds4 e45d45, o908oo98; | |||||
e45d45.s432 = e9877, | |||||
o908oo98.s432 = q3209; | |||||
w.s432 = ({c443ds4 y665re; __asm__ ("trt %1,%9\ | |||||
gtri %6" : "=d" ((hg554x)( y665re.s.s7655fd4 )), "=d" ((hg554x)( y665re.s.d453s )) : "d" ((hg554x)( e45d45.s.s7655fd4 )), "d" ((hg554x)( o908oo98.s.s7655fd4 ))) ; y665re.s432; }) ; | |||||
return w.s432; | |||||
} | |||||
@ -0,0 +1,4 @@ | |||||
int x; | |||||
int y; | |||||
@ -0,0 +1,15 @@ | |||||
int x; | |||||
int y; | |||||
test(){ | |||||
if (x<10) { | |||||
goto l66;; | |||||
} else { | |||||
y=100; | |||||
y++; | |||||
l66: | |||||
} | |||||
} | |||||
@ -0,0 +1,4 @@ | |||||
typedef struct h765t_ h765t ; | |||||
struct h765t_ { | |||||
void *ll881ss[10]; | |||||
}; |
@ -0,0 +1,36 @@ | |||||
funfn(int a, int b, int c, int d, char *e) | |||||
{ | |||||
if (a) { | |||||
print(); | |||||
return b; | |||||
} | |||||
if (b) { | |||||
int localfn() { | |||||
return a; | |||||
} | |||||
exit(c); | |||||
} | |||||
if (d) { | |||||
__builtin_return( null ); | |||||
} | |||||
return c; | |||||
} | |||||
fn() { | |||||
print("whoa"); | |||||
} | |||||
fn2() { | |||||
if (1) | |||||
return 2; | |||||
} | |||||
main() { | |||||
malloc(10); | |||||
nonMalloc(20); | |||||
fn(); | |||||
funfn(1,2,3,4,"hey"); | |||||
} | |||||
@ -0,0 +1,36 @@ | |||||
funfn(int a, int b, int c, int d, char *e) | |||||
{ | |||||
if (a) { | |||||
print(); | |||||
return b; | |||||
} | |||||
if (b) { | |||||
int localfn() { | |||||
return a; | |||||
} | |||||
exit(c); | |||||
} | |||||
if (d) { | |||||
__builtin_return( null ); | |||||
} | |||||
return c; | |||||
} | |||||
fn() { | |||||
print("whoa"); | |||||
} | |||||
fn2() { | |||||
if (1) | |||||
return 2; | |||||
} | |||||
main() { | |||||
malloc(10); | |||||
nonMalloc(20); | |||||
fn(); | |||||
funfn(1,2,3,4,"hey"); | |||||
} | |||||
@ -0,0 +1,9 @@ | |||||
void * validate_malloc(typeof(sizeof(0)) size, void *pc); | |||||
void * get_current_pc(void); | |||||
void fn_entry(int functionId); | |||||
void fn_exit(int functionId); | |||||
main() { | |||||
exit(0); | |||||
} | |||||
@ -0,0 +1,9 @@ | |||||
void * validate_malloc(typeof(sizeof(0)) size, void *pc); | |||||
void * get_current_pc(void); | |||||
void fn_entry(int functionId); | |||||
void fn_exit(int functionId); | |||||
main() { | |||||
exit(0); | |||||
} | |||||
@ -0,0 +1,18 @@ | |||||
extern void rt(long, long); | |||||
extern long rn(void); | |||||
extern void rl(char*, int, int); | |||||
int rd (void **, int) ; | |||||
rf (int *rnx) | |||||
{ | |||||
return (rnx); | |||||
} | |||||
rnn (int rny) | |||||
{ | |||||
return (rny); | |||||
} | |||||
; | |||||
; | |||||
extern const int XYZ ; ; | |||||
; | |||||
@ -0,0 +1,18 @@ | |||||
extern void rt(long, long); | |||||
extern long rn(void); | |||||
extern void rl(char*, int, int); | |||||
int rd (void **, int) ; | |||||
rf (int *rnx) | |||||
{ | |||||
return (rnx); | |||||
} | |||||
rnn (int rny) | |||||
{ | |||||
return (rny); | |||||
} | |||||
; | |||||
; | |||||
extern const int XYZ ; ; | |||||
; | |||||
@ -0,0 +1,2 @@ | |||||
cat = 13; | |||||
@ -0,0 +1,2 @@ | |||||
cat = 13; | |||||
@ -0,0 +1,7 @@ | |||||
g (); | |||||
f () | |||||
{ | |||||
int seed; | |||||
g (seed); | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
g (); | |||||
f () | |||||
{ | |||||
int seed; | |||||
g (seed); | |||||
} | |||||
@ -0,0 +1,2 @@ | |||||
typedef long time_t; | |||||
@ -0,0 +1,3 @@ | |||||
//long int s[5] = L"abcd"; | |||||
char *s = L"abcd"; | |||||
@ -0,0 +1,9 @@ | |||||
struct s | |||||
{ | |||||
int a; | |||||
int b; | |||||
short c; | |||||
int d[3]; | |||||
}; | |||||
struct s s = { .b = 3, .d = {2,0,0} }; | |||||
@ -0,0 +1,9 @@ | |||||
struct s | |||||
{ | |||||
int a; | |||||
int b; | |||||
short c; | |||||
int d[3]; | |||||
}; | |||||
struct s s = { .b = 3, .d = {2,0,0} }; | |||||
@ -0,0 +1,8 @@ | |||||
struct s { | |||||
int c[3]; | |||||
}; | |||||
struct s s = { | |||||
c: {1, 2, 3} | |||||
}; | |||||
@ -0,0 +1,8 @@ | |||||
struct s { | |||||
int c[3]; | |||||
}; | |||||
struct s s = { | |||||
c: {1, 2, 3} | |||||
}; | |||||
@ -0,0 +1,7 @@ | |||||
x(a) | |||||
{ | |||||
static void*j[]={&&l1}; | |||||
goto*j[a]; | |||||
l1:; | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
x(a) | |||||
{ | |||||
static void*j[]={&&l1}; | |||||
goto*j[a]; | |||||
l1:; | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
f() | |||||
{ | |||||
__label__ l; | |||||
l:p(); | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
f() | |||||
{ | |||||
__label__ l; | |||||
l:p(); | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
f() | |||||
{ | |||||
__label__ mylabel; | |||||
mylabel: | |||||
goto mylabel; | |||||
} | |||||
@ -0,0 +1,7 @@ | |||||
f() | |||||
{ | |||||
__label__ mylabel; | |||||
mylabel: | |||||
goto mylabel; | |||||
} | |||||
@ -0,0 +1,11 @@ | |||||
f () | |||||
{ | |||||
__label__ l; | |||||
void *x() | |||||
{ | |||||
return &&l; | |||||
} | |||||
l:; | |||||
} | |||||
@ -0,0 +1,11 @@ | |||||
f () | |||||
{ | |||||
__label__ l; | |||||
void *x() | |||||
{ | |||||
return &&l; | |||||
} | |||||
l:; | |||||
} | |||||
@ -0,0 +1,6 @@ | |||||
struct s | |||||
{ | |||||
int b; | |||||
}; | |||||
struct s s = { .b = 3 }; | |||||
@ -0,0 +1,6 @@ | |||||
struct s | |||||
{ | |||||
int b; | |||||
}; | |||||
struct s s = { .b = 3 }; | |||||
@ -0,0 +1,5 @@ | |||||
f() | |||||
{ | |||||
if (!('\400')); | |||||
} | |||||