rem
stringlengths
0
83.5k
add
stringlengths
0
223k
context
stringlengths
10
471k
meta
stringlengths
120
236
unsigned32 regno, unsigned32 value
uint32_t regno, uint32_t value
void erc32_sonic_write_register( void *base, unsigned32 regno, unsigned32 value){ volatile unsigned32 *p = base;#if (SONIC_DEBUG & SONIC_DEBUG_PRINT_REGISTERS) printf( "%p Write 0x%04x to %s (0x%02x)\n", &p[regno], value, SONIC_Reg_name[regno], regno ); fflush( stdout );#endif p[regno] = 0x0ffff & v...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1be1e913564b73bf50ce1aa58c003e564ddae83a/erc32sonic.c/buggy/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c
volatile unsigned32 *p = base;
volatile uint32_t *p = base;
void erc32_sonic_write_register( void *base, unsigned32 regno, unsigned32 value){ volatile unsigned32 *p = base;#if (SONIC_DEBUG & SONIC_DEBUG_PRINT_REGISTERS) printf( "%p Write 0x%04x to %s (0x%02x)\n", &p[regno], value, SONIC_Reg_name[regno], regno ); fflush( stdout );#endif p[regno] = 0x0ffff & v...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1be1e913564b73bf50ce1aa58c003e564ddae83a/erc32sonic.c/buggy/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c
return Flx_renormalize(res,lg(res));
return FlxX_renormalize(res,lg(res));
FlxqX_Flxq_mul(GEN P, GEN U, GEN T, ulong p){ int i, lP = lg(P); GEN res = cgetg(lP,t_POL); res[1] = P[1]; for(i=2; i<lP; i++) res[i] = (long)Flxq_mul(U,(GEN)P[i], T,p); return Flx_renormalize(res,lg(res));}
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f3ec8a59d89f1785548e82595e87bd99224ed762/Flx.c/buggy/src/basemath/Flx.c
for (i=2; i<ly; i++) z[i] = (long) FpX_add((GEN)x[i], (GEN)y[i], p);
for (i=2; i<ly; i++) z[i] = (long) Fq_add((GEN)x[i], (GEN)y[i], NULL, p);
FpXX_add(GEN x, GEN y, GEN p){ long i,lz; GEN z; long lx=lg(x); long ly=lg(y); if (ly>lx) swapspec(x,y, lx,ly); lz = lx; z = cgetg(lz, t_POL); z[1]=x[1]; for (i=2; i<ly; i++) z[i] = (long) FpX_add((GEN)x[i], (GEN)y[i], p); for ( ; i<lx; i++) z[i] = (long) gcopy((GEN)x[i]); return FpXX_renormalize(z, lz);}
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/819c29b05ce2b9ff19e5d336713ce0753f46d652/polarit3.c/clean/src/basemath/polarit3.c
#define base vmeUniverse0BaseAddr
cfgUniversePort( unsigned long ismaster, unsigned long port, unsigned long address_space, unsigned long vme_address, unsigned long local_address, unsigned long length){#define base vmeUniverse0BaseAddrvolatile LERegister *preg;unsigned long p=port;unsigned long mode=0; /* check parameters */ if (port >= (ismaster ? UNI...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/784e792a04c600b79d535ad81a5ba32b4f4de33e/vmeUniverse.c/clean/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
else
else
cfgUniversePort( unsigned long ismaster, unsigned long port, unsigned long address_space, unsigned long vme_address, unsigned long local_address, unsigned long length){#define base vmeUniverse0BaseAddrvolatile LERegister *preg;unsigned long p=port;unsigned long mode=0; /* check parameters */ if (port >= (ismaster ? UNI...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/784e792a04c600b79d535ad81a5ba32b4f4de33e/vmeUniverse.c/clean/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
#undef base
cfgUniversePort( unsigned long ismaster, unsigned long port, unsigned long address_space, unsigned long vme_address, unsigned long local_address, unsigned long length){#define base vmeUniverse0BaseAddrvolatile LERegister *preg;unsigned long p=port;unsigned long mode=0; /* check parameters */ if (port >= (ismaster ? UNI...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/784e792a04c600b79d535ad81a5ba32b4f4de33e/vmeUniverse.c/clean/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
x += 2; y += 2; dz = dx-dy;
dz = dx-dy;
u_FpX_divrem(GEN x, GEN y, ulong p, int malloc, GEN *pr){ GEN z,q,c; long dx,dy,dz,i,j; ulong p1,inv; dy = deg(y); if (!dy) { if (pr) { if (pr == ONLY_REM) return u_zeropol(malloc); *pr = u_zeropol(malloc); } if (y[2] == 1UL) return u_copy(x,malloc); return u_FpX_Fp_mul(x, u_invmod(y[2], ...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
c = u_copy(x-2, malloc);
c = u_copy(x, malloc);
u_FpX_divrem(GEN x, GEN y, ulong p, int malloc, GEN *pr){ GEN z,q,c; long dx,dy,dz,i,j; ulong p1,inv; dy = deg(y); if (!dy) { if (pr) { if (pr == ONLY_REM) return u_zeropol(malloc); *pr = u_zeropol(malloc); } if (y[2] == 1UL) return u_copy(x,malloc); return u_FpX_Fp_mul(x, u_invmod(y[2], ...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
x += 2; y += 2;
u_FpX_divrem(GEN x, GEN y, ulong p, int malloc, GEN *pr){ GEN z,q,c; long dx,dy,dz,i,j; ulong p1,inv; dy = deg(y); if (!dy) { if (pr) { if (pr == ONLY_REM) return u_zeropol(malloc); *pr = u_zeropol(malloc); } if (y[2] == 1UL) return u_copy(x,malloc); return u_FpX_Fp_mul(x, u_invmod(y[2], ...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
GEN a = gzero, b = gzero;
GEN a = gzero, b = gzero, run = realun(DEFAULTPREC);
ZY_ZXY_ResBound(GEN A, GEN B){ ulong av = avma; GEN a = gzero, b = gzero; long i , lA = lgef(A), lB = lgef(B); for (i=2; i<lA; i++) a = addii(a, sqri((GEN)A[i])); for (i=2; i<lB; i++) { GEN t = (GEN)B[i]; if (typ(t) != t_INT) t = gnorml1(t, 0); b = addii(b, sqri(t)); } b = mulii(gpowgs(a, deg(B)), gpow...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
for (i=2; i<lA; i++) a = addii(a, sqri((GEN)A[i]));
for (i=2; i<lA; i++) a = gadd(a, gmul(gsqr((GEN)A[i]),run));
ZY_ZXY_ResBound(GEN A, GEN B){ ulong av = avma; GEN a = gzero, b = gzero; long i , lA = lgef(A), lB = lgef(B); for (i=2; i<lA; i++) a = addii(a, sqri((GEN)A[i])); for (i=2; i<lB; i++) { GEN t = (GEN)B[i]; if (typ(t) != t_INT) t = gnorml1(t, 0); b = addii(b, sqri(t)); } b = mulii(gpowgs(a, deg(B)), gpow...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
GEN t = (GEN)B[i]; if (typ(t) != t_INT) t = gnorml1(t, 0); b = addii(b, sqri(t));
GEN t = gmul((GEN)B[i], run); if (typ(t) == t_POL) t = gnorml1(t, 0); b = gadd(b, gsqr(t));
ZY_ZXY_ResBound(GEN A, GEN B){ ulong av = avma; GEN a = gzero, b = gzero; long i , lA = lgef(A), lB = lgef(B); for (i=2; i<lA; i++) a = addii(a, sqri((GEN)A[i])); for (i=2; i<lB; i++) { GEN t = (GEN)B[i]; if (typ(t) != t_INT) t = gnorml1(t, 0); b = addii(b, sqri(t)); } b = mulii(gpowgs(a, deg(B)), gpow...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
b = mulii(gpowgs(a, deg(B)), gpowgs(b, deg(A))); return gerepileupto(av, addis(racine(b), 1));
b = gmul(gpowgs(a, deg(B)), gpowgs(b, deg(A))); avma = av; return 1 + (gexpo(b)>>1);
ZY_ZXY_ResBound(GEN A, GEN B){ ulong av = avma; GEN a = gzero, b = gzero; long i , lA = lgef(A), lB = lgef(B); for (i=2; i<lA; i++) a = addii(a, sqri((GEN)A[i])); for (i=2; i<lB; i++) { GEN t = (GEN)B[i]; if (typ(t) != t_INT) t = gnorml1(t, 0); b = addii(b, sqri(t)); } b = mulii(gpowgs(a, deg(B)), gpow...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/8fb106e433493a99b7b083a32bc824515ed57d1c/polarit3.c/buggy/src/basemath/polarit3.c
if ( !temp_loc.ops->utime_h )
if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc );
int utime( const char *path, const struct utimbuf *times){ rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) ) return -1; if ( !temp_loc.ops->utime_h ) set_errno_and_return_minus_one( ENOTSUP )...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/efb5450a87d50c53584d361c92d5928098233f58/utime.c/clean/cpukit/libcsupport/src/utime.c
}
int utime( const char *path, const struct utimbuf *times){ rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) ) return -1; if ( !temp_loc.ops->utime_h ) set_errno_and_return_minus_one( ENOTSUP )...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/efb5450a87d50c53584d361c92d5928098233f58/utime.c/clean/cpukit/libcsupport/src/utime.c
while (( off < sizeof(buf) ) && ( uread(BSP_UART_COM1, LSR) & DR )) { buf[off++] = uread(BSP_UART_COM1, RBR);
while (( off < sizeof(buf) ) && ( uread(BSP_UART_COM2, LSR) & DR )) { buf[off++] = uread(BSP_UART_COM2, RBR);
BSP_uart_termios_read_com2(int uart){ int off = (int)0; char buf[40]; /* read current byte */ while (( off < sizeof(buf) ) && ( uread(BSP_UART_COM1, LSR) & DR )) { buf[off++] = uread(BSP_UART_COM1, RBR); } /* write out data */ if ( off > 0 ) { rtems_termios_enqueue_raw_characters(termios_ttyp_com2, ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/b9ff276c358906706798417185a88f59facb8293/uart.c/buggy/c/src/lib/libbsp/i386/shared/comm/uart.c
unsigned32 buf_size = 0;
uint32_t buf_size = 0;
void fileio_read_file(void){ char fname[1024]; char tmp_str[32]; unsigned32 buf_size = 0; size_t curr_pos; int fd = -1; ssize_t n; rtems_interval start_tick,curr_tick,ticks_per_sec; char *bufptr = NULL; boolean failed = FALSE; printf(" =========================\n"); printf(" READ FILE ... \n");...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/4c84d7b760ceb1e140c1cfc0fa64289ca4d243ed/init.c/buggy/testsuites/samples/fileio/init.c
boolean fileio_str2size(const char *str,unsigned32 *res_ptr)
boolean fileio_str2size(const char *str,uint32_t *res_ptr)
boolean fileio_str2size(const char *str,unsigned32 *res_ptr){ boolean failed = FALSE; unsigned long size; char suffix = ' '; if (1 > sscanf(str,"%lu%c",&size,&suffix)) { failed = TRUE; } else if (toupper(suffix) == 'K') { size *= 1024; } else if (toupper(suffix) == 'M') { size *= 1024UL*1024UL; } els...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/4c84d7b760ceb1e140c1cfc0fa64289ca4d243ed/init.c/buggy/testsuites/samples/fileio/init.c
unsigned32 flen = 0;
uint32_t flen = 0;
void fileio_list_file(void){ char fname[1024]; char *buf_ptr = NULL; unsigned32 flen = 0; int fd = -1; ssize_t n; size_t buf_size = 100; rtems_interval start_tick,curr_tick,ticks_per_sec; printf(" =========================\n"); printf(" LIST FILE ... \n"); printf(" =========================\n"); f...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/4c84d7b760ceb1e140c1cfc0fa64289ca4d243ed/init.c/buggy/testsuites/samples/fileio/init.c
dst = strdup(src);
if (src) dst = strdup(src);
void *bootp_strdup_realloc(char *dst,const char *src){ size_t len; void *realloc(void * __r, size_t __size); if (dst == NULL) { /* first allocation, simply use strdup */ dst = strdup(src); } else { /* already allocated, so use realloc/strcpy */ len = strlen(src) + 1; dst = realloc(dst,len); if ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/7ac73e6ee2af1a0bcdcccf76344e60db558efe9a/bootp_subr.c/buggy/cpukit/libnetworking/nfs/bootp_subr.c
len = strlen(src) + 1;
len = src ? strlen(src) + 1 : 0; /* src == NULL tells us to effectively free dst */
void *bootp_strdup_realloc(char *dst,const char *src){ size_t len; void *realloc(void * __r, size_t __size); if (dst == NULL) { /* first allocation, simply use strdup */ dst = strdup(src); } else { /* already allocated, so use realloc/strcpy */ len = strlen(src) + 1; dst = realloc(dst,len); if ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/7ac73e6ee2af1a0bcdcccf76344e60db558efe9a/bootp_subr.c/buggy/cpukit/libnetworking/nfs/bootp_subr.c
so->so_rcv.sb_flags |= SB_WAIT;
so->so_snd.sb_flags |= SB_WAIT;
socket_select (struct socket *so, int which, rtems_id tid){ switch (which) { case FREAD: if (soreadable(so)) return (1); so->so_rcv.sb_flags |= SB_WAIT; so->so_rcv.sb_sel.si_pid = tid; break; case FWRITE: if (sowriteable(so)) return (1); so->so_rcv.sb_flags |= SB_WAIT; so->so_snd.sb_sel.si_pid = tid; break;...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/182813e16485b2fba25923cc7be23b3acb73382c/rtems_select.c/clean/cpukit/libnetworking/rtems/rtems_select.c
unsigned32 count;
uint32_t count;
nvram_driver_write(rtems_device_major_number major, rtems_device_minor_number minor, void *arg){ rtems_libio_rw_args_t *args = arg; unsigned32 count; i2c_bus_number bus = DS1307_I2C_BUS_NUMBER; i2c_address addr = DS1307_I2C_ADDRESS; i2c_message_status status; ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/b7044dc94e1e4ee9f69ad6841e60c9602d5ea86b/nvram.c/buggy/c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c
rtems_unsigned8 buf[DS1307_NVRAM_SIZE + 1];
uint8_t buf[DS1307_NVRAM_SIZE + 1];
nvram_driver_write(rtems_device_major_number major, rtems_device_minor_number minor, void *arg){ rtems_libio_rw_args_t *args = arg; unsigned32 count; i2c_bus_number bus = DS1307_I2C_BUS_NUMBER; i2c_address addr = DS1307_I2C_ADDRESS; i2c_message_status status; ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/b7044dc94e1e4ee9f69ad6841e60c9602d5ea86b/nvram.c/buggy/c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c
volatile rtems_unsigned8 *VME_interrupt_enable; rtems_unsigned8 value;
volatile uint8_t *VME_interrupt_enable; uint8_t value;
void VME_interrupt_Enable ( VME_interrupt_Mask mask /* IN */){ volatile rtems_unsigned8 *VME_interrupt_enable; rtems_unsigned8 value;#if 0 VME_interrupt_enable = ACC_VIE;#else VME_interrupt_enable = 0;#endif value = *VME_interrupt_enable; value |= mask; /* turn on interr...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/ed9e44994265d3dccca845c7aade2f634184c339/vmeintr.c/clean/c/src/lib/libbsp/powerpc/dmv177/startup/vmeintr.c
isprincipalell(GEN bnfz, GEN id, GEN cycgen, GEN uu, GEN gell, long rc)
isprincipalell(GEN bnfz, GEN id, GEN cycgen, GEN u, GEN gell, long rc)
isprincipalell(GEN bnfz, GEN id, GEN cycgen, GEN uu, GEN gell, long rc){ long i, l = lg(cycgen); GEN y, logdisc, b; y = isprincipalgenforce(bnfz,id); logdisc = gmod((GEN)y[1], gell); b = to_famat_all((GEN)y[2], gun); for (i=rc+1; i<l; i++) { GEN e = modii(mulii((GEN)logdisc[i],(GEN)uu[i]), gell); b = famat...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/73929b165be3dc8f342788321bf5a06394a0cf3d/kummer.c/clean/src/modules/kummer.c
GEN y, logdisc, b;
GEN logdisc, b, y = isprincipalgenforce(bnfz,id);
isprincipalell(GEN bnfz, GEN id, GEN cycgen, GEN uu, GEN gell, long rc){ long i, l = lg(cycgen); GEN y, logdisc, b; y = isprincipalgenforce(bnfz,id); logdisc = gmod((GEN)y[1], gell); b = to_famat_all((GEN)y[2], gun); for (i=rc+1; i<l; i++) { GEN e = modii(mulii((GEN)logdisc[i],(GEN)uu[i]), gell); b = famat...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/73929b165be3dc8f342788321bf5a06394a0cf3d/kummer.c/clean/src/modules/kummer.c
y = isprincipalgenforce(bnfz,id);
isprincipalell(GEN bnfz, GEN id, GEN cycgen, GEN uu, GEN gell, long rc){ long i, l = lg(cycgen); GEN y, logdisc, b; y = isprincipalgenforce(bnfz,id); logdisc = gmod((GEN)y[1], gell); b = to_famat_all((GEN)y[2], gun); for (i=rc+1; i<l; i++) { GEN e = modii(mulii((GEN)logdisc[i],(GEN)uu[i]), gell); b = famat...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/73929b165be3dc8f342788321bf5a06394a0cf3d/kummer.c/clean/src/modules/kummer.c
GEN e = modii(mulii((GEN)logdisc[i],(GEN)uu[i]), gell);
GEN e = modii(mulii((GEN)logdisc[i],(GEN)u[i]), gell);
isprincipalell(GEN bnfz, GEN id, GEN cycgen, GEN uu, GEN gell, long rc){ long i, l = lg(cycgen); GEN y, logdisc, b; y = isprincipalgenforce(bnfz,id); logdisc = gmod((GEN)y[1], gell); b = to_famat_all((GEN)y[2], gun); for (i=rc+1; i<l; i++) { GEN e = modii(mulii((GEN)logdisc[i],(GEN)uu[i]), gell); b = famat...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/73929b165be3dc8f342788321bf5a06394a0cf3d/kummer.c/clean/src/modules/kummer.c
return &prototab[i];
return (struct protoent *) &prototab[i];
getprotobynumber (int proto){ int i; for (i = 0 ; i < (sizeof prototab / sizeof prototab[0]) ; i++) { if (proto == prototab[i].p_proto) return &prototab[i]; } return NULL;}
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/ff0f694d466fb114c185bf464811658f97d012f1/getprotoby.c/clean/c/src/libnetworking/lib/getprotoby.c
if (*analyseur == '"') bp = readstring_i(bp, &buf,&limit); else bp = expand_string(bp, &buf,&limit);
bp = expand_string(bp, &buf,&limit);
identifier(void){ long m, i, matchcomma, deriv; gpmem_t av; char *ch1; entree *ep; GEN res, newfun, ptr; mark.identifier = analyseur; ep = entry(); if (EpVALENCE(ep)==EpVAR || EpVALENCE(ep)==EpGVAR) { /* optimized for simple variables */ switch (*analyseur) { case ')': case ',': return (GEN)ep->value...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/62a31d7cdb146350310e18b922ba1239df4ca90e/anal.c/buggy/src/language/anal.c
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi)
slotFor (Triv121PgTbl pt, unsigned long vsid, unsigned long pi)
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
int i; unsigned long hash,api; PTE pte;
int i; unsigned long hash, api; APte pte;
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
/* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found a free PTE; mark it as potentially used and return */ pte->h=0; /* found by the primary hash fn */ pte->marked...
/* primary hash */ hash = PTE_HASH1 (vsid, pi); api = API (pi); /* linear search thru all buckets for this hash */ for (i = 0, pte = ptegOf (pt, hash); i < PTE_PER_PTEG; i++, pte++) { if (!pte->v && !pte->marked) { /* found a free PTE; mark it as potentially used and return */ pte->h = 0; /* found by the ...
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
/* Strange: if the hash table was allocated big enough, * this should not happen (when using a 1:1 mapping) * Give them some information... */ PRINTF("## First hash bucket full - "); dumpPteg(vsid,pi,hash);
/* Strange: if the hash table was allocated big enough, * this should not happen (when using a 1:1 mapping) * Give them some information... */ PRINTF ("## First hash bucket full - "); dumpPteg (vsid, pi, hash);
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
hash = PTE_HASH2(hash);
hash = PTE_HASH2 (hash);
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
PRINTF(" Secondary pteg is 0x%08x\n", (unsigned)ptegOf(pt,hash));
PRINTF (" Secondary pteg is 0x%08x\n", (unsigned) ptegOf (pt, hash));
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* mark this pte as potentially used */ pte->marked=1; pte->h=1; return pte; } }
for (i = 0, pte = ptegOf (pt, hash); i < PTE_PER_PTEG; i++, pte++) { if (!pte->v && !pte->marked) { /* mark this pte as potentially used */ pte->marked = 1; pte->h = 1; return pte; } }
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
/* Even more strange - most likely, something is REALLY messed up */ PRINTF("## Second hash bucket full - "); dumpPteg(vsid,pi,hash);
/* Even more strange - most likely, something is REALLY messed up */ PRINTF ("## Second hash bucket full - "); dumpPteg (vsid, pi, hash);
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
return 0;
return 0;
slotFor(Triv121PgTbl pt, unsigned long vsid, unsigned long pi){int i;unsigned long hash,api;PTE pte; /* primary hash */ hash = PTE_HASH1(vsid,pi); api=API(pi); /* linear search thru all buckets for this hash */ for (i=0, pte=ptegOf(pt,hash); i<PTE_PER_PTEG; i++,pte++) { if (!pte->v && !pte->marked) { /* found ...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/1b1b43ccc1a6d654199ddb6329366d2e44bdaea3/pte121.c/clean/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c
printf( "gettimeofday: %s", ctime( &tv.tv_sec ) );
a_time_t = tv.tv_sec; /* ctime() takes a time_t */ printf( "gettimeofday: %s", ctime( &a_time_t) );
void check_a_tod( rtems_time_of_day *the_tod){ rtems_status_code status; rtems_time_of_day new_tod; time_t a_time_t; struct timeval tv; struct tm *a_tm; int result; int i = 0; print_time( "rtems_clock_set ", the_tod, "\n" ); status = rtems_clock_set( t...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/bfded728ec4c912f666df94867c118a1004b0165/test.c/buggy/c/src/tests/psxtests/psxtime/test.c
ulong M_2 = h->M << 1; long x = 0, count = 0;
long x = 0, count = 0, M_2 = h->M << 1;
mpqs_eval_sieve(mpqs_handle_t *h){ ulong M_2 = h->M << 1; long x = 0, count = 0; /* XX Todo: replace the following by an auto-adjusting threshold driven * XX by histogram yield measurements */ unsigned char th = h->sieve_threshold; unsigned char *sieve_array = h->sieve_array; long *candidates = h->candidates; ...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f2ea9bd32cba7fad43082b848508b3e81edfea5d/mpqs.c/clean/src/modules/mpqs.c
GEN g = mppgcd(Qx, kN);
GEN g = gcdii(Qx, kN);
mpqs_eval_candidates(GEN A, GEN inv_A4, GEN B, GEN kN, long k, double sqrt_kN, long *FB, long *start_1, long *start_2, ulong M, long bin_index, long *candidates, long number_of_candidates, long lp_bound, long start_index_FB_for_A, FILE *FREL, FILE *LPREL) /* NB FREL, LPREL are ac...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/2edc82b0d172402925241429eca01a236af8dd01/mpqs.c/clean/src/modules/mpqs.c
if (pi < h->index0_FB) {
if ((mpqs_int32_t)pi < h->index0_FB) {
mpqs_eval_cand(mpqs_handle_t *h, long number_of_cand, FILE *FREL, FILE *LPREL) /* NB FREL, LPREL are actually FNEW, LPNEW when we get called */{ pari_sp av; long number_of_relations = 0; char *relations = h->relations; long *relaprimes = h->relaprimes; ulong i, pi; mpqs_FB_entry_t *FB = h->FB; GEN A =...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f2ea9bd32cba7fad43082b848508b3e81edfea5d/mpqs.c/clean/src/modules/mpqs.c
idpowred(GEN x, GEN n) { return idealpowred(static_OBJ, x, n, 0); }
idpowred(void *nf, GEN x, GEN n) { return idealpowred((GEN) nf, x, n, 0); }
idpowred(GEN x, GEN n) { return idealpowred(static_OBJ, x, n, 0); }
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/d5847452a0a61f4b94c584ee5aed865e7709a077/polarit2.c/clean/src/basemath/polarit2.c
int minor, const char *buf,
int minor, const char *buf,
MG5UART_STATIC int mg5uart_write_support_polled( int minor, const char *buf, int len){ int nwrite = 0; /* * poll each byte in the string out of the port. */ while (nwrite < len) { /* * transmit character */ mg5uart_write_polled(minor, *buf++); nwrite++; } /* * return the...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/2e7ed911d7a99274d5268498a3466de06f580d8a/mg5uart.c/buggy/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c
while (nwrite < len) { /* * transmit character */
while (nwrite < len) {
MG5UART_STATIC int mg5uart_write_support_polled( int minor, const char *buf, int len){ int nwrite = 0; /* * poll each byte in the string out of the port. */ while (nwrite < len) { /* * transmit character */ mg5uart_write_polled(minor, *buf++); nwrite++; } /* * return the...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/2e7ed911d7a99274d5268498a3466de06f580d8a/mg5uart.c/buggy/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c
progname = *argv;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_OK;
pppd_status = EXIT_OK;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
kill_link = 0;
pppd_kill_link = 0;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_OPEN_FAILED;
pppd_status = EXIT_OPEN_FAILED;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_INIT_FAILED;
pppd_status = EXIT_INIT_FAILED;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (kill_link)
if (pppd_kill_link)
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_CONNECT_FAILED;
pppd_status = EXIT_CONNECT_FAILED;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (kill_link)
if (pppd_kill_link)
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_OPEN_FAILED;
pppd_status = EXIT_OPEN_FAILED;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (!persist || errno != EINTR || hungup || kill_link)
if (!persist || errno != EINTR || hungup || pppd_kill_link)
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_FATAL_ERROR;
pppd_status = EXIT_FATAL_ERROR;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_NEGOTIATION_FAILED;
pppd_status = EXIT_NEGOTIATION_FAILED;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
while (phase != PHASE_DEAD) {
while (pppd_phase != PHASE_DEAD) {
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (kill_link) {
if (pppd_kill_link) {
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
kill_link = 0;
pppd_kill_link = 0;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (phase == PHASE_NETWORK || phase == PHASE_RUNNING) {
if (pppd_phase == PHASE_NETWORK || pppd_phase == PHASE_RUNNING) {
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
kill_link = 0;
pppd_kill_link = 0;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (kill_link) { kill_link = 0;
if (pppd_kill_link) { pppd_kill_link = 0;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
} while (phase == PHASE_HOLDOFF);
} while (pppd_phase == PHASE_HOLDOFF);
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
die(status); return status;
die(pppd_status); return pppd_status;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
status = EXIT_HANGUP;
pppd_status = EXIT_HANGUP;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
if (phase <= PHASE_AUTHENTICATE
if (pppd_phase <= PHASE_AUTHENTICATE
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
protocol, phase));
protocol, pppd_phase));
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
phase = p;
pppd_phase = p;
static struct timeval *timeleft __P((struct timeval *));static void holdoff_end __P((void *));static int device_script __P((int, int, char *));extern char *ttyname __P((int));extern char *getlogin __P((void));int pppdmain __P((int, char *[]));/* * PPP Data Link Layer "protocol" table. * One entry per supported protocol...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemsmain.c/buggy/c/src/libnetworking/pppd/rtemsmain.c
#endif
pari_sighandler(int sig){ char *msg; (void)os_signal(sig,pari_sighandler); switch(sig) {#ifdef SIGBREAK case SIGBREAK: pari_handle_SIGINT(); return;#endif#ifdef SIGINT case SIGINT: pari_handle_SIGINT(); return;#endif#ifdef SIGSEGV case SIGSEGV: msg="segmentation fault: bug in PARI or calling program...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/953ca9aeb195d8eca3f431a684a1b202f3edcd87/init.c/buggy/src/language/init.c
filltabs(Cache *C, Cache *Cp, Red *R, int p, int pk, long ltab)
filltabs(Cache *C, Cache *Cp, Red *R, long p, long pk, long ltab)
filltabs(Cache *C, Cache *Cp, Red *R, int p, int pk, long ltab){ pari_sp av; int i, j; long e; GEN tabt, taba, m; C->cyc = cyclo(pk,0); if (p > 2) { int LE = pk - pk/p + 1; GEN E = cgetg(LE, t_VECSMALL), eta = cgetg(pk+1,t_VEC); for (i=1,j=0; i<pk; i++) if (i%p) E[++j] = i; C->E = E; for (i=1...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/b03001ef86c74799b6280212f7a40aee0823ed89/aprcl.c/clean/src/modules/aprcl.c
int i, j;
long i, j;
filltabs(Cache *C, Cache *Cp, Red *R, int p, int pk, long ltab){ pari_sp av; int i, j; long e; GEN tabt, taba, m; C->cyc = cyclo(pk,0); if (p > 2) { int LE = pk - pk/p + 1; GEN E = cgetg(LE, t_VECSMALL), eta = cgetg(pk+1,t_VEC); for (i=1,j=0; i<pk; i++) if (i%p) E[++j] = i; C->E = E; for (i=1...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/b03001ef86c74799b6280212f7a40aee0823ed89/aprcl.c/clean/src/modules/aprcl.c
int LE = pk - pk/p + 1;
long LE = pk - pk/p + 1;
filltabs(Cache *C, Cache *Cp, Red *R, int p, int pk, long ltab){ pari_sp av; int i, j; long e; GEN tabt, taba, m; C->cyc = cyclo(pk,0); if (p > 2) { int LE = pk - pk/p + 1; GEN E = cgetg(LE, t_VECSMALL), eta = cgetg(pk+1,t_VEC); for (i=1,j=0; i<pk; i++) if (i%p) E[++j] = i; C->E = E; for (i=1...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/b03001ef86c74799b6280212f7a40aee0823ed89/aprcl.c/clean/src/modules/aprcl.c
int LE = (pk>>2) + 1;
long LE = (pk>>2) + 1;
filltabs(Cache *C, Cache *Cp, Red *R, int p, int pk, long ltab){ pari_sp av; int i, j; long e; GEN tabt, taba, m; C->cyc = cyclo(pk,0); if (p > 2) { int LE = pk - pk/p + 1; GEN E = cgetg(LE, t_VECSMALL), eta = cgetg(pk+1,t_VEC); for (i=1,j=0; i<pk; i++) if (i%p) E[++j] = i; C->E = E; for (i=1...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/b03001ef86c74799b6280212f7a40aee0823ed89/aprcl.c/clean/src/modules/aprcl.c
int jj, ph = pk - pk/p;
long jj, ph = pk - pk/p;
filltabs(Cache *C, Cache *Cp, Red *R, int p, int pk, long ltab){ pari_sp av; int i, j; long e; GEN tabt, taba, m; C->cyc = cyclo(pk,0); if (p > 2) { int LE = pk - pk/p + 1; GEN E = cgetg(LE, t_VECSMALL), eta = cgetg(pk+1,t_VEC); for (i=1,j=0; i<pk; i++) if (i%p) E[++j] = i; C->E = E; for (i=1...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/b03001ef86c74799b6280212f7a40aee0823ed89/aprcl.c/clean/src/modules/aprcl.c
rtems_unsigned16 index;
uint16_t index;
rtems_isr external_exception_ISR ( rtems_vector_number vector /* IN */){ rtems_unsigned16 index; rtems_boolean is_active=FALSE; rtems_unsigned32 scv64_status; Chain_Node *node; EE_ISR_Type *ee_isr; /* * Get all active interrupts. */ scv64_status = SCV6...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/ed9e44994265d3dccca845c7aade2f634184c339/genpvec.c/buggy/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
rtems_unsigned32 scv64_status;
uint32_t scv64_status;
rtems_isr external_exception_ISR ( rtems_vector_number vector /* IN */){ rtems_unsigned16 index; rtems_boolean is_active=FALSE; rtems_unsigned32 scv64_status; Chain_Node *node; EE_ISR_Type *ee_isr; /* * Get all active interrupts. */ scv64_status = SCV6...
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/ed9e44994265d3dccca845c7aade2f634184c339/genpvec.c/buggy/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
errno = ENOSYS; return -1;
rtems_libio_t *iop; /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dirp->dd_fd ); if (iop == NULL) assert(0); return (long)( iop->offset );
long telldir( DIR *dirp){ errno = ENOSYS; return -1;}
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/07a3253de2c3f9bc2d96a351680ec72548dadd2d/telldir.c/clean/cpukit/libcsupport/src/telldir.c
long size = 512, n = size; char *buf = gpmalloc(n), *s = buf;
Buffer *b = new_buffer(); input_method IM; filtre_t F; GEN x;
readGEN(FILE *fi){ long size = 512, n = size; char *buf = gpmalloc(n), *s = buf; while (fgets(s, n, fi)) { if (s[strlen(s)-1] == '\n') { GEN x = freadexpr(buf); free(buf); return x; } buf = gprealloc(buf, size<<1); s = buf + (size-1); n = size+1; size <<= 1; }#if defined(UNIX) || defined(_...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f7d452c12ec91042db2a51f8cac89be08be1fcaa/es.c/clean/src/language/es.c
while (fgets(s, n, fi)) { if (s[strlen(s)-1] == '\n') { GEN x = freadexpr(buf); free(buf); return x; } buf = gprealloc(buf, size<<1); s = buf + (size-1); n = size+1; size <<= 1; } #if defined(UNIX) || defined(__EMX__) if (!feof(fi)) #endif err(talker, "failed read from file"); return NULL;
init_filtre(&F, b); IM.file = fi; IM.fgets= &fgets; IM.prompt = NULL; IM.getline= &file_input; IM.free = 0; (void)input_loop(&F,&IM); x = readseq(b->buf); delete_buffer(b); return x;
readGEN(FILE *fi){ long size = 512, n = size; char *buf = gpmalloc(n), *s = buf; while (fgets(s, n, fi)) { if (s[strlen(s)-1] == '\n') { GEN x = freadexpr(buf); free(buf); return x; } buf = gprealloc(buf, size<<1); s = buf + (size-1); n = size+1; size <<= 1; }#if defined(UNIX) || defined(_...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f7d452c12ec91042db2a51f8cac89be08be1fcaa/es.c/clean/src/language/es.c
kill_link = 1;
pppd_kill_link = 1;
static void timeout_terminate(void *arg){ /* set pppd global variables to disconnect */ persist = 0; kill_link = 1;}
10355 /local/tlutelli/issta_data/temp/c/2005_temp/2005/10355/48cdb95aa2444a386a911be1a8251483d79a9935/rtemspppd.c/clean/cpukit/pppd/rtemspppd.c
newcrossing(spantab); if(y==spantab->lastlasty)
if(y!=spantab->lastlasty)
static void adddot(struct spantab *spantab, int x, int y){ if(y<0 || y>=MAXLINES) return; if(y<spantab->miny) spantab->miny=y; if(y>spantab->maxy) spantab->maxy=y; if(y==spantab->lasty) { spantab->xout=x; } else { if(spantab->secondy<0) { spantab->secondy=y; if(spantab->secondy > spantab->firsty) --spantab->f...
1561 /local/tlutelli/issta_data/temp/c/2005_temp/2005/1561/de267a11b57ddc24ab28ce52839e112700620daa/render.c/clean/render.c
else { int t; t=spantab->xout; spantab->xout = spantab->xin; newcrossing(spantab); spantab->xin = spantab->xout = t; newcrossing(spantab); }
static void adddot(struct spantab *spantab, int x, int y){ if(y<0 || y>=MAXLINES) return; if(y<spantab->miny) spantab->miny=y; if(y>spantab->maxy) spantab->maxy=y; if(y==spantab->lasty) { spantab->xout=x; } else { if(spantab->secondy<0) { spantab->secondy=y; if(spantab->secondy > spantab->firsty) --spantab->f...
1561 /local/tlutelli/issta_data/temp/c/2005_temp/2005/1561/de267a11b57ddc24ab28ce52839e112700620daa/render.c/clean/render.c
GEN __x;
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
else f = powsell(cp4,f,B,p); /* F */
else f = powsell(cp4,f,B,p); /* F = B.f */
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
{ /* we're nearly done: naive method */
{ /* we're nearly done: naive search */ GEN q1 = p1, mf = negsell(f); /* -F */
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
p1 = addsell(cp4,p1,f,p); /* h.f + i.F */ if (!p1) { h = addii(h, mulsi(i,B)); goto FOUND; }
p1 = addsell(cp4,p1, f,p); /* h.f + i.F */ if (!p1) { h = addii(h, mulsi( i,B)); goto FOUND; } q1 = addsell(cp4,q1,mf,p); /* h.f - i.F */ if (!q1) { h = addii(h, mulsi(-i,B)); goto FOUND; }
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
_fix(p1+1, j); tx[i] = _low((GEN)p1[1]); _fix(p1+2, j); ty[i] = _low((GEN)p1[2]);
_fix(p1+1, j); tx[i] = modBIL((GEN)p1[1]); _fix(p1+2, j); ty[i] = modBIL((GEN)p1[2]);
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
mfh = dummycopy(fh); mfh[2] = lnegi((GEN)mfh[2]); fg = addsell(cp4,p1,mfh,p); /* nb.F */
mfh = negsell(fh); fg = addsell(cp4,p1,mfh,p); /* h.f + nb.F - h.f = nb.F */
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
if (egalii((GEN)p1[2],(GEN)fg[2])) k -= 2*nb; /* fg = p1 */ h = addii(h, mulsi(k,B)); goto FOUND;
if (egalii((GEN)p1[2],(GEN)fg[2])) k -= 2*nb; /* fg == p1 */ h = addii(h, mulsi(k,B)); goto FOUND;
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
tx[i] = _low((GEN)p1[1]); ty[i] = _low((GEN)p1[2]);
tx[i] = modBIL((GEN)p1[1]); ty[i] = modBIL((GEN)p1[2]);
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
p1 = addsell(cp4,(GEN)pts[j-1],mfh,p); /* = f^(s-1) */
p1 = addsell(cp4,(GEN)pts[j-1],mfh,p); /* = (s-1).F */ if (!p1) { h = mulsi(s-1,B); goto FOUND; }
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
/* giant steps: fg = f^s */
/* giant steps: fg = s.F */
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
if (!fg) { h = addii(h, mulsi(s,B)); goto FOUND; } pfinal = _low(p); av2 = avma;
if (!fg) { h = mulsi(s,B); goto FOUND; } pfinal = modBIL(p); av2 = avma;
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
for (j=2; j<=nb; j++) /* pts = first nb multiples of fg */ gaffect(addsell(cp4,(GEN)pts[j-1],fg,p), (GEN)pts[j]);
for (j=2; j<=nb; j++) /* pts[j] = j.fg = (s*j).F */ { p1 = addsell(cp4,(GEN)pts[j-1],fg,p); if (!p1) { h = mulii(mulss(s,j), B); goto FOUND; } gaffect(p1, (GEN)pts[j]); }
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
k = _low((GEN)ftest[1]);
k = modBIL((GEN)ftest[1]);
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c
k2 = _low((GEN)ftest[2]);
k2 = modBIL((GEN)ftest[2]);
apell1(GEN e, GEN p){ long *tx, *ty, *ti, pfinal, i, j, j2, s, k, k1, x, nb; gpmem_t av = avma, av2; GEN p1,p2,p3,h,mfh,f,fh,fg,pordmin,u,v,p1p,p2p,A,B,c4,c6,cp4,pts; GEN __x; tx = ty = ti = NULL; /* gcc -Wall */ if (DEBUGLEVEL) (void)timer2(); c4 = gmod(gdivgs((GEN)e[10], -48), p); c6 = gmod(gdivgs((GEN)e[11]...
2195 /local/tlutelli/issta_data/temp/c/2005_temp/2005/2195/f85c7b0c1ca7393252f54eb29f56f6b4d77a1c77/elliptic.c/clean/src/modules/elliptic.c